SQL statement statistics


Job details

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

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;

Job Description

This job is designed for the Oracle 12c database and utilizes the dynamic performance view v$sqlarea to gather information. It specifically targets instances where the Oracle database engine is present, and the version begins with ‘12′, ensuring compatibility and relevance of the collected data.

Task Details

Dependencies and Execution

Implementation Strategy

This task involves:

Reporting and Output

Conclusion

Monitoring SQL statements in a database environment is an essential task for maintaining optimal performance and identifying possible issues. This task provides a comprehensive set of tools for administrators to track and analyze SQL operations specifically tailored to Oracle 12c databases.