Point-in-Time Recovery
If your database is in archivelog mode, you can do point-in-time recovery. This type of recovery is performed against the entire database and not against a single datafile or tablespace. It should not be confused with tablespace point-in-time recovery (RMAN TSPITR). The following Oracle9i example uses RMAN to restore the datafiles and then uses SQL*Plus to perform a cancel-based recovery:
RMAN>restore database;SQL>recover database until cancel;
Once you have recovered your database to the appropriate point, you can open it for use. Since you are doing a point-in-time recovery, you need to open the database with the resetlogs parameter:
SQL> alter database open resetlogs;Since the logs were reset, it is crucial that an immediate backup be taken of the database. Additionally, if a recovery catalog is being used, a new incarnation of the database has been created and must be made known to the catalog via the reset database command.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access