SELECT b.sql_id, a.module, a.snap_id, a.instance_number, a.elapsed_time_total,
a.executions_total, b.sql_text
FROM dba_hist_sqlstat a, dba_hist_sqltext b
WHERE a.elapsed_time_total / a.executions_total / 1000000 >= 10
AND a.executions_total >= 1
AND a.sql_id = b.sql_id
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/15881763/viewspace-700600/
,如需转载,请注明出处,否则将追究法律责任。