ORACLE ANALYZE使用小结
ANALYZE 的介绍 使用 ANALYZE 可以收集或删除对象的统计信息、验证对象的结构、标识表或 cluster 中的行迁移 / 行链接信息等。官方文档关于 ANALYZE 功能介绍如下: · Collect or delete statistics about an index or index partition, table or table partition, index-organized table, cluster, or scalar object attribute. · Validate the structure of an index or index partition, table or table partition, index-organized table, cluster, or object reference (REF). · Identify migrated and chained rows of a table or cluster. · ANALYZE 的使用 ANALYZE TABLE 可以指定分析: 表、所有字段、所有索引字段、所有索引。 若不指定对应对象则表示全部都分析 # 完全分析,采样 100% ANALYZE TABLE TABLE_NAME COMPUTE STATISTICS; ANALYZE TABLE