I did a Oracle migration database with many tables, but lost this code :-(
I basically create these steps:
- Connect the source database;
- Create a list of all the tables you want to migrate.
- For which table, you need to read a tab_column_name to extract a column name sequence table.
- Save the date in a dictionary
Connect the target database (with the table created) and enter with the same string as you extracted;
I recommend that you extract the script from all tables and create in target first
- to validate before extracting, save a row count table to match after insertion (do row count at destination)
My the tables have many dates and python gave me a good performance.
I hope this helps