Chinaunix首页 | 论坛 | 博客
  • 博客访问: 374415
  • 博文数量: 113
  • 博客积分: 3035
  • 博客等级: 中校
  • 技术积分: 1430
  • 用 户 组: 普通用户
  • 注册时间: 2006-11-01 16:32
文章分类
文章存档

2011年(42)

2010年(70)

2009年(1)

我的朋友

分类: Oracle

2011-03-08 11:02:05

8i后,推出dbms_stats,有关数据统计的活推荐使用dbms_stats,除了
1.To use the VALIDATE or LIST CHAINED ROWS clauses
2.To collect information on free list blocks

其它的,最好都用dbms_stats,统计出来更准确。
dbms_stats的包

GATHER_INDEX_STATS

Index statistics

GATHER_TABLE_STATS

Table, column, and index statistics

GATHER_SCHEMA_STATS

Statistics for all objects in a schema

GATHER_DICTIONARY_STATS

Statistics for all dictionary objects

GATHER_DATABASE_STATS

Statistics for all objects in a database


注意:GATHER_TABLE_STATS包的时候要加上cascade=>true才会统计index的信息
统计时可以输入采样的百分比:
阅读(705) | 评论(1) | 转发(0) |
0

上一篇:攻克042

下一篇:STATISTICS_LEVEL

给主人留下些什么吧!~~

chinaunix网友2011-03-27 18:15:25

很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com