如何使用dbms_stats分析统计信息?
Dbms_stats是oracle8i新增的程序包,它使统计数据的生成和处理更加方便,很多人都在推荐使用dbms_stats替代analyze,我倒是不怎么用过,记录一下 estimate_percent --估算抽样百分比 method_opt:for table --只统计表 for all indexed columns --只统计有索引的表列 for all indexes --只分析统计相关索引 --创建统计信息历史保留表 sql> exec dbms_stats.create_stat_table(ownname => \'scott\',stattab => \'stat_tab...