9.10 The Top SQL Page

Availability icon Available only if you signed in as a database user with DBA and PDB_DBA roles.

The Top SQL page displays SQL statements executed in the database based on CPU time consumed. The SQL statement that consumes the maximum CPU time is right at the top, and the remaining statements continue in descending order of CPU time.

To reach the Top SQL page, click Top SQL in the Database Actions page, or click SelectorSelectorand select Top SQL from the Monitoring menu in the navigation pane.

This feature enables you to focus your SQL tuning efforts on the statements that can have the most impact on database performance.

Click a row to see a formatted view of the SQL statement, the execution plan, the runtime history from Active Session History, and a SQL Tuning Advisor report. Active Session History is part of the Diagnostics Pack, and SQL Tuning Advisor is part of the Tuning Pack for Oracle Database.