I am using Oracle 11.2.0.3. and have diagnostics pack license to access awr/ ash.
does anyone have sql to get something like 'Top 5 timed foreground wait event' for a SQL_ID? In particular I want to know what were the wait events, times waited and avg wait (ms) for a sql_id
Something like this for as particular sql_id:
Events | Waits | Total Wait Time (s) | Average wait (ms |
---|
| | 35 | 1 |