The following procedure describes the steps involved in restoring and recovering a database (either in ARCHIVELOG or NOARCHIVELOG) mode to a new host, with a different directory structure.
When you are restoring data from a database in NOARCHIVELOG mode, you must always restore and recover the entire database. |
Before You Begin:
In the destination machine
In addition the destination machine must have sufficient disk space to accommodate the restored database.
Required Capability: See Capabilities and Permitted Actions
To restore and recover a database to a new host with a different directory structure:
Make sure that the <username>you
supply for the destination machine is different than the username for
the source machine.
When you are granting the user database permissions, make sure to include the recovery_catalog_owner option shown above. |
When performing cross-machine restore, do the following:
SQL> alter database rename file '/oracle/oradata/rman10g1/redo01.log' to '/space/oracle/oracle10g2/oradata/redo01.log';
SQL> alter database rename file '/oracle/oradata/rman10g1/redo02.log' to '/space/oracle/oracle10g2/oradata/redo02.log';
SQL> alter database rename file '/oracle/oradata/rman10g1/redo03.log' to '/space/oracle/oracle10g2/oradata/redo03.log';
Here, '/oracle/oradata/rman10g1/ is the source redo log location and '/space/oracle/oracle10g2/oradata/ is the destination redo log location.
If your destination client is not listed, check and ensure that all the requirements stated in the Before you Begin section is satisfied. |
It is critical that the Recover option is selected, as Recover applies any incremental backups that are needed to bring the database back to a consistent state. |
The Control file must be restored to a point in time that is later than or equal to time set for the Restore Data option in the Restore tab. |
The Restore Data option must be earlier than or equal to the point in time that you specified for the Restore Control File option in the Ctrl & SP Files tab. |
The point in time for the recover option must be later than or equal to the point in time specified for the Control file in the Ctrl & SP Files tab. |
The path for datafiles should be created manually because Oracle or Oracle iDataAgent will not create that path. |
Before the restore job is run, the system will check whether the database is in the correct mode for this type of restore. If it is not, a message dialog will inform you of this and offer to automatically switch the database into the valid mode. When this happens, either click Yes on the message dialog to have the system automatically switch the database to the valid mode and continue the restore, or click No to manually switch the database to the valid mode before proceeding. |