Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Mehdi_Mhedhbi2
Contributor III
Contributor III

tOracleInput

Hello, I'm having three identical databases in termes of structure (tables and columns), one for each country.
Example: the table customer exists in the three databases with same fields. Only the content is different because every country has its own client.

i want to load the three tables in on the single table in the destination, normally I would use three tOracleInput 
Then add a value to indicate the country name in a tamp for each of the three and then concatenate all in a tUnite.

But since the three databases have the same exactly architecture,I want to do it in one single tOracle input and 
execute the same sql statement "select code, nom from the customer" but on the three different databases.
i though about using context variable and tLoop but i am having problems to correctly design a functional job. 

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi
Use context variables for db connection parameters, and use a tfixedFlowInput to generate the variable value.
tFixedFlowInput--main(row1)--tFlowToIterate--tjava--oncomponentok-->tOracleInput--tUnite-->

on tFixedFlowInput, select 'Use inline content' model, and input the variable value like
host1;database_name1;port1;username1;password1
host2;database_name2;port2;username2;password2
host3;database_name3;port3;username3;password3

on tjava:
context.host=(String)globalMap.get("row1.host")
....the same for other parameters...

Regards
Shong

View solution in original post

2 Replies
Anonymous
Not applicable

Hi
Use context variables for db connection parameters, and use a tfixedFlowInput to generate the variable value.
tFixedFlowInput--main(row1)--tFlowToIterate--tjava--oncomponentok-->tOracleInput--tUnite-->

on tFixedFlowInput, select 'Use inline content' model, and input the variable value like
host1;database_name1;port1;username1;password1
host2;database_name2;port2;username2;password2
host3;database_name3;port3;username3;password3

on tjava:
context.host=(String)globalMap.get("row1.host")
....the same for other parameters...

Regards
Shong
Mehdi_Mhedhbi2
Contributor III
Contributor III
Author

thx you 0683p000009MACn.png)