消耗资源的SQL的定位方法;

解答:select sql_text from v$sql where disk_reads > 1000 or (executions > 0 and buffer_gets/executions > 30000);

 

SELECT * FROM ( SELECT sql_text,buffer_gets,disk_reads FROM v$sql ORDER BY buffer_gets,disk_reads DESC) WHERE ROWNUM<=10;

posted @ 2018-08-29 10:38  borter  阅读(127)  评论(0编辑  收藏  举报