Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I worked previously on merging two mysal and oracle databases into one mysql, here is my basic schema that I used to do the job:
myOracleDbInput --------\ tUnit_1 ----> mySqlDbOutput
mySqlDbDbInput ----------/
Now I'm wondering if I can merge several databases whose parameters are on text files for example located in a directory, for example:
- Directory: Parameters of the databases:
- database1.txt
- database2.txt
..
- databaseN.txt
Is there an opportunity to iterate over the directory to achieve this Job?
Thank you.
Thank you for your return, Can you explain me more about this method ? what do you mean by a child job !!!?
Can you provide an example please ?
I'm seeing the other posts, to see if I can do the work, and thank you for your help,
my repertory named "databasesParameters " structured as follows:
database1.txt:
- host, xxxx
- port, xxxx
- data_base_name, xxxx
- user, xxxx
- password, xxxx
- table_name, xxxx
database2.txt:
- host, xxxx
- port, xxxx
- data_base_name, xxxx
- user, xxxx
- password, xxxx
- table_name, xxxx
..
..
..
..
databaseN.txt:
- host, xxxx
- port, xxxx
- data_base_name, xxxx
- user, xxxx
- password, xxxx
- table_name, xxxx
Real Exemple :
productsDb.txt
- host,127.0.0.1
- port, 5487
- data_base_name, productsDb
- user, free
- password, pass
- table_name, construction_products_holding
Thanks again for your help.