AWR report provide the SQL information for top 10-20 SQLs, is it possible to get information on SQLs that do not make it to the top list. How do we find all sql id, sql text, number of executions,execution time between two AWR snap ids in oracle.
Take the 2-minute tour
×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.
Finding all sql id, sql text, number of executions,execution time between two AWR snap ids in oracle
migrated from stackoverflow.com Feb 12 '14 at 8:04This question came from our site for professional and enthusiast programmers. |
|||
|
This will get those fields between 2 snap IDs, just replace the snap ID's in the where clause
|
|||||||||||||
|
You can select from the below views. Historical SQL statistics: DBA_HIST_SQLSTAT All SQL text: DBA_HIST_SQLTEXT Map snap_id to actual time: DBA_HIST_SNAPSHOT |
|||
|