Reputation: 5966
Sorry if my question has already been asked but I couldn't find how to make it.
I created an Oracle database in a server and I would like to generate a script in order to copy it to a different server. I would like to copy everything (tables, data, thriggers, sequences...)
Does anyone have a link on how to do this please ?
Thank you.
Upvotes: 1
Views: 238
Reputation: 1553
I googled oracle export and found this: http://docs.oracle.com/cd/B10501_01/server.920/a96652/ch01.htm
so the binary exp
is what you are looking for to create a dump
Examples:
exp username/password
To invoke Export as SYSDBA, use the following syntax, adding any desired parameters or parameter filenames:
exp \'username/password AS SYSDBA\'
Optionally, you could also specify an instance name:
exp \'username/password@instance AS SYSDBA\'
After you have copied the export file, on the target server, use imp
to import the dump.
Here is the documentation for imp
http://docs.oracle.com/cd/B10501_01/server.920/a96652/ch02.htm#1005452
EDIT: As stated in the comments by Jeffrey Kemp, exp/imp is deprecated with oracle 10: http://www.oracle-base.com/articles/10g/oracle-data-pump-10g.php
Upvotes: 1