<?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: Using Oracle DBInput Query Columns in other components in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Using-Oracle-DBInput-Query-Columns-in-other-components/m-p/2229692#M20557</link>
    <description>&lt;P&gt;Well that did the trick.&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Aug 2020 22:31:03 GMT</pubDate>
    <dc:creator>BendingUnit22</dc:creator>
    <dc:date>2020-08-06T22:31:03Z</dc:date>
    <item>
      <title>Using Oracle DBInput Query Columns in other components</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-Oracle-DBInput-Query-Columns-in-other-components/m-p/2229690#M20555</link>
      <description>&lt;P&gt;Just starting with Talend and seem to have run into an issue I just cant seem to get. I have an OracleDBInput that uses a query to select 3 columns from the DB.&lt;/P&gt;
&lt;P&gt;DBName (vchar)&lt;/P&gt;
&lt;P&gt;OwnerName (vchar)&lt;/P&gt;
&lt;P&gt;TableName (vchar)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ex.&lt;/P&gt;
&lt;P&gt;"select DBName, OwnerName, TableName&lt;/P&gt;
&lt;P&gt;from test_table&lt;BR /&gt;where ACTIVE in ('Y','T')&lt;BR /&gt;and SOURCE_OWNER = 'PAYROLL'&lt;BR /&gt;and SOURCE_TABLE like 'PT%'"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then I pass the row output to a tDBRow that will run a query that will use the data from 2 of the 3 columns and run it.&lt;/P&gt;
&lt;P&gt;"select dbms_metadata.get_ddl('INDEX', index_name, owner)&lt;BR /&gt;from all_indexes&lt;BR /&gt;where owner = 'OwnerName'&lt;BR /&gt;and table_name = 'TableName '"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i have tried things like this:&lt;/P&gt;
&lt;P&gt;and table_name = '" +((String)globalMap.get("tDBInput_1_TableName "))+"'"&lt;/P&gt;
&lt;P&gt;and table_name = '" +((String)globalMap.get("row1.TableName "))+ "'"&lt;/P&gt;
&lt;P&gt;and table_name = '" +row1.TableName+ "'"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did get a few runs without an error but i could not figure out how to display the results in the tlogrow to verify.&lt;/P&gt;
&lt;P&gt;I did try the tParseRecordSet but seem to have problems with the object type conversion to something I could see in a tlogrow also.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then when I get that first part working I would like to store / pass&amp;nbsp; the result and use it after a drop and create in a DBOutput.&lt;/P&gt;
&lt;P&gt;I think I would use the tsetglobalvar for this but i have the first issues to get through.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically i am trying to generate a index create script for an individual table that comes from a table listing several that i need to get this for.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this makes sense.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for any insight you can provide.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:05:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-Oracle-DBInput-Query-Columns-in-other-components/m-p/2229690#M20555</guid>
      <dc:creator>BendingUnit22</dc:creator>
      <dc:date>2024-11-16T02:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using Oracle DBInput Query Columns in other components</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-Oracle-DBInput-Query-Columns-in-other-components/m-p/2229691#M20556</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;by default&amp;nbsp;&lt;SPAN&gt;tDBRow do not return result, it mostly for run DDL or DML queries&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;you can use tDBInput instead - there you can use your SQL query, just define a schema and connect it to future components&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;cheers&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 00:40:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-Oracle-DBInput-Query-Columns-in-other-components/m-p/2229691#M20556</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2020-06-25T00:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using Oracle DBInput Query Columns in other components</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-Oracle-DBInput-Query-Columns-in-other-components/m-p/2229692#M20557</link>
      <description>&lt;P&gt;Well that did the trick.&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 22:31:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-Oracle-DBInput-Query-Columns-in-other-components/m-p/2229692#M20557</guid>
      <dc:creator>BendingUnit22</dc:creator>
      <dc:date>2020-08-06T22:31:03Z</dc:date>
    </item>
  </channel>
</rss>

