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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s