SQL statement statistics


Job details

Name: SQL statement statistics
Platform: Oracle
Category: Performance
Description: Collects SQL statement statistics from v$sqlarea performance view (Oracle 10g only).
Long description: Task collects SQL statement statistics from v$sqlarea performance view (Oracle 10g only).
Version: 3.7
Default schedule: 30 6,11,18 * *
Requires engine install: Yes
Compatibility tag: .[type=‘instance’ & databasetype=‘oracle’]/.[hasengine=‘YES’ & (version like ‘10%’)]

Parameters

Name Default value Description
max loop time 60 The maximum time (in seconds) the task will
max sql records 100 The maximum numbers of records
buffer gets threshold 10000000 The threshold for when the statistics will be collected.
disk reads threshold 500000 The threshold for when the statistics will be collected.
excl. cursor text DECLARE,BEGIN Cursors which includes strings defined by this parameter, are excluded from the tasks check.
logging threshold 100

Job Summary

SELECT * FROM v$sqlarea WHERE executions > 0;

Job Details

Tables and Sequences Creation

The SQL procedures of this job create and manage several database objects:

Object Name Type Description
dbw_sqlhistr_#instance~id# Table Stores historical data of SQL cursor statistics.
dbw_sqlhistr_seq_#instance~id# Sequence Provides a sequence for entries in the historical table.
dbv_sqlarea_#instance~id# View Summarizes current SQL execution statistics from v$sqlarea.
dbv_sqlhistr_#instance~id# View Represents data from the historical table, filtered and formatted for reporting.

Reporting and Analysis