Professional Documents
Culture Documents
If you lose all copies of the current logfile group perform a incomplete recovery upto the last log switch, also if you
recover tablespaces that are in a different time to other tablespaces, they must be all the same time.
Incomplete recovery is always done in mount mode and will use the controlfile, a incomplete recovery can only be
performed if you have SYSDBA privilege. Use v$log_history to obtain the archive redo logs thread and sequence numbers
if performing a sequence number recovery.
RMAN
set until time 2007-12-10 11:29:00 (note: this is based on the NLS_DATE_FORMAT)
RMAN Recover Options set until sequence 10305 thread 1; (note: it is one less than specified)
set until scn 67543;
SQL
Note: When doing an incomplete recovery with SQL*Plus you have no option with the date option it
must be yyyy-mm-dd hh24:mis:ss
recover database until cancel (At random type cancel to stop the recovery)
SQL Recover Options recover database until change 309121
recover database until time 2007-12-10 11:29:00 (see below for options)
Resetlogs
The restlogs clause is required in most incomplete recovery to open the database. It resets the redo log sequence for the
oracle database. For recovery through a resetlogs to work, it is vital that the names generated for the archive logs let oracle
distinguish between logs produced by different incarnations. This is why you use the %r in the parameter
log_archive_format, %r is the incarnation other wise archive logs could be written over.
After a resetlogs there will be a new database incarnation number and the log switch number will be reset. In previous
version all old backups and archive logs would have been useless but not any more in Oracle 10g.
http://www.datadisk.co.uk/html_docs/oracle/recover_incomplete.htm 1/2
11/22/2017 Oracle Incomplete recovery
Anytime you use the open resetlogs command, the incarnation of the database changes and a new incarnation begins. The
previous incarnation is called ancestor incarnation and the latest is called current incarnation. to recover using previous
incarnations you
1. Obtain the incarnation key that was current at the time you want to recover the database to
3. reset the current incarnation to the incarnation that was current at the point in time that you want to recover to
5. restore and recover the database until the point in time or SCN
rman> restore database;
rman> recover database until scn 1000;
http://www.datadisk.co.uk/html_docs/oracle/recover_incomplete.htm 2/2