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.

CHAPTER 2 ■ DATABASE DIAGNOSABILITY AND FAILURE REPAIR 83Here’s what the different arguments of the run_check procedure stand for:• CHECKNAME: Name of the database check. This is a mandatory argument and must exactlymatch a check name from the V$HM_CHECK view.• RUNNAME: This is an optional argument that lets you specify a name for the check run.• TIMEOUT: Optionally, you can set a limit on the length of time a check can run.• PARAMS: This is an input parameter that controls the execution of the check. You can viewthe various types of inputs by querying the V$HM_CHECK_PARM view.In the following example, we show you how to perform a database crosscheck, which teststhe integrity of all datafiles in the database. Just pass the type of check and a name for the testrun to the run_check procedure, as shown here:SQL> exec dbms_hm.run_check('DB Structure IntegrityCheck','testrun1');PL/SQL procedure successfully completed.SQL>The Health Monitor saves the report of all its database checks in the ADR home of thisdatabase instance. The show hm_run command shows a summary of all checker executions thatare registered in the ADR. These are the same checker runs that will be visible from the V$HM_RUNview. Here are sample results of the show hm_run command:adrci> show hm_run**********************************************************************HM RUN RECORD 19RUN_ID 342RUN_NAMEtestrun1CHECK_NAMEData Block Integrity CheckNAME_ID 3MODE 0START_TIME 2007-07-22 17:50:17.845880 -04:00RESUME_TIMEEND_TIME 2007-07-22 17:50:17.886126 -04:00MODIFIED_TIME 2007-07-22 17:50:17.886126 -04:00TIMEOUT 0FLAGS 0STATUS 6SRC_INCIDENT_ID 0NUM_INCIDENTS 0ERR_NUMBER 48615REPORT_FILE...19 rows fetchedadrci>

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

Saved successfully!

Ooh no, something went wrong!