select * from (selectSQL_ID,
sum(CPU_TIME_DELTA),
sum(DISK_READS_DELTA),
count(*)
fromDBA_HIST_SQLSTAT a, dba_hist_snapshot s
wheres.snap_id = a.snap_idand s.begin_interval_time > sysdate -1group by
SQL_ID
order bysum(CPU_TIME_DELTA) desc)
where rownum < 10;
No comments:
Post a Comment