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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Dynamic Database Connection using Context

Hi All,
I am new to Talend tool. I try to use dynamic database connection using context. I added all the connection details in the context variable and inside job i used tOracleInput component, inside the query box i added my sql query and added the context variables in the corresponding controls and try to run the job. but getting an error as " table or view doesn't exists"
Please find the attached screenshot
Please kindly do the needful
Waiting for answer
Thanks
Madhu
0683p000009MDj5.jpg
Labels (2)
6 Replies
Anonymous
Not applicable
Author

If i add an schema name before table name then it working fine (i.e. select * from db.employee). but i dont want to add the schema name because my qa database schema is different so i need to do it dynamically
Please suggest me how to proceed
Thanks
Madhu
Anonymous
Not applicable
Author

Hi Madhu,
Screenshot is not clear. Your error is simply says that the table or view which is referred in the query does not exists. Check your query again with the database connection. It is good to use connection component before using input component.
Regarding dynamic database connection, whether the connection parameters are selected from property file which is changing continuously based on some value? from where and how this dynamic value is changing?
Vaibhav
Anonymous
Not applicable
Author

Hi sanvaibhav,
Please find the screenshot.
If i add an schema name before table name then it working fine (i.e. select * from db.employee).
but i dont want to add the schema name because my qa database schema is different so i need to do it dynamically
0683p000009MDjA.jpg
Anonymous
Not applicable
Author

Hi Madhu,
Concept of dynamic means - a query or a result set which changes run-time based on some other input value. Schema name is must, if you don't want to hard code it, how you are planning to embed in the query?
Thanks
Vaibhav
Anonymous
Not applicable
Author

I am using context variable, its having db connetion details and schema name. using context, we not able to pass schema value?
Anonymous
Not applicable
Author

Hi Madhu,
"SELECT *... your query goes here FROM "+context.db+"."+context.tablename
This is the way you can pass the values of context variable in query.
Thanks
Vaibhav