ITPub博客

首页 > Linux操作系统 > Linux操作系统 > oracle sql tuning 8--优化全表扫描

oracle sql tuning 8--优化全表扫描

原创 Linux操作系统 作者:oracle_db 时间:2009-12-17 22:54:03 0 删除 编辑

表扫描统计

select  name , value  from v$sysstat  where name like '%table scan%'

说明:

table scans(long tables):指多于4个块的表

table scans(short tables):指<=4个块的表

如果table scans(long tables)的值比较大,则说明被访问的表中有很大比例不是按索引查找的

使用以下语句确定长时间操作运行的进度

select

     sid , serial# , opname , to_char(start_time,'hh24:mi:ss') as start_time ,

     (sofar/totalwork)*100 as percent_complete

from v$session_longops;

 

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

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

注册时间:2008-11-13

  • 博文量
    158
  • 访问量
    354230