<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Pb with TOracleOutput : insert or update, update or insert, delete ... in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Pb-with-TOracleOutput-insert-or-update-update-or-insert-delete/m-p/2302144#M74162</link>
    <description>Hello,
&lt;BR /&gt;I've some difficulties with this component :
&lt;BR /&gt;I'm working on TALEND 2.0.3 r3791, oracle V8.1.7.0 in a java project.
&lt;BR /&gt;When I use :
&lt;BR /&gt;update or insert : The job inserts ignoring records previously present in the table : results =&amp;gt; dubling records
&lt;BR /&gt;insert or update : Error : ORA-00921: unexpected end of SQL command
&lt;BR /&gt;Delete : Error : ORA-00921: unexpected end of SQL command
&lt;BR /&gt;Have you already meet this disfunctionment ?
&lt;BR /&gt;Thanks for your help
&lt;BR /&gt;Best regards
&lt;BR /&gt;Gilles</description>
    <pubDate>Sat, 16 Nov 2024 14:32:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T14:32:38Z</dc:date>
    <item>
      <title>Pb with TOracleOutput : insert or update, update or insert, delete ...</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pb-with-TOracleOutput-insert-or-update-update-or-insert-delete/m-p/2302144#M74162</link>
      <description>Hello,
&lt;BR /&gt;I've some difficulties with this component :
&lt;BR /&gt;I'm working on TALEND 2.0.3 r3791, oracle V8.1.7.0 in a java project.
&lt;BR /&gt;When I use :
&lt;BR /&gt;update or insert : The job inserts ignoring records previously present in the table : results =&amp;gt; dubling records
&lt;BR /&gt;insert or update : Error : ORA-00921: unexpected end of SQL command
&lt;BR /&gt;Delete : Error : ORA-00921: unexpected end of SQL command
&lt;BR /&gt;Have you already meet this disfunctionment ?
&lt;BR /&gt;Thanks for your help
&lt;BR /&gt;Best regards
&lt;BR /&gt;Gilles</description>
      <pubDate>Sat, 16 Nov 2024 14:32:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pb-with-TOracleOutput-insert-or-update-update-or-insert-delete/m-p/2302144#M74162</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Pb with TOracleOutput : insert or update, update or insert, delete ...</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pb-with-TOracleOutput-insert-or-update-update-or-insert-delete/m-p/2302145#M74163</link>
      <description>Hi Gilles 
&lt;BR /&gt;It is a 1961. The new release TOS2.2GA have been released. Please download TOS2.2GA. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; shong</description>
      <pubDate>Wed, 10 Oct 2007 06:59:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pb-with-TOracleOutput-insert-or-update-update-or-insert-delete/m-p/2302145#M74163</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-10-10T06:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Pb with TOracleOutput : insert or update, update or insert, delete ...</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pb-with-TOracleOutput-insert-or-update-update-or-insert-delete/m-p/2302146#M74164</link>
      <description>Hello Shong,
&lt;BR /&gt;Thanks for your help
&lt;BR /&gt;I 'll download version TOS2.2
&lt;BR /&gt;Best regards
&lt;BR /&gt;Gilles</description>
      <pubDate>Wed, 10 Oct 2007 07:07:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pb-with-TOracleOutput-insert-or-update-update-or-insert-delete/m-p/2302146#M74164</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-10-10T07:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: Pb with TOracleOutput : insert or update, update or insert, delete ...</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pb-with-TOracleOutput-insert-or-update-update-or-insert-delete/m-p/2302147#M74165</link>
      <description>Hello, 
&lt;BR /&gt;I've downloaded and installed TOS2.2
&lt;BR /&gt;But, I've always problems with insert or update and update or insert
&lt;BR /&gt;When It 's supposed to make an update , there's an Oracle ERROR...
&lt;BR /&gt;Exception in component tOracleOutput_1
&lt;BR /&gt;java.sql.SQLException: ORA-00001: unique constraint (EGOWRK.SYS_C0034914) violated
&lt;BR /&gt; at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
&lt;BR /&gt; at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:305)
&lt;BR /&gt; at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:272)
&lt;BR /&gt; at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:623)
&lt;BR /&gt; at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:181)
&lt;BR /&gt; at oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(T4CPreparedStatement.java:543)
&lt;BR /&gt; at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1028)
&lt;BR /&gt; at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2888)
&lt;BR /&gt; at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:2960)
&lt;BR /&gt; at testoracle7.maj_lib_comm.MAJ_LIB_COMM.tDBInput_1Process(MAJ_LIB_COMM.java:647)
&lt;BR /&gt; at testoracle7.maj_lib_comm.MAJ_LIB_COMM.runJob(MAJ_LIB_COMM.java:1201)
&lt;BR /&gt; at testoracle7.maj_lib_comm.MAJ_LIB_COMM.main(MAJ_LIB_COMM.java:1148)
&lt;BR /&gt;So, when I choose clear data on table : It's OK but ALL MY DATA are deleted !!! 
&lt;BR /&gt;Thanks for your help
&lt;BR /&gt;Best regards
&lt;BR /&gt;Gilles</description>
      <pubDate>Thu, 11 Oct 2007 14:14:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pb-with-TOracleOutput-insert-or-update-update-or-insert-delete/m-p/2302147#M74165</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-10-11T14:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Pb with TOracleOutput : insert or update, update or insert, delete ...</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pb-with-TOracleOutput-insert-or-update-update-or-insert-delete/m-p/2302148#M74166</link>
      <description>Hi Gilles 
&lt;BR /&gt;we need more info about what you are actually doing. Can you upload some screenshots about your job? 
&lt;BR /&gt;But the difference between update or insert and insert or update is the following : 
&lt;BR /&gt;update or insert : Will first try to update, if it can't (because record doesn't exist), it will try to insert. 
&lt;BR /&gt;insert or update : Will first try to insert, if records already exists (primary key already exists), it will try to update the record. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; shong</description>
      <pubDate>Fri, 12 Oct 2007 06:46:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pb-with-TOracleOutput-insert-or-update-update-or-insert-delete/m-p/2302148#M74166</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-10-12T06:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Pb with TOracleOutput : insert or update, update or insert, delete ...</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pb-with-TOracleOutput-insert-or-update-update-or-insert-delete/m-p/2302149#M74167</link>
      <description>Hello Shong, 
&lt;BR /&gt;It's a very simple JOB 
&lt;BR /&gt;Select data in a data base and insert or imput in an other.... 
&lt;BR /&gt;I've made 3 tests and the results are : 
&lt;BR /&gt;1.UPDATE or INSERT: 
&lt;BR /&gt;pstmtUpdate_tOracleOutput_1 = conn_tOracleOutput_1 
&lt;BR /&gt;.prepareStatement("UPDATE \"" + "STAT_LIB"+ "\" SET \"LIB\"=?,\"ORDRE\"=?,\"VAL1\"=?,\"VAL2\"=? WHERE \"COD\"=? AND \"TYP\"=?"); 
&lt;BR /&gt;pstmtInsert_tOracleOutput_1 = conn_tOracleOutput_1 
&lt;BR /&gt;.prepareStatement("INSERT INTO \"" + "STAT_LIB"+ "\" (\"COD\",\"LIB\",\"TYP\",\"ORDRE\",\"VAL1\",\"VAL2\") VALUES (?,?,?,?,?,?)"); 
&lt;BR /&gt; 
&lt;BR /&gt;but in all the code, we find only 
&lt;BR /&gt;pstmtInsert_tOracleOutput_1 and pstmtUpdate_tOracleOutput_1 is'nt use !!! 
&lt;BR /&gt;2.INSERT or UPDATE : 
&lt;BR /&gt;pstmt_tOracleOutput_1 = conn_tOracleOutput_1 
&lt;BR /&gt;.prepareStatement("SELECT COUNT(1) FROM \"" + "STAT_LIB" 
&lt;BR /&gt; + "\" WHERE \"COD\"=? AND \"TYP\"=?"); 
&lt;BR /&gt;pstmtInsert_tOracleOutput_1 = conn_tOracleOutput_1 
&lt;BR /&gt;.prepareStatement("INSERT INTO \"" + "STAT_LIB"+ "\" (\"COD\",\"LIB\",\"TYP\",\"ORDRE\",\"VAL1\",\"VAL2\") VALUES (?,?,?,?,?,?)"); 
&lt;BR /&gt;pstmtUpdate_tOracleOutput_1 = conn_tOracleOutput_1 
&lt;BR /&gt;.prepareStatement("UPDATE \"" + "STAT_LIB"+ "\" SET \"LIB\"=?,\"ORDRE\"=?,\"VAL1\"=?,\"VAL2\"=? WHERE \"COD\"=? AND \"TYP\"=?"); 
&lt;BR /&gt; 
&lt;BR /&gt;and same effect : 
&lt;BR /&gt;but in all the code, we find only 
&lt;BR /&gt;pstmtInsert_tOracleOutput_1 and pstmtUpdate_tOracleOutput_1 is'nt use !!! 
&lt;BR /&gt;3. UPDATE (only) 
&lt;BR /&gt;pstmt_tOracleOutput_1 = conn_tOracleOutput_1 
&lt;BR /&gt; .prepareStatement("UPDATE \"" 
&lt;BR /&gt; + "STAT_LIB" 
&lt;BR /&gt; + "\" SET \"LIB\"=?,\"ORDRE\"=?,\"VAL1\"=?,\"VAL2\"=? WHERE \"COD\"=? AND \"TYP\"=?"); 
&lt;BR /&gt; 
&lt;BR /&gt;and this method is used 
&lt;BR /&gt; 
&lt;BR /&gt;If you want, I could give you all the code 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Gilles</description>
      <pubDate>Fri, 12 Oct 2007 10:10:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pb-with-TOracleOutput-insert-or-update-update-or-insert-delete/m-p/2302149#M74167</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-10-12T10:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Pb with TOracleOutput : insert or update, update or insert, delete ...</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pb-with-TOracleOutput-insert-or-update-update-or-insert-delete/m-p/2302150#M74168</link>
      <description>Hi Gilles
&lt;BR /&gt; 
&lt;BR /&gt;There is a bug in tOraclexxx component. Can you report a bug in our bugtracker?
&lt;BR /&gt;Thanks for your support!
&lt;BR /&gt;Best regards
&lt;BR /&gt; shong</description>
      <pubDate>Mon, 15 Oct 2007 08:09:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pb-with-TOracleOutput-insert-or-update-update-or-insert-delete/m-p/2302150#M74168</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-10-15T08:09:59Z</dc:date>
    </item>
  </channel>
</rss>

