Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copying data from a database to another
Message
 
 
To
14/08/2001 09:43:10
General information
Forum:
Oracle
Category:
Other
Miscellaneous
Thread ID:
00542529
Message ID:
00543494
Views:
16
In that case, you can:

CREATE DATABASE LINK linkname CONNECT TO username IDENTIFIED BY password USING 'connect_string';

CREATE SYNONYM OTHERUSERNAME_TABLENAME for TABLENAME@Linkname;

Then you can select from that other user's table:

SELECT * FROM OTHERUSERNAME_TABLENAME;

Then you can use the syntax I already gave you. When you are done, you can:

DROP DATABASE LINK linkname;

>Hello Mark,
>
>Thanks for your help!.
>
>>Are you copying the rows to another table in the same Oracle instance? What I >mean is this in the same Oracle instance? If so, the TO user needs SELECT >privilege on the table of the FROM user. Then you can issue the following SQL:
>
>No, the database are in different instances.
>
>Thanks,
>Sergio
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform