<?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: How to get the values dynamically in tOracleInput query in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282135#M56453</link>
    <description>Hi Guys , 
&lt;BR /&gt;I too have problem while using tOracleInput. 
&lt;BR /&gt;I am taking data from excel into context variable output_Tns (tried all data type available). 
&lt;BR /&gt;My talend job looks like 
&lt;BR /&gt;(tFileInputExcel -- tJavaRow (context.output_Tns = context.output_Tns&amp;nbsp; + "," + input_row.Unmatched_Tns) -- tOracleInput --tJavaRow&amp;nbsp; -- tSendMail ) 
&lt;BR /&gt;then I am pass the variable data into select statement inside tOracleInput 
&lt;BR /&gt;"select Col1 , 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; col2 , 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; col3 , 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; col4 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp; from my_table 
&lt;BR /&gt;&amp;nbsp;where col1 in (select replace(trim(',' from dbms_lob.substr(' "+context.output_Tns +" ', 4000, 1 ) ),' ','') 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from dual)" 
&lt;BR /&gt;---------------------------------------------------------- 
&lt;BR /&gt;While running the job I am getting below error : 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exception in component tOracleInput_2 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; java.sql.SQLSyntaxErrorException: ORA-01704: string literal too long 
&lt;BR /&gt;I know it is because variable length is more then 4000 , but do we have any work around to run this query . Later I am catching these columns into other variables too. 
&lt;BR /&gt;Please help , I am new in talend and don't know how to continue further. 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;</description>
    <pubDate>Mon, 13 Mar 2017 13:02:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-03-13T13:02:57Z</dc:date>
    <item>
      <title>How to get the values dynamically in tOracleInput query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282128#M56446</link>
      <description>I wanted to apply filter to source query with different filter condition at every run
&lt;BR /&gt;so, I need to take the values in where condition using a file( through context variable)
&lt;BR /&gt;Example:
&lt;BR /&gt;I have written the below in
&lt;BR /&gt;
&lt;B&gt;toracleInput&lt;/B&gt;
&lt;BR /&gt;"Select * from table1"&amp;nbsp;+context.filename
&lt;BR /&gt;I have given the filter in the 
&lt;B&gt;file&lt;/B&gt;
&lt;BR /&gt;"where col3 in (val1,val2, val3)"
&lt;BR /&gt;It is not taking the filter condition from file
&lt;BR /&gt;If i try one other ways it is throwing error.
&lt;BR /&gt;Please let me know the appropriate way to write dynamic queries in talend</description>
      <pubDate>Tue, 24 Jan 2017 05:59:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282128#M56446</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-24T05:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the values dynamically in tOracleInput query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282129#M56447</link>
      <description>SQL queries in all of the Talend database components are simply Java Strings. As such you can build them dynamically. However you must make sure that the built String represents legitimate SQL. 
&lt;BR /&gt;Looking at your example..... 
&lt;BR /&gt; 
&lt;PRE&gt;"Select * from table1"&amp;nbsp;+context.filename&lt;/PRE&gt; 
&lt;BR /&gt;....I can immediately seem a possible error in that you have not left a space after "table1". When you concatenate that String with ... 
&lt;BR /&gt;.... you will get.... 
&lt;BR /&gt; 
&lt;PRE&gt;"Select * from table1where col3 in (val1,val2, val3)"&lt;/PRE&gt; 
&lt;BR /&gt;I also notice that the "vals" are not formatted. For numbers that is OK, but if they are representing Strings (for example), you will need to add quotes, etc.&amp;nbsp; 
&lt;BR /&gt;The best way to approach this is to build your SQL query, output it to the System.out and then test the String you see in a query analyser. If it works there, it will work in your DB component.</description>
      <pubDate>Tue, 24 Jan 2017 09:36:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282129#M56447</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-24T09:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the values dynamically in tOracleInput query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282130#M56448</link>
      <description>Hi Richard, 
&lt;BR /&gt;Thank you for fast response 
&lt;BR /&gt;I have written the query the way you told, but did not mention properly&amp;nbsp; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;It is throwing error&amp;nbsp; 
&lt;BR /&gt;Could you please suggest and provide a sample method (best) for dynamic query where i have to pass 20000 records dynamically at IN clause 
&lt;BR /&gt;I used the method suggested by you in the below post 
&lt;BR /&gt;But, this is row wise processing(it is consuming more time when I have filter in more 2 or more columns, Suppose if I have 4 filter conditions in Column A and 4 filter conditions in Column B, then I have to give 16 combinations of input) 
&lt;BR /&gt;I need some method where the query is build using the input from file 
&lt;BR /&gt;Hope you get my requirement!!</description>
      <pubDate>Fri, 27 Jan 2017 06:42:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282130#M56448</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-27T06:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the values dynamically in tOracleInput query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282131#M56449</link>
      <description>I'm afraid you will need to give examples of the sort of queries you will need. There is not enough info here. However, the example I gave should be enough to be extrapolated from.&amp;nbsp;&lt;BR /&gt;Just think about building a String in Java.&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;String select = "Select column1, column2, column3 From table1 ";&lt;BR /&gt;String where = "";&lt;BR /&gt;if(row1.value.compareToIgnoreCase("test")==0){&lt;BR /&gt;   where = "Where column1 = '"+row1.data+"'"&lt;BR /&gt;}&lt;BR /&gt;String query = select+where;&lt;BR /&gt;System.out.println(query);&lt;/PRE&gt;&lt;BR /&gt;The above will produce a query with a where clause of "column1 = " whatever is held by the data column IF the value column holds "test". Otherwise it will produce a query without a Where clause.&lt;BR /&gt;The "System.out.println" code allows you to output the query to the output window. You can use that to see it as a String, copy and paste it into a query analyser and test it on your db.</description>
      <pubDate>Fri, 27 Jan 2017 09:33:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282131#M56449</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-27T09:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the values dynamically in tOracleInput query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282132#M56450</link>
      <description>so,Let me take an scenario, 
&lt;BR /&gt;Table - Employee 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCvk.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130815iB63308609259562C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCvk.png" alt="0683p000009MCvk.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;I need to put the query in tOracleInput as&amp;nbsp; 
&lt;BR /&gt;Select * from Employee where DESIGNATION in ('Developer', 'Analyst') and SALARY in (3000) 
&lt;BR /&gt;But, here I need to give the where clause dynamically(through a text file) 
&lt;BR /&gt;i.e., Select * from Employee +context.file 
&lt;BR /&gt;so, I can change the filters whenever I need without changing the job 
&lt;BR /&gt;I need to know how to append to query through context(in file) 
&lt;BR /&gt;Hope it helps!!</description>
      <pubDate>Fri, 27 Jan 2017 13:32:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282132#M56450</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-27T13:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the values dynamically in tOracleInput query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282133#M56451</link>
      <description>Hi,Can anyone help with writing dynamic query with above scenario</description>
      <pubDate>Tue, 31 Jan 2017 06:51:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282133#M56451</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-31T06:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the values dynamically in tOracleInput query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282134#M56452</link>
      <description>Just use your context variable in the SQL query.....&lt;BR /&gt;&lt;PRE&gt;"SELECT &lt;BR /&gt;COLUMN1,&lt;BR /&gt;COLUMN2,&lt;BR /&gt;COLUMN3&lt;BR /&gt;FROM TABLE&lt;BR /&gt;WHERE COLUMN1 = " +context.YourContext&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 Jan 2017 09:26:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282134#M56452</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-31T09:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the values dynamically in tOracleInput query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282135#M56453</link>
      <description>Hi Guys , 
&lt;BR /&gt;I too have problem while using tOracleInput. 
&lt;BR /&gt;I am taking data from excel into context variable output_Tns (tried all data type available). 
&lt;BR /&gt;My talend job looks like 
&lt;BR /&gt;(tFileInputExcel -- tJavaRow (context.output_Tns = context.output_Tns&amp;nbsp; + "," + input_row.Unmatched_Tns) -- tOracleInput --tJavaRow&amp;nbsp; -- tSendMail ) 
&lt;BR /&gt;then I am pass the variable data into select statement inside tOracleInput 
&lt;BR /&gt;"select Col1 , 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; col2 , 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; col3 , 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; col4 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp; from my_table 
&lt;BR /&gt;&amp;nbsp;where col1 in (select replace(trim(',' from dbms_lob.substr(' "+context.output_Tns +" ', 4000, 1 ) ),' ','') 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from dual)" 
&lt;BR /&gt;---------------------------------------------------------- 
&lt;BR /&gt;While running the job I am getting below error : 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exception in component tOracleInput_2 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; java.sql.SQLSyntaxErrorException: ORA-01704: string literal too long 
&lt;BR /&gt;I know it is because variable length is more then 4000 , but do we have any work around to run this query . Later I am catching these columns into other variables too. 
&lt;BR /&gt;Please help , I am new in talend and don't know how to continue further. 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Mon, 13 Mar 2017 13:02:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282135#M56453</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-13T13:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the values dynamically in tOracleInput query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282136#M56454</link>
      <description>Instead of building a "WHERE col1 IN" clause with your list of unmatched values, why not insert them into a table and join it to your my_table?</description>
      <pubDate>Mon, 13 Mar 2017 17:20:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282136#M56454</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2017-03-13T17:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the values dynamically in tOracleInput query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282137#M56455</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Instead of building a "WHERE col1 IN" clause with your list of unmatched values, why not insert them into a table and join it to your my_table?&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Thanks for this work around , but why do&amp;nbsp; I need to put data physically in any DB.What if we are running same job in parallel with different excel files ? It should be independent of any DB. Pentaho has less palettes and it provides option pass variables directly to the query from any input files. If such option is present in Pentaho , it should be present in Talend too. 
&lt;BR /&gt;Anyways thanks for help 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Mon, 13 Mar 2017 19:05:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282137#M56455</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2017-03-13T19:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the values dynamically in tOracleInput query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282138#M56456</link>
      <description>Hi Team, 
&lt;BR /&gt;Is there any option to get the desire output without creating a table or file and then joining using tMap etc ... 
&lt;BR /&gt;So far all I can see that there is so much buzzz on internet about Talend but it is not even as half good as Pentaho , Pentaho has very less components but it does its job( almost all stuff we can do on Talend) very easy and fast and efficiently , while in Talend we have more then two hundred Palettes but to perform each action we have to use many of them ... 
&lt;BR /&gt;I am sorry if I said something wrong or hurt any Talend lover but after few months of study in Talend and still getting such SILLY issues , I am really pissed off .... 
&lt;BR /&gt;If any option is available for this please let me know....</description>
      <pubDate>Mon, 13 Mar 2017 19:17:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282138#M56456</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2017-03-13T19:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the values dynamically in tOracleInput query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282139#M56457</link>
      <description>Instead of asking the database to manipulate your string, do that work in a Talend component and construct the IN clause for the database. &amp;nbsp; The tAggregateRow component can turn many rows of strings into a comma-separated list for you. &amp;nbsp; Barring that, your tJavaFlex probably gets you very close to where you want to be. &amp;nbsp;A second tJavaFlex or a tMap to take off the extra comma may be all you need to eliminate the SELECT 'long literal' FROM DUAL from your query.</description>
      <pubDate>Mon, 13 Mar 2017 20:22:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282139#M56457</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2017-03-13T20:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the values dynamically in tOracleInput query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282140#M56458</link>
      <description>Hi Cterenzi/others,
&lt;BR /&gt;Is there any option for bulk select ?
&lt;BR /&gt;I already lost my hope , so don't want to waste more on same concept unless until someone tells me its possible to pass variable in such scenario ...</description>
      <pubDate>Tue, 14 Mar 2017 08:53:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282140#M56458</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-14T08:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the values dynamically in tOracleInput query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282141#M56459</link>
      <description>bulk SELECT? What are You mean? 
&lt;BR /&gt;excellent tool from Pentaho ... if it so good, why You are there? 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp; 
&lt;BR /&gt;each tools have it own drawbacks (and Pentaho very far from be named Best of The Best) 
&lt;BR /&gt;If You do not want save data to DB - save it to buffer (memory) and then use as input flow on feature steps</description>
      <pubDate>Tue, 14 Mar 2017 09:39:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282141#M56459</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2017-03-14T09:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the values dynamically in tOracleInput query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282142#M56460</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;bulk SELECT? What are You mean?&lt;BR /&gt;-- I mean do we have any option to send in parameter as bulk/clob data to avoid such issues?&lt;BR /&gt;excellent tool from Pentaho ... if it so good, why You are there? &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp; -- What are you , 7!!!!&lt;BR /&gt;each tools have it own drawbacks (and Pentaho very far from be named Best of The Best) &lt;BR /&gt;-- Its not drawback , it is elementary for any ETL to send send data from source to target and based on inputs source will perform some other operation.&lt;BR /&gt;-- In other words you are accepting , it can't do this &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&lt;BR /&gt;If You do not want save data to DB - save it to buffer (memory) and then use as input flow on feature steps&lt;BR /&gt;-- Now that is waht I call solution. &lt;BR /&gt;-- I will try that .&lt;BR /&gt;-- You should shut me down by giving some solutions like this.&lt;BR /&gt;-----------------------------------------------&lt;BR /&gt;I will search and try to input data to buffer and to run this in select statement .&lt;BR /&gt;I will let you know the output . &lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 14 Mar 2017 10:12:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282142#M56460</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-14T10:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the values dynamically in tOracleInput query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282143#M56461</link>
      <description>Amit, your problems come from not understanding the tool I'm afraid. I'm sure if I were to switch to Pentaho and expect it to work like Talend or Informatica, I would be cross because it doesn't work as I expect it to.&amp;nbsp;
&lt;BR /&gt;It should also be pointed out that "
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;java.sql.SQLSyntaxErrorException: ORA-01704: string literal too long"&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;is an issue with your SQL. You would get the same in Pentaho. Since the data is not already in your database, you cannot inject into your SQL query unless you break it down (the query) or load the data to the db. This is NOT a Talend problem, it is a problem with how you are trying to solve this.
&lt;BR /&gt;To get round this you can do your filtering in Talend, but as an experienced DI developer I am sure you know that would not be efficient. Your database is designed to do this work. So if you want an efficient solution (in ANY DI tool) you will load the filter data into your database and get the database to earn its place in your data center and do the filtering there. If there is a reason why you cannot do that (and I understand there may well be) then you will have to take a performance hit and filter in Talend, in memory. This is pretty easy to be honest. Take a look at the tHash components (
&lt;A href="https://help.talend.com/search/all?query=tHashInput&amp;amp;content-lang=en" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/search/all?query=tHashInput&amp;amp;content-lang=en&lt;/A&gt;).</description>
      <pubDate>Tue, 14 Mar 2017 10:45:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282143#M56461</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-14T10:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the values dynamically in tOracleInput query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282144#M56462</link>
      <description>Hi 
&lt;B&gt;cterenzi/Rhall,&lt;/B&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks for your help. 
&lt;BR /&gt;Now I am trying to do some work around. ( Already tried that before , but couldn't succeed ) 
&lt;BR /&gt;What if I run this query into tOracleRow ? 
&lt;BR /&gt;------------------------------------------------------------------------------------------------------------------- 
&lt;BR /&gt;( please ignore errors if there is any) 
&lt;BR /&gt;------------------------------------------------------------------------------------------------------------------- 
&lt;BR /&gt;declare 
&lt;BR /&gt;var_input clob := trim(',' from regexp_replace(&amp;nbsp;&amp;nbsp; ' " + context.output_unmatched&amp;nbsp; + " ' ,']',null)) ; 
&lt;BR /&gt;var1 varchar2(4000); 
&lt;BR /&gt;vqr2 varchar2(4000); 
&lt;BR /&gt;var3 varchar2(4000); 
&lt;BR /&gt;var4 varchar2(4000); 
&lt;BR /&gt;vqr5 varchar2(4000); 
&lt;BR /&gt;var6 varchar2(4000); 
&lt;BR /&gt;begin 
&lt;BR /&gt;for i in (select tns from ( 
&lt;BR /&gt;select null as tns from dual union all 
&lt;BR /&gt;(select regexp_substr(var_input,'+', 1, level) from dual 
&lt;BR /&gt;connect by regexp_substr(var_input, '+', 1, level) is not null) 
&lt;BR /&gt;) where tns is not null) 
&lt;BR /&gt;select col1 ,col2 ,col3 
&lt;BR /&gt;into var1,vqr2,var3 
&lt;BR /&gt;from my_table 
&lt;BR /&gt;where col1 in (i.tns); 
&lt;BR /&gt;var4 := var4 ||','|| var1; 
&lt;BR /&gt;var5 := var5 ||','|| var2; 
&lt;BR /&gt;var6 := var6 ||','|| var3; 
&lt;BR /&gt;end loop; 
&lt;BR /&gt;end; 
&lt;BR /&gt;------------------------------------------------------------------------------------------------------------------- 
&lt;BR /&gt;Is there any way , I can catch the values of var4 and var5 and var6 into context variables??? 
&lt;BR /&gt;can we use output and send this to next step. 
&lt;BR /&gt;!!!!!!!!!!! 
&lt;BR /&gt;I am testing the possibilities for this. Hope this thing works 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 14 Mar 2017 14:06:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282144#M56462</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-14T14:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the values dynamically in tOracleInput query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282145#M56463</link>
      <description>I'm not sure why you are carrying out string manipulation in SQL, but whatever floats your boat. Why not wrap this into a stored proc and call that (
&lt;A href="https://help.talend.com/search/all?query=Calling+a+stored+procedure+or+function&amp;amp;content-lang=en" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/search/all?query=Calling+a+stored+procedure+or+function&amp;amp;content-lang=en&lt;/A&gt;)</description>
      <pubDate>Tue, 14 Mar 2017 14:24:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282145#M56463</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-14T14:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the values dynamically in tOracleInput query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282146#M56464</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;I'm not sure why you are carrying out string manipulation in SQL, but whatever floats your boat. &lt;BR /&gt;Because I am a sql developer &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Why not wrap this into a stored proc and call that ()&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;I think I am your FAN now. 
&lt;BR /&gt;I will try this. I was hoping to not put anything in DB.But whatever works right... 
&lt;BR /&gt;I have requested a DB link so I can change this to SP. 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Thanks for the help , I will continue on this tomorrow .</description>
      <pubDate>Tue, 14 Mar 2017 15:33:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282146#M56464</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-14T15:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the values dynamically in tOracleInput query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282147#M56465</link>
      <description>I'm still convinced that your problem is being caused by passing a very long string literal instead of constructing a well-formatted list for your IN clause. &amp;nbsp;The only reason you're passing a string seems to be that you need to remove an extra comma from your list. &amp;nbsp;This is not difficult to solve in Talend. &amp;nbsp;Once you have your list of values nicely formatted as:
&lt;BR /&gt;val1, val2, val3, val4...
&lt;BR /&gt;...in a context or global variable, you can drop it right into a SQL statement:
&lt;BR /&gt;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;"select Col1,&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&amp;nbsp;col2,&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&amp;nbsp;col3,&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&amp;nbsp;col4&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&amp;nbsp;from my_table&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&amp;nbsp;where col1 in ("+context.output_Tns +");&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;"&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;BR /&gt;If your input data is typed as String, passing it through a tAggregateRow component using the List operator can do this for you. &amp;nbsp;Otherwise, once you've finished reading in all your data and building your variable, a triggered tJava component can clean up the string before triggering your tOracleInput.</description>
      <pubDate>Tue, 14 Mar 2017 17:08:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-the-values-dynamically-in-tOracleInput-query/m-p/2282147#M56465</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2017-03-14T17:08:32Z</dc:date>
    </item>
  </channel>
</rss>

