Oracle7 Server Administrator's Guide

Contents Index Home Previous Next

Performing Complete Media Recovery

This section describes the steps necessary to complete media recovery operations, and includes the following topics:

Do not depend solely on the steps in the following procedures to understand all the tasks necessary to recover from a media failure. If you haven't already done so, familiarize yourself with the fundamental recovery concepts and strategies [*].

See Also: See [*] for a detailed list of the different problems that media failures can cause and describes the appropriate methods of recovery from each type of problem.

Performing Closed Database Recovery

This section describes steps to perform closed database recovery of either all damaged datafiles in one operation, or individual recovery of each damaged datafile in separate operations.

To Perform Closed Database Recovery

Attention: If the hardware problem that caused the media failure was temporary, and the data was undamaged (for example, a disk or controller power failure), stop at this point.

Note: If you do not have a backup of a specific datafile, you might be able to create an empty replacement file that can be recovered.

	ALTER DATABASE DATAFILE 'users1' ONLINE;

    1. 8.1 To start closed database recovery of an individual damaged datafile, use the RECOVER DATAFILE statement in Server Manager.
Note: For maximum performance, use parallel recovery to recover the datafiles.

Oracle continues until all required archived redo log files have been applied to the restored datafiles. The online redo log files are then automatically applied to the restored datafiles and notifies you when media recovery is complete. If no archived redo log files are required for complete media recovery, Oracle does not prompt for any. Instead, all necessary online redo log files are applied, and media recovery is complete.

After performing closed database recovery, the database is recovered up to the moment that media failure occurred. You can then open the database using the SQL command ALTER DATABASE with the OPEN option.

See Also: See "Restoring Damaged Datafiles" [*] for more information about creating datafiles.

For more information about datafile lists, see "Listing Database Files Before Backup" [*].

For more information about applying redo log files, see "Applying Redo Log Files" [*].

Performing Open-Database, Offline-Tablespace Recovery

At this point, an open database has experienced a media failure, and the database remains open while the undamaged datafiles remain online and available for use. The damaged datafiles are automatically taken offline by Oracle.

This procedure cannot be used to perform complete media recovery on the datafiles of the SYSTEM tablespace. If the media failure damages any datafiles of the SYSTEM tablespace, Oracle automatically shuts down the database.

See Also: To proceed with complete media recovery, follow the procedure in "Performing Closed Database Recovery" [*].

To Perform Open-Database, Offline-Tablespace Recovery

    1. 1.1 If the database was shut down, start a new instance, and mount and open the database. Perform this operation using the Server Manager Startup Database dialog box (with the Startup Open radio button selected), or with the STARTUP command with the OPEN option. After the database is open, take all tablespaces that contain damaged datafiles offline.
    1. 1.2 If the database is still open and only damaged datafiles of the database are offline, take all tablespaces containing damaged datafiles offline. Oracle identifies damaged datafiles via error messages. Tablespaces can be taken offline using either the Take Offline menu item of Server Manager, or the SQL command ALTER TABLESPACE with the OFFLINE option, as described in "Taking Tablespaces Offline" [*]. If possible, take the damaged tablespaces offline with temporary priority (to minimize the amount of recovery).

Note: If you do not have a backup of a specific datafile, you can create an empty replacement file, which can be recovered.

See Also: For more information about redo log application, see "Applying Redo Log Files" [*].

For more information about creating datafiles, see "Restoring Damaged Datafiles" [*].

Performing Open-Database, Offline-Tablespace Individual Recovery

Identical to the preceding operation, here an open database has experienced a media failure, and remains open while the undamaged datafiles remain online and available for use. The damaged datafiles are automatically taken offline by Oracle.

Note: This procedure cannot be used to perform complete media recovery on the datafiles of the SYSTEM tablespace. If the media failure damages any datafiles of the SYSTEM tablespace, Oracle automatically shuts down the database.

To Perform Open-Database, Offline-Tablespace Individual Recovery

    1. 1.1 If the database was shut down, start a new instance, and mount and open the database. Perform this operation using the Server Manager Startup Database dialog box (with the Startup Open radio button selected), or with the STARTUP command with the OPEN option. After the database is open, take all tablespaces that contain damaged datafiles offline.
    1. 1.2 If the database is still open and only damaged datafiles of the database are offline, take all tablespaces containing damaged datafiles offline. Oracle identifies damaged datafiles via error messages. Tablespaces can be taken offline using either the Take Offline menu item of Server Manager, or the SQL command ALTER TABLESPACE with the OFFLINE option, as described in "Taking Tablespaces Offline" [*]. If possible, take the damaged tablespaces offline with temporary priority (to minimize the amount of recovery).

Note: If you do not have a backup of a specific datafile, you can create an empty replacement file, which can be recovered.

See Also: For information about how to proceed with complete media recovery, see "Performing Closed Database Recovery" [*].

For more information about creating datafiles, see "Restoring Damaged Datafiles" [*].


Contents Index Home Previous Next