Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I copy or import Oracle schemas between two different databases on different servers?

Tags:

oracle

What is the best way to copy schema from one user/instance/server:

jdbc:oracle:thin:@deeb02:1535:DH, user pov

to another user/instance/server

jdbc:oracle:thin:@123.456.789.123:1523:orcl, user vrs_development

?

like image 569
Kamilski81 Avatar asked Dec 09 '11 20:12

Kamilski81


1 Answers

Similarly, if you're using Oracle 10g+, you should be able to make this work with Data Pump:

expdp user1/pass1@db1 directory=dp_out schemas=user1 dumpfile=user1.dmp logfile=user1.log

And to import:

impdp user2/pass2@db2 directory=dp_out remap_schema=user1:user2 dumpfile=user1.dmp logfile=user2.log
like image 112
Aaron Avatar answered Sep 23 '22 00:09

Aaron