Restoring a Database to an Alternate Server

When restoring a database to an alternate server, you need to first prepare for Restore and then restore the parameter file, restore the control file to default location and then restore datafile.

To restore a database to an alternate server, perform the following steps:

  1. Preparing for Restore - Perform the following steps:
  2. Restore parameter file -
  3. Copy the spfile/pfile file from Server-A to Server-B to the desired location or you may restore from the autobackup/rman backup performing the following steps:
  4. Restore the control file to default location
  5. Use one of the following procedures:

  6. Restore datafiles - Perform the following steps:
    1. Mount the database.
    2. SQL> alter database mount;

    3. Restore the database.
    4. RMAN> connect target <username>/<password>;

      RMAN> run {

        Allocate channel dev1_1 device type sbt

        parms=’SBT_LIBRARY=/opt/Arcserve/ABoraagt/libobk64.so’;

        Restore database;

        Recover database until “cancel|sequence <archive-log-sequence>”

        release channel dev1;

        }

    5. After successful restore and recovery of the database, open the database with resetlogs.
    6. SQL> alter database open resetlogs;

The database is restored to an alternate host.