select * from (select SQL_ID, sum(CPU_TIME_DELTA), sum(DISK_READS_DELTA),count(*) from DBA_HIST_SQLSTAT a, dba_hist_snapshot swheres.snap_id = a.snap_idand s.begin_interval_time > sysdate -1and EXTRACT(HOUR FROM S.END_INTERVAL_TIME) between 9 and 11group by SQL_IDorder by sum(CPU_TIME_DELTA) desc)where rownum < 10;
No comments:
Post a Comment