Home » RDBMS Server » Server Utilities » Copy tables from one database to another
Copy tables from one database to another [message #70235] Wed, 08 May 2002 04:02 Go to next message
andrew grizhenkov
Messages: 1
Registered: May 2002
Junior Member
How to copy data of table A from one oracle database to exactly the same table B with more data in another oracle database?
Re: Copy tables from one database to another [message #70236 is a reply to message #70235] Wed, 08 May 2002 04:52 Go to previous messageGo to next message
Grant
Messages: 578
Registered: January 2002
Senior Member
http://www.orafaq.net/msgboard/vms/messages/69.htm
Re: Copy tables from one database to another [message #70252 is a reply to message #70235] Tue, 14 May 2002 23:23 Go to previous message
André ALIMBA
Messages: 16
Registered: April 2002
Junior Member
Fore copying tables from database db1 to another database db2 you must :

a) create database link between the two databases :
create public database link link_db1 connect to user_db1 identified by password_db1 using tns_connect_db1 ;

b) use copy "from" command:
copy from user_db1/password_db1@tns_connect_db1
create (or insert or append...) table_db2
using select * from table_db1;

ATTENTION : If the table contains many fields with the format of type LONG, it's good to use import / export utilities. Because maximum long size, using copy from command is 80.

If you use "copy from" command with "create" option, think to localise your table in the real tablespace...
Think to reindex, rebuilds constraints for this table
...

Good luck
Aurevoir et à bientôt...
André ALIMBA, Chef de Projet BEAC
Previous Topic: Re: SQL*Loader: ORA-01401: inserted value too large for column
Next Topic: how to load access data to oracle
Goto Forum:
  


Current Time: Fri Apr 26 10:19:56 CDT 2024