- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
2#
发表于 2012-3-8 14:50:09
analyze is slated to do this and this alone at some time in the future. analyze is destined to be
the “validate” thing — analyze validate structure, analyze list chained rows, etc.
dbms_stats will stick with stats and stats only.
http://asktom.oracle.com/pls/ask ... ION_ID:735625536552
因为Oracle Development 开发部门已经给予 Analyze 命令较为精确地功能定位了, 所以其最主要的2个功能validate structure和list chained rows目前和将来都不会被植入到DBMS_STATS包当中。
注意因为DBMS_STATS仅仅收集对CBO有用的统计信息,所以一些空间使用情况信息和使用FreeList管理的信息都不会被收集,这些信息包括:
If statistics unrelated to the cost based optimizer are required, then these
must still be collected using the the ANALYZE command. These statistics include:
Space Usage information :
EMPTY_BLOCKS,
AVG_SPACE,
CHAIN_CNT
Information on freelist blocks
AVG_SPACE_FREELIST_BLOCKS,
NUM_FREELIST_BLOCKS
因为以上信息对于CBO计算成本并没有帮助,所以DBMS_STATS也就无意也无法收集它们,但是Analyze命令还是可以做到收集以上这些信息。
http://www.oracledatabase12g.com ... analyze-can-do.html |
|