Propose:
Use the FLASHBACK DATABASE
command to rewind the database to a target time, SCN, or log sequence number.
This command works by undoing changes made by Oracle Database to the datafiles that exist when you run the command. Flashback can fix logical failures, but not physical failures. Thus, you cannot use the command to recover from disk failures or the accidental deletion of datafiles.
FLASHBACK DATABASE
is usually much faster than a RESTORE
operation followed by point-in-time recovery, because the time needed to perform FLASHBACK DATABASE
depends on the number of changes made to the database since the desired flashback time. On the other hand, the time needed to do a traditional point-in-time recovery from restored backups depends on the size of the database.
Flashback Database also has a number of uses in a Data Guard environment
Prerequisites
You can run this command from the RMAN prompt or from within a RUN
command.
RMAN must be connected as TARGET
to a database, which must be Oracle Database 10g or later. The target database must be mounted with a current control file, that is, the control file cannot be a backup or re-created. The database must run in ARCHIVELOG
mode.
You cannot use FLASHBACK DATABASE
to return to a point in time before the restore or re-creation of a control file. If the database control file is restored from backup or re-created, then all existing flashback log information is discarded.
The flash recovery area must be configured to enable flashback logging. Flashback logs are stored as Oracle-managed files in the flash recovery area and cannot be created if no flash recovery area is configured. You must have enabled the flashback logging before the target time for flashback by means of the SQL statement ALTER DATABASE ... FLASHBACK ON
. Query V$DATABASE.FLASHBACK_ON
to see whether flashback logging has been enabled.
The database must contain no online tablespaces for which flashback functionality was disabled with the SQL statement ALTER TABLESPACE ... FLASHBACK OFF
.
Ref: http://docs.oracle.com/cd/B28359_01/backup.111/b28273/rcmsynta023.htm.
Bons estudos!