<?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 Inserting into Oracle Xmltype column with more than 4000 characters in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Inserting-into-Oracle-Xmltype-column-with-more-than-4000/m-p/2314264#M85049</link>
    <description>Hi All, 
&lt;BR /&gt;Oralce version : 11.2.0.2.0 Xe 
&lt;BR /&gt;Talend version: 5.0.1 
&lt;BR /&gt;First case 
&lt;BR /&gt;I want to transfer Xmltype data from one oracle table to another in a different schema. When the xml is smaller than 4000 char everything works fine. With Bigger xml data I become an oracle error: "ORA-01461: can bind a LONG value only for insert into a LONG column", which is misleading because no LONG column is involved(in oracle it is a character type not a number like in java). 
&lt;BR /&gt;My job looks like as follows: 
&lt;BR /&gt;tOracleInput -&amp;gt; tMap -&amp;gt; tOracleOutPut 
&lt;BR /&gt;I use the following: 
&lt;BR /&gt;1. tOracleInput query: 
&lt;BR /&gt;SELECT 
&lt;BR /&gt; T.IDNUM, 
&lt;BR /&gt; T.XMLCOL.GETCLOBVAL() XMLCOL 
&lt;BR /&gt;FROM HR.XML_TAB T WHERE IDNUM = 4 
&lt;BR /&gt;2. tOracleInput schema: 
&lt;BR /&gt;IDNUM Java Type : int Db Type: Number 
&lt;BR /&gt;XMLCOL Java Type : String Db Type: XmlType 
&lt;BR /&gt;3. tOracleInput -&amp;gt; Advanced Settings -&amp;gt; Convert XmlType to Java Type = true -&amp;gt; XMLCOL to String type 
&lt;BR /&gt;4.tOracleOutPut schema: 
&lt;BR /&gt;IDNUM Java Type : int Db Type: Number 
&lt;BR /&gt;XMLCOL Java Type : String Db Type: XmlType 
&lt;BR /&gt;5. I use tOracleConnection and tOracleCommit for both database schemas 
&lt;BR /&gt;6. In tMap there is only a mapping nothing changes 
&lt;BR /&gt;Second case: 
&lt;BR /&gt;I use "Object" for Java type and "XmlType" for Oracle type. This works fine within the same schema, but when I try to insert in a table in another schema (same or different Db doesn't matter) I become an error. 
&lt;BR /&gt;Differencies from the first job: 
&lt;BR /&gt;2. tOracleInput schema: 
&lt;BR /&gt;IDNUM Java Type : int Db Type: Number 
&lt;BR /&gt;XMLCOL Java Type : Object Db Type: XmlType 
&lt;BR /&gt;3. tOracleInput -&amp;gt; Advanced Settings -&amp;gt; Convert XmlType to Java Type = false 
&lt;BR /&gt;4.tOracleOutPut schema: 
&lt;BR /&gt;IDNUM Java Type : int Db Type: Number 
&lt;BR /&gt;XMLCOL Java Type : Object Db Type: XmlType 
&lt;BR /&gt;Error meassage: 
&lt;BR /&gt;Keine weiteren Daten aus Socket zu lesen -&amp;gt; There is no more data from socket to read 
&lt;BR /&gt;Keine weiteren Daten aus Socket zu lesenException in component tOracleCommit_2 
&lt;BR /&gt;java.sql.SQLRecoverableException: Keine weiteren Daten aus Socket zu lesen 
&lt;BR /&gt; at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:101) 
&lt;BR /&gt; at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133) 
&lt;BR /&gt; at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:199) 
&lt;BR /&gt; at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:263) 
&lt;BR /&gt; at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:271) 
&lt;BR /&gt; at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:445) 
&lt;BR /&gt; at oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(T4CMAREngine.java:1053) 
&lt;BR /&gt; at oracle.jdbc.driver.T4CMAREngine.unmarshalSB1(T4CMAREngine.java:1010) 
&lt;BR /&gt; at oracle.jdbc.driver.T4C7Ocommoncall.receive(T4C7Ocommoncall.java:97) 
&lt;BR /&gt; at oracle.jdbc.driver.T4CConnection.doCommit(T4CConnection.java:539) 
&lt;BR /&gt; at oracle.jdbc.driver.PhysicalConnection.commit(PhysicalConnection.java:3432) 
&lt;BR /&gt; at oracle.jdbc.driver.PhysicalConnection.commit(PhysicalConnection.java:3438) 
&lt;BR /&gt; at xmlbearbeitung.xmltypetest_0_1.XmlTypeTest.tOracleCommit_2Process(XmlTypeTest.java:3165) 
&lt;BR /&gt; at xmlbearbeitung.xmltypetest_0_1.XmlTypeTest.tOracleCommit_1Process(XmlTypeTest.java:3100) 
&lt;BR /&gt; at xmlbearbeitung.xmltypetest_0_1.XmlTypeTest.tPostjob_1Process(XmlTypeTest.java:3014) 
&lt;BR /&gt; at xmlbearbeitung.xmltypetest_0_1.XmlTypeTest.runJobInTOS(XmlTypeTest.java:3711) 
&lt;BR /&gt; at xmlbearbeitung.xmltypetest_0_1.XmlTypeTest.main(XmlTypeTest.java:3536) 
&lt;BR /&gt;I went through the following topics but found no solution: 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCrEBCA0" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Problem-in-Inserting-the-XML/td-p/114288&lt;/A&gt; 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCq2KCAS" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Bulk-Load-to-Oracle-XML-input-instead-of-CSV/td-p/106126&lt;/A&gt; 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCqmICAS" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Storing-and-XMLType-object-in-Oracle/td-p/111132&lt;/A&gt; 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCnCwCAK" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Extract-Information-from-a-XML-File-which-is-stored-as-a-row-in/td-p/87331&lt;/A&gt; 
&lt;BR /&gt;Can anyone help me? Any workaround? Is it possible at all in Talend? 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Adam</description>
    <pubDate>Fri, 27 Apr 2012 09:59:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-04-27T09:59:00Z</dc:date>
    <item>
      <title>Inserting into Oracle Xmltype column with more than 4000 characters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Inserting-into-Oracle-Xmltype-column-with-more-than-4000/m-p/2314264#M85049</link>
      <description>Hi All, 
&lt;BR /&gt;Oralce version : 11.2.0.2.0 Xe 
&lt;BR /&gt;Talend version: 5.0.1 
&lt;BR /&gt;First case 
&lt;BR /&gt;I want to transfer Xmltype data from one oracle table to another in a different schema. When the xml is smaller than 4000 char everything works fine. With Bigger xml data I become an oracle error: "ORA-01461: can bind a LONG value only for insert into a LONG column", which is misleading because no LONG column is involved(in oracle it is a character type not a number like in java). 
&lt;BR /&gt;My job looks like as follows: 
&lt;BR /&gt;tOracleInput -&amp;gt; tMap -&amp;gt; tOracleOutPut 
&lt;BR /&gt;I use the following: 
&lt;BR /&gt;1. tOracleInput query: 
&lt;BR /&gt;SELECT 
&lt;BR /&gt; T.IDNUM, 
&lt;BR /&gt; T.XMLCOL.GETCLOBVAL() XMLCOL 
&lt;BR /&gt;FROM HR.XML_TAB T WHERE IDNUM = 4 
&lt;BR /&gt;2. tOracleInput schema: 
&lt;BR /&gt;IDNUM Java Type : int Db Type: Number 
&lt;BR /&gt;XMLCOL Java Type : String Db Type: XmlType 
&lt;BR /&gt;3. tOracleInput -&amp;gt; Advanced Settings -&amp;gt; Convert XmlType to Java Type = true -&amp;gt; XMLCOL to String type 
&lt;BR /&gt;4.tOracleOutPut schema: 
&lt;BR /&gt;IDNUM Java Type : int Db Type: Number 
&lt;BR /&gt;XMLCOL Java Type : String Db Type: XmlType 
&lt;BR /&gt;5. I use tOracleConnection and tOracleCommit for both database schemas 
&lt;BR /&gt;6. In tMap there is only a mapping nothing changes 
&lt;BR /&gt;Second case: 
&lt;BR /&gt;I use "Object" for Java type and "XmlType" for Oracle type. This works fine within the same schema, but when I try to insert in a table in another schema (same or different Db doesn't matter) I become an error. 
&lt;BR /&gt;Differencies from the first job: 
&lt;BR /&gt;2. tOracleInput schema: 
&lt;BR /&gt;IDNUM Java Type : int Db Type: Number 
&lt;BR /&gt;XMLCOL Java Type : Object Db Type: XmlType 
&lt;BR /&gt;3. tOracleInput -&amp;gt; Advanced Settings -&amp;gt; Convert XmlType to Java Type = false 
&lt;BR /&gt;4.tOracleOutPut schema: 
&lt;BR /&gt;IDNUM Java Type : int Db Type: Number 
&lt;BR /&gt;XMLCOL Java Type : Object Db Type: XmlType 
&lt;BR /&gt;Error meassage: 
&lt;BR /&gt;Keine weiteren Daten aus Socket zu lesen -&amp;gt; There is no more data from socket to read 
&lt;BR /&gt;Keine weiteren Daten aus Socket zu lesenException in component tOracleCommit_2 
&lt;BR /&gt;java.sql.SQLRecoverableException: Keine weiteren Daten aus Socket zu lesen 
&lt;BR /&gt; at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:101) 
&lt;BR /&gt; at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133) 
&lt;BR /&gt; at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:199) 
&lt;BR /&gt; at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:263) 
&lt;BR /&gt; at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:271) 
&lt;BR /&gt; at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:445) 
&lt;BR /&gt; at oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(T4CMAREngine.java:1053) 
&lt;BR /&gt; at oracle.jdbc.driver.T4CMAREngine.unmarshalSB1(T4CMAREngine.java:1010) 
&lt;BR /&gt; at oracle.jdbc.driver.T4C7Ocommoncall.receive(T4C7Ocommoncall.java:97) 
&lt;BR /&gt; at oracle.jdbc.driver.T4CConnection.doCommit(T4CConnection.java:539) 
&lt;BR /&gt; at oracle.jdbc.driver.PhysicalConnection.commit(PhysicalConnection.java:3432) 
&lt;BR /&gt; at oracle.jdbc.driver.PhysicalConnection.commit(PhysicalConnection.java:3438) 
&lt;BR /&gt; at xmlbearbeitung.xmltypetest_0_1.XmlTypeTest.tOracleCommit_2Process(XmlTypeTest.java:3165) 
&lt;BR /&gt; at xmlbearbeitung.xmltypetest_0_1.XmlTypeTest.tOracleCommit_1Process(XmlTypeTest.java:3100) 
&lt;BR /&gt; at xmlbearbeitung.xmltypetest_0_1.XmlTypeTest.tPostjob_1Process(XmlTypeTest.java:3014) 
&lt;BR /&gt; at xmlbearbeitung.xmltypetest_0_1.XmlTypeTest.runJobInTOS(XmlTypeTest.java:3711) 
&lt;BR /&gt; at xmlbearbeitung.xmltypetest_0_1.XmlTypeTest.main(XmlTypeTest.java:3536) 
&lt;BR /&gt;I went through the following topics but found no solution: 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCrEBCA0" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Problem-in-Inserting-the-XML/td-p/114288&lt;/A&gt; 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCq2KCAS" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Bulk-Load-to-Oracle-XML-input-instead-of-CSV/td-p/106126&lt;/A&gt; 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCqmICAS" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Storing-and-XMLType-object-in-Oracle/td-p/111132&lt;/A&gt; 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCnCwCAK" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Extract-Information-from-a-XML-File-which-is-stored-as-a-row-in/td-p/87331&lt;/A&gt; 
&lt;BR /&gt;Can anyone help me? Any workaround? Is it possible at all in Talend? 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Adam</description>
      <pubDate>Fri, 27 Apr 2012 09:59:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Inserting-into-Oracle-Xmltype-column-with-more-than-4000/m-p/2314264#M85049</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-27T09:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting into Oracle Xmltype column with more than 4000 characters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Inserting-into-Oracle-Xmltype-column-with-more-than-4000/m-p/2314265#M85050</link>
      <description>Hi Adam
&lt;BR /&gt;Please report it on 
&lt;A href="http://jira.talendforge.org/secure/Dashboard.jspa" target="_blank" rel="nofollow noopener noreferrer"&gt;BugTracker&lt;/A&gt;.
&lt;BR /&gt;For this feature, there is no instruction in any document.
&lt;BR /&gt;I tried to reproduce it and failed.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Pedro</description>
      <pubDate>Fri, 27 Apr 2012 10:58:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Inserting-into-Oracle-Xmltype-column-with-more-than-4000/m-p/2314265#M85050</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-27T10:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting into Oracle Xmltype column with more than 4000 characters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Inserting-into-Oracle-Xmltype-column-with-more-than-4000/m-p/2314266#M85051</link>
      <description>Hello Pedro!
&lt;BR /&gt;Thanks for the reply. I have solved the issue as follows:
&lt;BR /&gt;1. I created a temp table in the source schema to hold the XML, but with a CLOB column for XML storeing. (actually a key column as update key and a CLOB column are needed). For querying the source data ".getclobval()" is necessary.
&lt;BR /&gt;2.I copied all non-XML data to the target schema in another Db and populated the Temp table.
&lt;BR /&gt;3.I red the temp table and updated the XMLTYPE column with CLOB data. The target table has an XMLType Db column, but when the source is a real CLOB (not an XMLType converted with .getclobval() to a CLOB) it works.
&lt;BR /&gt;4.I dropped the temp table.
&lt;BR /&gt;This works but it is a bit to much work.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Adam</description>
      <pubDate>Mon, 30 Apr 2012 12:50:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Inserting-into-Oracle-Xmltype-column-with-more-than-4000/m-p/2314266#M85051</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-30T12:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting into Oracle Xmltype column with more than 4000 characters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Inserting-into-Oracle-Xmltype-column-with-more-than-4000/m-p/2314267#M85052</link>
      <description>Hi Adam&lt;BR /&gt;Great! Thanks for your feedback.&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Wed, 02 May 2012 07:42:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Inserting-into-Oracle-Xmltype-column-with-more-than-4000/m-p/2314267#M85052</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-02T07:42:58Z</dc:date>
    </item>
  </channel>
</rss>

