Quantcast
Channel: Copying table from one database to another - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Answer by Cauca for Copying table from one database to another

$
0
0

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


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>