查看逻辑读前10的sql:
代码如下:
set linesize 300;set pagesize 300;
set long 50000;
SELECT *
FROM (
SELECT sql_fulltext AS sql,sql_ID,buffer_gets / executions AS "Gets/Exec",buffer_gets,executions
FROM V$sqlAREA
WHERE buffer_gets > 10000
ORDER BY "Gets/Exec" DESC
)
WHERE rownum <= 10;