博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年12月21日

摘要: 在OEM中查看数据库的会话时,发现有一个会话的SQL要10多秒在PL SQL中执行 SQL按F5查看这个SQL的计划,发现别的地方有 调用索引,oracle统计值查看select * from dba_tables where table_name = TABLE检查一下字段last_analyzed 的值,其值就是最后一次统计更新的日期更新查看全表分析 完全计算法: analyze table abc compute statistics; 抽样估算法(抽样20%): analyze table abc estimate statistics sample 20 percent; 对表作完全 阅读全文

posted @ 2012-12-21 14:03 奥客 阅读(13793) 评论(0) 推荐(1) 编辑