Tuesday, August 21, 2012

Migrating/Copying Database

  1. Login as DBA user and note the tablespace name

SQL> SELECT tablespace_name FROM dba_tablespaces;

  1. Perform a full export from the source database

SQL> exp system/manager FULL=y FILE=export.dmp

  1. Move the dump file to the target database server. If using FTP, be sure to copy it in binary format to avoid file corruption.
  2. Create a database on the target server.
  3. Before importing the dump file, create tablespaces, using the same tablespace name.
  4. Login as DBA user & perform a full import. IGNORE=y instructs Oracle to ignore any creation errors during the import and permit the import to complete.

SQL> imp system/manager FULL=y IGNORE=y FILE=export.dmp

No comments:

Post a Comment

Thank you for your feedback