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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
TamilM
Contributor II
Contributor II

migrate my 1000 tables structures from one database to another database in an single run ?

Do we have any option in talend to migrate my 1000 tables structures from one database to another database in an single run? since my dynamic schema option is not working for this (dynamic schema option only works when the source is having a data) .
Labels (2)
9 Replies
Sid3
Contributor III
Contributor III

Hi,

 

you can copy tables using below job.

 

parameterize your source db and target db.

 

put the below query in tOracleRow component

 

"create table "+context.tgt_db_name+"."+((String)globalMap.get("tOracleTableList_1_CURRENT_TABLE"))+" as select * from "+context.src_db_name+"."+((String)globalMap.get("tOracleTableList_1_CURRENT_TABLE"))+" where 1=0;"

 

 

0683p000009Ltrz.jpg

 

 

TamilM
Contributor II
Contributor II
Author

Hi Sid4U, Thanks for your input on this, but i am unable see your screenshot , can you explain me in detail ? or update a attachment. Thanks
Sid3
Contributor III
Contributor III

I can clearly see the image in my previous post. anyway attaching again0683p000009Lttm.jpg

Anonymous
Not applicable

I'm not sure that job will work since we are dealing with only one database.

 

What's about copying structure from Oracle database to MySQL database? Or maybe two different instance Oracle DB

cterenzi
Specialist
Specialist

As he said:
parameterize your source db and target db.

Where you send the data is up to you.
Anonymous
Not applicable

My suggestion :

 

toracleTable_list --- iterate ---> toracleinput(schema should be dynamic) ------- main ----------> toracleoutput / tmysqloutput (schema should be dynamic)

 

You will get tables name from toracletable_list

Anonymous
Not applicable

By the way,have you solved this problem?What is the specific settings  of  tOracleRow ? I have the same problem. I want to copy 50 tables from one database to another database. Can I have your attention,please?

Anonymous
Not applicable

Have you run the job successfully? I have set the same job,but the job does not work,the third one has problems. If you have any time ,please tell me how to set the three parts of the job. Thank you very much.

Anonymous
Not applicable

Sure,

The job is running perfectly.
But you can only do it with professional version.