Restoring in Preparation for Incomplete Recovery
Use the set until command to specify the termination point for recovery. This command affects any subsequent restore, switch, and recover commands that are in the same run command.
To restore the database in preparation for incomplete recovery:
- Start RMAN and connect to the target database and, optionally, the recovery catalog database. For example, enter:
% rman target / catalog rman/rman@rcat
Optionally, specify a message log file at connect time:% rman target / catalog rman/rman@rcat log = rman_log
- If the database is open, shut it down and then mount it:
shutdown immediate; startup mount;
- Perform the following operations within your run command:
- Determine whether you want to recover to a specified time, SCN, or log sequence number and issue the appropriate set until command.
- Allocate channels.
- Restore the database.
For example, this job restores the database in anticipation of an incomplete recovery until December 15, 1998 at 9 a.m.run { set until time 'Dec 15 1998 09:00:00'; allocate channel ch1 type 'sbt_tape'; restore database; }
No comments:
Post a Comment