Oracle8i Backup and Recovery Guide Release 8.1.5 A67773-01 |
|
A sub-clause that specifies an upper limit by time, SCN, or log sequence number for various RMAN operations.
All date strings must be either:
Use this sub-clause in conjunction with the following commands:
This example assumes that log sequence 1234 was lost due to a disk crash and the database needs to be recovered using available archived redo logs.
run { allocate channel ch1 type disk; allocate channel ch2 type 'sbt_tape'; set until logseq 1234 thread 1; restore controlfile to '$ORACLE_HOME/dbs/cf1.f' ; replicate controlfile from '$ORACLE_HOME/dbs/cf1.f'; alter database mount; restore database; recover database; sql "ALTER DATABASE OPEN RESESTLOGS"; }
This example recovers the database until a specified SCN:
startup mount; run{ allocate channel ch1 type disk; restore database; recover database until scn 1000; sql "ALTER DATABASE OPEN RESESTLOGS"; }
This example assumes that you want to be able to recover to any point within the last seven days. It considers backups made more than a week ago as obsolete:
report obsolete until time 'SYSDATE-7';