Requires Free Membership to View
Have you read the Oracle Recovery Manager User's Guide and Reference? Everything you should need you can find there.
Here's a bit of what you'll find:
Because your restored database will not have the online redo logs of your production database, you will need to perform incomplete recovery up to the lowest SCN of the most recently archived redo log in each thread and then open the database with the RESETLOGS option.
This scenario assumes that:
- You are restoring backups from HOST_A onto HOST_B.
- You are restoring from tape backups.
- The HOST_A database has the same DB_NAME as the HOST_B database.
- The HOST_B filenames and directory paths are the same as in HOST_A.
To restore the database from HOST_A to HOST_B with a recovery catalog:
- Copy the initialization parameter file for HOST_A to HOST_B using an operating system utility.
- Connect to the HOST_B target instance and HOST_A recovery catalog. For example, enter:
% rman target sys/change_on_install@host_b catalog rman/rman@rcat
- Start the instance without mounting it:
startup nomount;
- Restore and mount the control file. Execute a run command with the following sub-commands:
- Allocate at least one channel.
- Restore the control file.
- Mount the control file.
- Because there may be multiple threads of redo, use change-based recovery. Obtain the SCN for recovery termination by finding the lowest SCN among the most recent archived redo logs for each thread.
Start SQL*Plus and use the following query to determine the necessary SCN:
SELECT min(scn) FROM (SELECT max(next_change#) scn FROM v$archived_log GROUP BY thread#); - Execute a run command with the following sub-commands:
- Set the SCN for recovery termination using the value obtained from the previous step.
- Allocate at least one channel.
- Restore the database.
- Recover the database.
- Open the database with the RESETLOGS option.
run { set until scn = 500; # use appropriate SCN for incomplete recovery allocate channel ch1 type 'sbt_tape'; restore database; recover database; alter database open resetlogs; }
This was first published in May 2003

Join the conversationComment
Share
Comments
Results
Contribute to the conversation