Purpose
The oceanbase.DBA_IND_STATISTICS view displays the optimizer statistics of all indexes of the database.
Note
This view is introduced since OceanBase Database V4.0.0.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| OWNER | varchar(128) | NO | The owner of the index. |
| INDEX_NAME | varchar(128) | NO | The name of the index. |
| TABLE_OWNER | varchar(128) | NO | The owner of the index object. |
| TABLE_NAME | varchar(128) | NO | The name of the index object. |
| PARTITION_NAME | varchar(128) | NO | The name of the partition. |
| PARTITION_POSITION | decimal(10,0) | NO | The position of the partition within the index. |
| SUBPARTITION_NAME | varchar(128) | NO | The name of the subpartition. |
| SUBPARTITION_POSITION | decimal(10,0) | NO | The position of the subpartition in the partition. |
| OBJECT_TYPE | varchar(12) | NO | The type of the object. Valid values: |
| BLEVEL | decimal(10,0) | NO | The B-Tree level. |
| LEAF_BLOCKS | decimal(10,0) | NO | The number of leaf blocks in the index. |
| DISTINCT_KEYS | decimal(10,0) | NO | The number of distinct keys in the index. |
| AVG_LEAF_BLOCKS_PER_KEY | decimal(10,0) | NO | The average number of leaf blocks per key. |
| AVG_DATA_BLOCKS_PER_KEY | decimal(10,0) | NO | The average number of data blocks per key. |
| CLUSTERING_FACTOR | decimal(10,0) | NO | The sequential characteristics of rows in the table based on the value of the index. |
| NUM_ROWS | decimal(10,0) | NO | The number of rows in the index. |
| AVG_CACHED_BLOCKS | decimal(10,0) | NO | The average number of blocks in the buffer cache. |
| AVG_CACHE_HIT_RATIO | decimal(10,0) | NO | The average cache hit rate of the object. |
| SAMPLE_SIZE | decimal(10,0) | NO | The sample size used for index analysis. |
| LAST_ANALYZED | datetime(6) | NO | The date on which the index was analyzed the last time. |
| GLOBAL_STATS | varchar(3) | NO | Indicates whether the statistics are collected or incrementally maintained. Valid values: |
| USER_STATS | varchar(3) | NO | Indicates whether the statistics are directly entered by the user. Valid values: |
| STATTYPE_LOCKED | varchar(5) | NO | The type of the statistics lock. |
| STALE_STATS | varchar(3) | NO | Indicates whether the statistics of the object are stale. |
| SCOPE | varchar(7) | NO | Indicates whether statistics are collected from any table other than global temporary tables. For global temporary tables, the value can be: SESSION: indicates that the statistics are session-specific.SHARED: indicates that statistics are shared across all sessions. |