Example: Recovering an Entire Database to a Specified Point-in-Time
This example demonstrates how to perform point-in-time recovery (PITR) for a protected database. PITR may be required to revert the protected database to a prior date to recover from user errors (accidentally dropping tables or updating the wrong tables), media failure, or a failed database upgrade. You need to restore the control file only if there has been a structural change to the control file (such as creating or dropping tablespaces). Use the SET UNTIL
clause to specify the time, SCN, or log sequence to which the protected database must be recovered.
If Flashback Database is enabled for the protected database, you can also use this feature to recover to a prior point-in-time.
See Also:
-
Oracle Database Backup and Recovery User's Guide
-
Oracle Database Backup and Recovery Reference
To restore and recover the entire protected database, including the control file, to a specific point-in-time: