SQL statement statistics


Job details

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

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 buffer_gets + disk_reads > 0 AND executions > 0 ORDER BY buffer_gets DESC;

Report Structure

This job structures its output into multiple presentations to analyze different aspects of SQL performance. Below are the report sections generated:

Report Presentations

Each section presents data in tabulated forms focusing on different metrics like executions, buffer gets ratio, CPU time per execution, etc.

Implementation and Technical Details

Automation and Scheduling

These details encapsulate how the dbWatch job handles the monitoring of SQL statement statistics for Oracle 11g databases, providing insights that are crucial for maintaining optimal database performance.