<?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 How I can insert SDO_GEOMETRY using tOracleOutput in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-I-can-insert-SDO-GEOMETRY-using-tOracleOutput/m-p/2320833#M90929</link>
    <description>Hi,&amp;nbsp; 
&lt;BR /&gt;I'm trying to insert a &amp;nbsp;SDO_GEOMETRY object/element in one column using tOracleOutput. 
&lt;BR /&gt;My first option was to insert the rows using the tOracleRow component using the following query string: 
&lt;I&gt;INSERT INTO SAMPLE_POINTS values(1,SDO_GEOMETRY(?)). This option&lt;/I&gt; 
&lt;I&gt;&amp;nbsp;worked properly but the performance&amp;nbsp;is really bad.&amp;nbsp;&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;My second option was to use the component&amp;nbsp;tOracleOutput to perform a batchupdate &amp;nbsp;but &amp;nbsp;it wasn't work:&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;I have tried to use different &amp;nbsp;kind of objects,byte[], string for passing the data to SDO_GEOMETRY column&amp;nbsp;but always get an error.&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;Reading Oracle Documentation&amp;nbsp;Oracle JGeometry Api&amp;nbsp;I see that is necessary create an STRUCT object, but I don't know how I can include this code in Talend.&lt;/I&gt; 
&lt;BR /&gt; 
&lt;PRE&gt; /// writing a geometry back to database&lt;BR /&gt;     PreparedStatement ps = connection.prepareStatement(&lt;BR /&gt;         "UPDATE states set geometry=? where name='Florida'");&lt;BR /&gt;     //convert JGeometry instance to DB STRUCT using the SDO pickler&lt;BR /&gt;     STRUCT obj = JGeometry.store(connection, j_geom);&lt;BR /&gt;     ps.setObject(1, obj);&lt;BR /&gt;     ps.execute();&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;FONT color="#474747"&gt;&lt;FONT size="2"&gt;&lt;FONT face="" dejavu="" sans="" mono=""&gt;&lt;BR /&gt;&lt;BR /&gt;Have someone any clue how to work with Oracle spatial types and Talend (tOracleOutput)?&lt;BR /&gt;Have someone any clue how to use custom code in the PreparedStatement for the tOracleOutput? &lt;BR /&gt;&lt;BR /&gt;Thank you in advance.&lt;BR /&gt;David&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description>
    <pubDate>Wed, 22 Mar 2017 09:11:51 GMT</pubDate>
    <dc:creator>tornilleiro</dc:creator>
    <dc:date>2017-03-22T09:11:51Z</dc:date>
    <item>
      <title>How I can insert SDO_GEOMETRY using tOracleOutput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-I-can-insert-SDO-GEOMETRY-using-tOracleOutput/m-p/2320833#M90929</link>
      <description>Hi,&amp;nbsp; 
&lt;BR /&gt;I'm trying to insert a &amp;nbsp;SDO_GEOMETRY object/element in one column using tOracleOutput. 
&lt;BR /&gt;My first option was to insert the rows using the tOracleRow component using the following query string: 
&lt;I&gt;INSERT INTO SAMPLE_POINTS values(1,SDO_GEOMETRY(?)). This option&lt;/I&gt; 
&lt;I&gt;&amp;nbsp;worked properly but the performance&amp;nbsp;is really bad.&amp;nbsp;&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;My second option was to use the component&amp;nbsp;tOracleOutput to perform a batchupdate &amp;nbsp;but &amp;nbsp;it wasn't work:&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;I have tried to use different &amp;nbsp;kind of objects,byte[], string for passing the data to SDO_GEOMETRY column&amp;nbsp;but always get an error.&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;Reading Oracle Documentation&amp;nbsp;Oracle JGeometry Api&amp;nbsp;I see that is necessary create an STRUCT object, but I don't know how I can include this code in Talend.&lt;/I&gt; 
&lt;BR /&gt; 
&lt;PRE&gt; /// writing a geometry back to database&lt;BR /&gt;     PreparedStatement ps = connection.prepareStatement(&lt;BR /&gt;         "UPDATE states set geometry=? where name='Florida'");&lt;BR /&gt;     //convert JGeometry instance to DB STRUCT using the SDO pickler&lt;BR /&gt;     STRUCT obj = JGeometry.store(connection, j_geom);&lt;BR /&gt;     ps.setObject(1, obj);&lt;BR /&gt;     ps.execute();&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;FONT color="#474747"&gt;&lt;FONT size="2"&gt;&lt;FONT face="" dejavu="" sans="" mono=""&gt;&lt;BR /&gt;&lt;BR /&gt;Have someone any clue how to work with Oracle spatial types and Talend (tOracleOutput)?&lt;BR /&gt;Have someone any clue how to use custom code in the PreparedStatement for the tOracleOutput? &lt;BR /&gt;&lt;BR /&gt;Thank you in advance.&lt;BR /&gt;David&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Wed, 22 Mar 2017 09:11:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-I-can-insert-SDO-GEOMETRY-using-tOracleOutput/m-p/2320833#M90929</guid>
      <dc:creator>tornilleiro</dc:creator>
      <dc:date>2017-03-22T09:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: How I can insert SDO_GEOMETRY using tOracleOutput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-I-can-insert-SDO-GEOMETRY-using-tOracleOutput/m-p/2320834#M90930</link>
      <description>Hi,&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;The "Use PreparedStatement" option has been added to all db row components (Advanced settings section).&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;For your performance issue, have you already checked "Commit every" option to&amp;nbsp;&lt;FONT size="2"&gt;&lt;FONT face="noto, Helvetica, Arial, sans-serif"&gt;ensure transaction quality and above all better performance on executions?&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="noto, Helvetica, Arial, sans-serif"&gt;Best regards&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="noto, Helvetica, Arial, sans-serif"&gt;Sabrina&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Thu, 23 Mar 2017 07:48:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-I-can-insert-SDO-GEOMETRY-using-tOracleOutput/m-p/2320834#M90930</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-23T07:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: How I can insert SDO_GEOMETRY using tOracleOutput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-I-can-insert-SDO-GEOMETRY-using-tOracleOutput/m-p/2320835#M90931</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Do you find any solution to fill the Oracle SDO_GEOMETRY type with the tOracleOutput.&lt;/P&gt;&lt;P&gt;I still trying to get the SDO_GEOMETRY type on my list ou data type.&lt;/P&gt;&lt;P&gt;I have add the object type SDO_GEOMETRY to the mapping_oracle.xml file, on the project stting mapping directory and the configuration mapping directory, but no result, nothing appears.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm assuming the SDI component works with Oracle, but I can only find old post and no example on how to implement with Oracle.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to get the SDO_GEOMTRY type on the list of DB TYPE?&lt;/P&gt;&lt;P&gt;has anyone implemented it successfully?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help,&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 08:34:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-I-can-insert-SDO-GEOMETRY-using-tOracleOutput/m-p/2320835#M90931</guid>
      <dc:creator>vrobine</dc:creator>
      <dc:date>2020-08-07T08:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: How I can insert SDO_GEOMETRY using tOracleOutput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-I-can-insert-SDO-GEOMETRY-using-tOracleOutput/m-p/2320836#M90932</link>
      <description>&lt;P&gt;Hi Vincent, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've just seen today your message... It is possible to add the SDO_GEOMETRY type to work with ORACLE using the mapping.xml file of Talend. May be you already have discovered,  long time ago that you post the message...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2021 09:14:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-I-can-insert-SDO-GEOMETRY-using-tOracleOutput/m-p/2320836#M90932</guid>
      <dc:creator>tornilleiro</dc:creator>
      <dc:date>2021-09-08T09:14:28Z</dc:date>
    </item>
  </channel>
</rss>

