9.6 About Restoring and Recovering a Database
Learn how to restore and recover VSS snapshots. As in the case of backups, the procedure depends on the archiving mode of the database and the type of snapshot that you are restoring.
Topics:
- About Restoring and Recovering a Database in ARCHIVELOG Mode
You can select the components listed in Components Usable in a Restore Operation in a restore and recovery operation. - Restoring a Database in NOARCHIVELOG Mode
For an Oracle Database running inNOARCHIVELOG
mode, archived redo logs are not generated. So, media recovery is not possible.
9.6.1 About Restoring and Recovering a Database in ARCHIVELOG Mode
You can select the components listed in Components Usable in a Restore Operation in a restore and recovery operation.
The table describes the validations that Oracle VSS writer performs for the components during the pre-restore phase, and the actions that it performs after the restore completes.
Table 9-3 Components Usable in a Restore Operation
Component | Pre-Restore Phase | PostRestore Phase | Section |
---|---|---|---|
Server Parameter File |
Verifies that the database instance is not started. Otherwise, the writer returns a pre-restore failure. |
Ensures that the database is started |
|
Control File |
Verifies that the instance is either started |
Mounts control file after replicating control file to all the current control file locations pointed to by the instance. |
|
Tablespace or data file component |
Verifies that the database must be mounted or the specified data files or tablespaces must be offline. |
Performs complete recovery of these tablespaces or data files. The requester application can override the default recovery behavior. |
|
All Tablespaces |
Verifies that the database is mounted. |
Extracts redo from the backup writer metadata document and performs incomplete recovery on all the restored data files up to the time of snapshot creation. The requester application can override the default recovery behavior. |
|
Oracle Database |
Verifies that the instance is not started. |
Starts the database instance, mounts the control file, and performs recovery. See the descriptions of postrestore behavior for Server Parameter File, Control File, and All Tablespaces. |
"Performing Disaster Recovery" and "Restoring Component-Based Backups of a NOARCHIVELOG Database" |
Archived redo log or fast recovery area |
None. |
Does not perform default recovery of this component. Nevertheless, the requester application can run required RMAN commands. |
Topics:
- Restoring the Server Parameter File
Use this procedure to restore the server parameter file. - Recovering from the Loss of All Control Files
This procedure explains how to recover from the loss of all multiplexed control files. - Recovering Tablespaces or Data Files
This procedure explains how to recover from the loss of one or more tablespaces or data files. This procedure assumes that not all data files are lost. - Recovering All Tablespaces
This procedure explains how to recover from the loss of all tablespaces. - Performing Disaster Recovery
This procedure explains how to recover from the loss of the server parameter file, control file, and all data files.
9.6.1.1 Restoring the Server Parameter File
Use this procedure to restore the server parameter file.
To restore the server parameter file:
9.6.1.2 Recovering from the Loss of All Control Files
This procedure explains how to recover from the loss of all multiplexed control files.
To recover from the loss of all control files:
9.6.1.3 Recovering Tablespaces or Data Files
This procedure explains how to recover from the loss of one or more tablespaces or data files. This procedure assumes that not all data files are lost.
To recover from the loss of all tablespaces or data files:
9.6.1.4 Recovering All Tablespaces
This procedure explains how to recover from the loss of all tablespaces.
To recover all data files:
9.6.2 Restoring a Database in NOARCHIVELOG Mode
For an Oracle Database running in NOARCHIVELOG
mode, archived redo logs are not generated. So, media recovery is not possible.
Topics:
- Restoring Component-Based Backups of a NOARCHIVELOG Database
Use this procedure to restore a component-based backup. - Restoring Volume-Based Backups of a NOARCHIVELOG Database
Use this procedure to restore a volume-based backup.
9.6.2.1 Restoring Component-Based Backups of a NOARCHIVELOG Database
Use this procedure to restore a component-based backup.
To restore a component-based backup:
9.6.2.2 Restoring Volume-Based Backups of a NOARCHIVELOG Database
Use this procedure to restore a volume-based backup.
To restore a volume-based backup:
- Use a third-party VSS requester to select the volumes where the data files, control files, and server parameter file are physically located.
- Restore all volumes where data files and logs are located.
- Open the database with the
RESETLOGS
option.