Complete and Incomplete Recovery in Oracle
Complete and Incomplete Recovery in Oracle
Oracle Database
Media Recovery:
Media recovery is a process of restoring the physical backups and making all the
restored datafiles consistent with each other by having same SCN’s in their header’s.
Steps:
During database open take tablespace or datafile which need recovery offline.
Restore the backup tablespace or datafile.
Apply the online redo log files or archive redo log files or both.
Open the database with sql>alter database open;
Incomplete Recovery:
Incomplete recovery in oracle database are done using following option when
applying archived redo log files and online redo log files.
The above statement reset the log sequence to 0 and this command is must used
when we perform incomplete recovery.
RECOVER TABLESPACE
RECOVER TABLESPACE performs media recovery on all datafiles in the tablespaces
listed. To translate the tablespace names into datafile names, the database must be
mounted and open. The tablespaces must be offline to perform the recovery. An error
is indicated if none of the files require recovery.
RECOVER DATAFILE
RECOVER DATAFILE lists the datafiles to be recovered. The database can be open
or closed, provided the media recovery locks can be acquired. If the database is open
in any instance, then datafile recovery can only recover off-line files.