ORACLE查询当前执行效率低的sql
--CPU高的SQLselect sql_text from v$sql order by cpu_time desc--逻辑读多的SQL:select * from where rownum<=30;--执行次数多的SQL :select sql_text,executions fromwhere rownum<81;--读硬盘多的SQL :select sql_text,disk_reads fromwhere rownum<21;
2019-11-11
ORACLE查询当前执行效率低的sql
--CPU高的SQLselect sql_text from v$sql order by cpu_time desc--逻辑读多的SQL:select * from where rownum<=30;--执行次数多的SQL :select sql_text,executions fromwhere rownum<81;--读硬盘多的SQL :select sql_text,disk_reads fromwhere rownum<21;