DBMS_AUTO_ZONEMAP
The DBMS_AUTO_ZONEMAP package provides autonomous maintenance and creation of zone map.
This chapter contains the following topics:
DBMS_AUTO_TASK_ADMIN Security Model
The subprograms in DBMS_AUTO_TASK_ADMIN package can be executed by users with DBA privileges.
Summary of DBMS_AUTO_ZONEMAP Subprograms
This table lists the DBMS_AUTO_ZONEMAP package subprograms and briefly describes them.
Table 1 DBMS_AUTO_ZONEMAP Package Subprograms
| Procedure | Description |
|---|---|
| ACTIVITY_REPORT Function | This function reports auto zone map activity for a given time window. |
| CONFIGURE Procedure | This procedure sets configuration options for auto zone map. |
ACTIVITY_REPORT Function
This function reports auto zone map activity for a given time window.
Syntax
DBMS_AUTO_ZONEMAP.ACTIVITY_REPORT (
start_time IN TIMESTAMP WITH TIME ZONE DEFAULT NULL,
end_time IN TIMESTAMP WITH TIME ZONE DEFAULT NULL,
type IN VARCHAR2 DEFAULT NULL,
section IN VARCHAR2 DEFAULT NULL,
level IN VARCHAR2 DEFAULT NULL);
RETURNS CLOB
Parameters
Table 2 ACTIVITY_REPORT Function Parameters
| Parameter | Description |
|---|---|
start_time |
Timestamp from which auto zone map executions are observed for the report. If the value is The default value is |
end_time |
Timestamp until which auto zone map executions are observed for the report. If the value is The default value is Note: If you specifyNULL for both start_time and end_time, the function will display the report from the last run. |
type |
Output type of the report. The possible values are The default value is |
section |
Particular section in the report. The possible values are:
The default value is |
level |
Format of the report. It represents the level of details with in each section. Possible values are:
|
Return Values
Report in CLOB format. The default report format is TEXT. Possible formats are TEXT, XML, and HTML.
Usage Notes
-
DBMS_AUTO_ZONEMAP.ACTIVITY_REPORT(): returns report for all the execution history of last execution in
TEXTformat and all the sections will be displayed with typical level. -
DBMS_AUTO_ZONEMAP.ACTIVITY_REPORT(systimestamp-2, NULL): returns report for all the execution history for last two days in
TEXTformat and all the sections will be displayed with typical level. -
DBMS_AUTO_ZONEMAP.ACTIVITY_REPORT(NULL, systimestamp-1): returns report for all the execution history from beginning to yesterday in
TEXTformat and all the sections will be displayed with typical level. -
DBMS_AUTO_ZONEMAP.ACTIVITY_REPORT(NULL, NULL, ‘HTML’, ‘DETAILS’, ‘BASIC’): returns last execution’s report in
HTMLformat and only details section will be displayed with only basic details in each section -
DBMS_AUTO_ZONEMAP.ACTIVITY_REPORT(systimestamp – 2, systimestmap, ‘TEXT’, ‘ALL’,’TYPICAL’): returns report for last 48 hours in text format and all the sections will be displayed with typical details.
CONFIGURE Procedure
This procedure sets configuration options for auto zone map; specifically to enable or disable feature and to control foreground or background mode of the feature.
Syntax
DBMS_AUTO_ZONEMAP.CONFIGURE (
parameter_name IN VARCHAR2,
parameter_value IN VARCHAR2);
Parameters
Table 3 CONFIGURE Procedure Parameters
| Parameter | Description |
|---|---|
parameter_name |
AUTO_ZONEMAP_MODE is the only configure parameter name that is currently allowed. If you specify any other name, an invalid argument error message is displayed. |
parameter_value |
<p>The four values are allowed for this parameter: <ul id="GUID-62F1D985-0941-436E-BBC4-3EA417828977__UL_IC1_Z14_43B" style="list-style-type: disc;"> <li>ON: Turns on auto zone map feature completely. Both for foreground and background zone map creation and maintenance. </li> <li>OFF: Turns off auto zone map feature completely. Both for foreground and background zone map creation and maintenance. </li> <li>FOREGROUND: Turns on only for foreground zone map creation and maintenance. </li> <li>BACKGROUND: Turns on only for background zone map creation and maintenance. </li> </ul> </p> |