<?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: passing context to tOracleInput in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/passing-context-to-tOracleInput/m-p/2200531#M2992</link>
    <description>You may try but the final cost will be the same. The advantage of if design is in case the number of country and input database may grow up. 
&lt;BR /&gt;Well, for each element required to establish the connection with the source database, you need to enumerate the value into the appropriate context variable. For example, for OracleUsername the value must be user1;user2;user2 and so on for every variable (password, host, etc.) 
&lt;BR /&gt;Then using a tLoop you have to extract value[1], value[2], ..., value[n] for each variable (this may be done using a tJava) to populate a global or context variable used into your tOracleInput component. 
&lt;BR /&gt;The design should look like this: 
&lt;BR /&gt;tLoop--(iterate)--&amp;gt;tJava--(onComponentOK)--&amp;gt;tOracleInput----&amp;gt;tOracleOutput</description>
    <pubDate>Mon, 14 Oct 2019 16:22:07 GMT</pubDate>
    <dc:creator>TRF</dc:creator>
    <dc:date>2019-10-14T16:22:07Z</dc:date>
    <item>
      <title>passing context to tOracleInput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/passing-context-to-tOracleInput/m-p/2200530#M2991</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello, I'm having three identical databases with the same schema (tables and columns) which means one DB per country. Example: the table customer exists in the 3 databases with the same fields. Only the content is different because every country has its own clients. I want to merge the 3 tables in a single table at the destination. Normally I would use three tOracleInput. Then add a value to indicate the country name in a tamp for each of the 3 countries and then concatenate all in a tUnite. &lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M815.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141853iE4D5A65D867494CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M815.png" alt="0683p000009M815.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But since the 3 databases have the exactly same architecture,I want to do it in one single tOracleInput and execute the same sql statement "select code, nom from the customer" but on 3 different databases. I thought about using context variable and tLoop but I am having problems to correctly design a functional job.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:23:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/passing-context-to-tOracleInput/m-p/2200530#M2991</guid>
      <dc:creator>Mehdi_Mhedhbi2</dc:creator>
      <dc:date>2024-11-16T04:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: passing context to tOracleInput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/passing-context-to-tOracleInput/m-p/2200531#M2992</link>
      <description>You may try but the final cost will be the same. The advantage of if design is in case the number of country and input database may grow up. 
&lt;BR /&gt;Well, for each element required to establish the connection with the source database, you need to enumerate the value into the appropriate context variable. For example, for OracleUsername the value must be user1;user2;user2 and so on for every variable (password, host, etc.) 
&lt;BR /&gt;Then using a tLoop you have to extract value[1], value[2], ..., value[n] for each variable (this may be done using a tJava) to populate a global or context variable used into your tOracleInput component. 
&lt;BR /&gt;The design should look like this: 
&lt;BR /&gt;tLoop--(iterate)--&amp;gt;tJava--(onComponentOK)--&amp;gt;tOracleInput----&amp;gt;tOracleOutput</description>
      <pubDate>Mon, 14 Oct 2019 16:22:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/passing-context-to-tOracleInput/m-p/2200531#M2992</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-10-14T16:22:07Z</dc:date>
    </item>
  </channel>
</rss>

