Reputation: 9
I want to load data from one database table to another database table. For example there exists table 'tbl' in db1 and db2 databases, and I want to copy all data from 'tbl' of 'db1' to 'tbl' of 'db2' in oracle. Any help would be appreciated.
Upvotes: 1
Views: 2775
Reputation: 43533
I would make use of either exp/imp or expdp/impdp (10g+) for this.
The older exp/imp command is slower, but has the advantage that the export file is created and read from the client system. The expdp/impdp command is much faster, but the file is created on and read from the server where the databases live. So, if you have your databases on different servers, you'll need to copy the export files around. Also, it requires an Oracle Directory to be set up by the DBA.
Upvotes: 1