Entering content frameProcedure documentation Checking the Database Locate the document in its SAP Library structure

Use

You check the database when using SAPDBA to perform a partial restore and complete recovery of your Oracle database. This procedure checks the database for critical errors that might prevent production operation.

SAPDBA analyzes the appropriate V$ database tables to check:

Note

These checks do not find out, for example, whether table indexes are missing. To do this, use the Oracle Structure linkdatabase monitor in the SAP System.

Since some of the V$ tables are only updated when the database is restarted, SAPDBA differentiates between the following:

This check is performed with the database open. However, you cannot then recover the database with SAPDBA because the information obtained from this check is not necessarily current. As a result, if you have only performed the online quick check, the Check database function is set to status not finished.

You can perform the online quick check at any time, in order to check the status of the control files, data files, and the online redo log files.

In addition, you can use the SAPDBA menu option Archive mode ® Show complete archive history to determine initially which redo log files are necessary for a recovery, starting from the last backup.

This is a comprehensive check and is required if you want to later restore and recover the database. Before a safe check, SAPDBA switches the database offline then remounts it. This guarantees that the information in the V$ tables is up-to-date. When the offline safe check is finished, and as long as it resulted in no errors, the database is opened again.

Prerequisite

Procedure

  1. Choose Restore/recovery ® Partial restore and complete recovery ® Check database in SAPDBA.
  2. SAPDBA displays the restore and recovery options.

  3. If required, change the restore and recovery options.
  4. Enter y to continue.
  5. SAPDBA checks the control files, data files, links, and bad entries in the control file, then asks whether you want to perform an offline safe check.

  6. To perform a safe check, enter y.
  7. If the database is online, SAPDBA warns you that the database will be shut down immediately for the safe check.

  8. To shut down the database and continue with the safe check, enter y.

SAPDBA shuts down the database and comprehensively checks the database.

Result

SAPDBA reports any problems that it finds, such as a missing data file.

What happens at the end of the check depends on whether SAPDBA finds any errors:

To continue with the partial restore and complete recovery, perform Finding the Backup Files.

Leaving content frame