22 DBMS_APP_CONT_REPORT
This procedure generates a report of ACCHK trace collected while
ACCHK_SET(TRUE)
.
This chapter contains the following topics:
22.1 DBMS_APP_CONT_REPORT Security Model
Applications must have the EXECUTE
privilege on the
DBMS_APP_CONT_REPORT
package.
22.2 Summary of DBMS_APP_CONT_REPORT Subprograms
This topic lists the DBMS_APP_CONT_REPORT
subprograms in
alphabetical order and briefly describes them.
Table 22-1 DBMS_APP_CONT_REPORT Package Subprograms
Subprogram | Description |
---|---|
ACCHK_REPORT Procedure | This procedure provides a report of your run.
The data is derived from the acchk views.
|
22.2.1 ACCHK_REPORT Procedure
This procedure generates a report of your run. The data is derived from the
acchk
views.
Syntax
DBMS_APP_CONT_REPORT.ACCHK_REPORT ( level IN NUMBER DEFAULT SUMMARY, service_name IN VARCHAR2 DEFAULT NULL, start_time IN DATE DEFAULT NULL, duration IN NUMBER DEFAULT NULL, source IN NUMBER DEFAULT FROM_TABLES);
Parameters
Table 22-2 ACCHK_REPORT Procedure Parameters
Parameter | Description |
---|---|
|
These are constants.
|
|
The service name qualifier (Optional). The value |
|
Optional parameter for the start time to filter events and statistics. By default, starts at first available row in tables/trace with ACCHK. |
|
Optional parameter for the amount of time in seconds to
filter events and statistics. By default, uses available rows in
tables/traces starting from the
start_time value.
Note: If bothstart_time and duration are not
specified, then all available rows in tables/traces are used for
reporting.
|
|
Optional parameter for obtaining the statistics and events
from trace files when capture was in read-only mode by providing the
constant value There are two constants from
DBMS_APP_CONT_REPORT :
|
Procedure Exceptions
The exceptions of DBMS_APP_CONT_REPORT.ACCHK_REPORT
procedure are as follows:
20000
- Invalid report level, useDBMS_APP_CONT_REPORT
withSUMMARY
orWARNING
orFULL
.20000
- Invalid duration, set a valid value.20000
- Invalid source, useDBMS_APP_CONT_REPORT
with eitherFROM_TABLES
orFROM_TRACES
.
Example
execute dbms_app_cont_report.acchk_report(dbms_app_cont_report.FULL, start_time => current_date -INTERVAL '10' MINUTE);
execute dbms_app_cont_report.acchk_report(dbms_app_cont_report.FULL, start_time => current_date -INTERVAL '10' MINUTE, duration => 420);
execute dbms_app_cont_report.acchk_report(dbms_app_cont_report.FULL, duration => 60);
execute dbms_app_cont_report.acchk_report(source => dbms_app_cont_report.FROM_TABLES);
execute dbms_app_cont_report.acchk_report(source => dbms_app_cont_report.FROM_TRACES);
execute dbms_app_cont_report.acchk_report(dbms_app_cont_report.SUMMARY);