This package contains constants and procedure declarations for health check management. Health Monitor provides facilities to run a check store and retrieve the reports through DBMS_HM package
This chapter contains the following topics:
Security Model
Table 72-1 DBMS_HM Package Subprograms
| Subprogram | Description | 
|---|---|
| Returns the report for the specified checker run | |
| Runs the specified checker with the given arguments | 
This function returns the report for the specified checker run.
DBMS_HM.GET_RUN_REPORT (
    run_name      IN  VARCHAR2,
    type           IN  VARCHAR2 := 'TEXT',
    level          IN  VARCHAR2 := 'BASIC',) 
  RETURN CLOB;
Table 72-2 GET_RUN_REPORT Function Parameters
| Parameter | Description | 
|---|---|
| 
 | Name of the check's run | 
| 
 | Report format type. Possible values are  | 
| 
 | Details of report, possible value are  | 
This procedure runs the specified checker with the given arguments. It lets user to specify a name for the run, inputs needed and maximum timeout for the run. The run's report will be maintained persistently in database.
DBMS_HM.RUN_CHECK ( check_name IN VARCHAR2, run_name IN VARCHAR2 := NULL, timeout IN NUMBER := NULL, input_params IN VARCHAR2 := NULL);
Table 72-3 RUN_CHECK Procedure Parameters
| Parameter | Description | 
|---|---|
| 
 | Name of the check to be invoked. Check names and their parameters can be accessed from the  | 
| 
 | Name with which external users can uniquely identify this check's run. If  | 
| 
 | Maximum amount of time (in units of seconds), this checker run is allowed to run. HM will interrupt the run, if it the specified time elapses for the run. If  | 
| 
 | Input string: which consists of name, value pairs de-limited by a special character ';'. Example ('Data Block Integrity Check' invocation may take following type of input parameters. 'BLC_DF_NUM=1;BLC_BL_NUM=23456' Input parameters  Every check will have well defined set of inputs associated with it. These Input parameters, their types, default values and descriptions can be obtained using  Example: The following query gets the list of parameters, their default values and descriptions for a 'Data Block Integrity Check' SELECT a.* FROM v$hm_check_param a, v$hm_check b WHERE a.check_id = b.id AND b.name = 'Data Block Integrity Check'; |