11.07.2015 Views

Oracle Database 11 g - Online Public Access Catalog

Oracle Database 11 g - Online Public Access Catalog

Oracle Database 11 g - Online Public Access Catalog

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

92 CHAPTER 2 ■ DATABASE DIAGNOSABILITY AND FAILURE REPAIRSQL> select repair_id,advise_id,summary,rankfrom v$ir_repair;REPAIR_ID ADVISE_ID SUMMARY RANK------------ -------- -------------------- --------23 21 NO DATA LOSS OPTION 169 67 NO DATA LOSS OPTION 182 80 NO DATA LOSS OPTION 1SQL>The SUMMARY column indicates that the repair action for all three failures is NO DATA LOSSOPTION, meaning that the failure can be repaired with no data loss.Repairing a Missing Datafile ProblemWe’ll walk you through a missing datafile problem so you can understand how the <strong>Database</strong>Repair Advisor performs its job. In the following example, the database can’t be opened because ofa missing datafile:SQL> startupORACLE instance started.Total System Global Area 615055360 bytesFixed Size1324864 bytesVariable Size239757504 bytes<strong>Database</strong> Buffers369098752 bytesRedo Buffers4874240 bytes<strong>Database</strong> mounted.ORA-0<strong>11</strong>57: cannot identify/lock data file 4 - see DBWR trace fileORA-0<strong>11</strong>10: data file 4: 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\NICK\USERS01.DBF'SQL>The following are the steps you must follow in order to repair the problem with the help ofthe Data Recovery Advisor:1. Start the RMAN client and use the database repair commands you reviewed in the previoussection to fix the missing datafile problem, starting with the list failure command:RMAN> list failure;List of <strong>Database</strong> FailuresFailure ID Priority Status Time Detected Summary---------- -------- --------- ------------- ------------------------------4 HIGH OPEN 29-MAR-07 multiple datafiles are missingRMAN>You can also execute a variation of the list failure command to get the individualsubfailures that may have been consolidated under a single failure by the DRA by passingthe unique identifier for a specific failure to the list failure command and specifyingthe keyword detail. Here’s an example:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!