ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 查找低效率的SQL语句

查找低效率的SQL语句

原创 Linux操作系统 作者:qgrape 时间:2008-08-25 22:10:36 0 删除 编辑

-- 查找低效率的SQL语句

set wrap off
set linesize 1000

spool e:\qin_daily\查找低效率的SQL语句_script050

Select executions,
 disk_reads,
 buffer_gets,
 round((buffer_gets - disk_reads)/buffer_gets,2) hit_radio,
 round(disk_reads/executions, 2) reads_per_run, sql_text
From v$sqlarea
Where executions > 0 and buffer_gets > 0
 and (buffer_gets - disk_reads)/buffer_gets<0.8
Order by 4 desc;

spool off

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/12330444/viewspace-434601/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-04-09

  • 博文量
    223
  • 访问量
    560975