What gets collected
Table Statistics
Oracle collects the following statistics for a table. Statistics marked with an asterisk are always computed exactly. Table statistics, including the status of domain indexes, appear in the data dictionary views USER_TABLES, ALL_TABLES, and DBA_TABLES in the columns shown in parentheses.
oracle可以为表收集如下的统计信息,部分统计信息始终是准确的(带*)。表的统计信息(包括domain index)都可以在 USER_TABLES, ALL_TABLES, and DBA_TABLES等视图的如下字段中可以查看到。
Number of rows (NUM_ROWS)记录数量* Number of data blocks below the high water mark (that is, the number of data blocks that have been formatted to receive data, regardless whether they currently contain data or are empty) (BLOCKS) 位于高水位线之下的数据块数量(在mssm中,oracle通过freelist管理段,当段空间不足时,oracle会分配新的数据块到高水位线下,并进行格式化后放到freelist上以备后用,此时高水位线下的块都是格式化的,但可能并没有被使用。在ASSM下,段的管理模式发生了变化,当空间不足时,oracle会分配数据块到高水位线下,但是并不会立即格式化,而是在使用时才格式化,此时引入了另一个概念low 高水位线,lowhwm下的块都是格式化的,lowhwm和hwm之间的数据库可能是格式化也可能并未格式化,当lowhwm和hwm之间的数据块全部格式化时,lowhwm上移到hwm的位置),
* Number of data blocks allocated to the table that have never been used (EMPTY_BLOCKS)空闲数据块的数量,HWM之上的数据块
Average available free space in each data block in bytes (AVG_SPACE) 平均每个数据上的空闲空间,blocks+empty_blocksNumber of chained rows. [Not collected by DBMS_STATS] (CHAIN_COUNT)发生chainrow的记录数量
Average row length, including the row's overhead, in bytes (AVG_ROW_LEN)平均每行的长度,包含overhead信息
Index Statistics
Oracle collects the following statistics for an index. Statistics marked with an asterisk are always computed exactly. For conventional indexes, the statistics appear in the data dictiona