<?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 Re: tOracleInput &amp; bind variables in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tOracleInput-bind-variables/m-p/2351430#M118080</link>
    <description>If you are using a tLoop then the Oracle component is being initialised for each loop. As such it might be tricky to get this working with a tLoop. However, I'm not sure of your full requirement and haven't actually examined this requirement, so I'd be interested to know what you find.
&lt;BR /&gt;
&lt;BR /&gt;What you might like to try is using a tOracleRow for your query. They are much better for scenarios like this where you are wanting to use transactions. Take a look here....
&lt;BR /&gt;
&lt;A href="https://help.talend.com/reader/WWQ40R_iTE5~~9VkUQrjgQ/CCdn1_oSeiCZt4Q2dZ1RSg" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/WWQ40R_iTE5~~9VkUQrjgQ/CCdn1_oSeiCZt4Q2dZ1RSg&lt;/A&gt;</description>
    <pubDate>Thu, 21 Sep 2017 15:37:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-09-21T15:37:30Z</dc:date>
    <item>
      <title>tOracleInput &amp; bind variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tOracleInput-bind-variables/m-p/2351429#M118079</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Have a job with an tOracleInput combined with a tLoop. The loop is for each year.&lt;/P&gt;
&lt;P&gt;Sql in tOracleInput would be something like:&lt;/P&gt;
&lt;P&gt;"Select ... From ... Where YEAR= " + ((Integer)globalMap.get("tLoop_1_CURRENT_VALUE"))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you look in Oracle, you can see in the session that this passed to Oracle hardcoded (e.g. Year =2017) and Oracle is not using bind variables (e.g. Year = ?). This makes that the sql needs to be parsed for each iteration.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any way that Talend can pass the sql to Oracle using bind variables?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 14:13:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tOracleInput-bind-variables/m-p/2351429#M118079</guid>
      <dc:creator>grizmi</dc:creator>
      <dc:date>2017-09-21T14:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: tOracleInput &amp; bind variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tOracleInput-bind-variables/m-p/2351430#M118080</link>
      <description>If you are using a tLoop then the Oracle component is being initialised for each loop. As such it might be tricky to get this working with a tLoop. However, I'm not sure of your full requirement and haven't actually examined this requirement, so I'd be interested to know what you find.
&lt;BR /&gt;
&lt;BR /&gt;What you might like to try is using a tOracleRow for your query. They are much better for scenarios like this where you are wanting to use transactions. Take a look here....
&lt;BR /&gt;
&lt;A href="https://help.talend.com/reader/WWQ40R_iTE5~~9VkUQrjgQ/CCdn1_oSeiCZt4Q2dZ1RSg" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/WWQ40R_iTE5~~9VkUQrjgQ/CCdn1_oSeiCZt4Q2dZ1RSg&lt;/A&gt;</description>
      <pubDate>Thu, 21 Sep 2017 15:37:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tOracleInput-bind-variables/m-p/2351430#M118080</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-21T15:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: tOracleInput &amp; bind variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tOracleInput-bind-variables/m-p/2351431#M118081</link>
      <description>&lt;P&gt;In tOracleRow I could write PL/SQL with an input parameter, but then I am complicating things. Best design is try to keep things simple :-).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2017 10:38:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tOracleInput-bind-variables/m-p/2351431#M118081</guid>
      <dc:creator>grizmi</dc:creator>
      <dc:date>2017-09-25T10:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: tOracleInput &amp; bind variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tOracleInput-bind-variables/m-p/2351432#M118082</link>
      <description>&lt;P&gt;I'd argue that reading and writing SQL should be a prerequisite of being involved in Data Integration. While you can make Talend incredibly simple, an incredibly simple Talend job is not going to be the most efficient Talend job. When working with a database it is always going to be more efficient to deal with a lot of your filtering (for example) in the database. If writing PL/SQL sorts your problem with efficiency (which is what this question was originally about), there is absolutely nothing wrong with using it with a Talend job.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2017 10:48:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tOracleInput-bind-variables/m-p/2351432#M118082</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-25T10:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: tOracleInput &amp; bind variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tOracleInput-bind-variables/m-p/2351433#M118083</link>
      <description>&lt;P&gt;'keep things simple' doesn't mean that you shouldn't know sql and understand what is happening when you write sql.&lt;/P&gt; 
&lt;P&gt;tOracleRow combined with PL/SQL would surely do the trick, was just hoping that is there was some option in tOracleInput that I missed but apparently that's not the case.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Maybe an option for the future. Following article mentiones that Java has PreparedStatement to use bind: &lt;A href="https://www.akadia.com/services/ora_bind_variables.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.akadia.com/services/ora_bind_variables.html&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2017 13:05:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tOracleInput-bind-variables/m-p/2351433#M118083</guid>
      <dc:creator>grizmi</dc:creator>
      <dc:date>2017-09-25T13:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: tOracleInput &amp; bind variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tOracleInput-bind-variables/m-p/2351434#M118084</link>
      <description>&lt;P&gt;Definitely recommend this as an improvement if you feel Talend could benefit. You should be able to log in to Talend's Jira board using your Community ID (&lt;A href="https://jira.talendforge.org" target="_blank" rel="nofollow noopener noreferrer"&gt;https://jira.talendforge.org&lt;/A&gt;). Having said that, this *may* have changed with the new forum. It's certainly a good place to research bugs&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2017 13:09:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tOracleInput-bind-variables/m-p/2351434#M118084</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-25T13:09:44Z</dc:date>
    </item>
  </channel>
</rss>

