Purpose
The oceanbase.DBA_IND_STATISTICS view displays the optimizer statistics of all indexes in the database.
Note
This view was introduced in 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 within the partition. |
| OBJECT_TYPE | varchar(12) | NO | The type of the object. Valid values: |
| BLEVEL | decimal(10,0) | NO | The value of this column is NULL by default. |
| LEAF_BLOCKS | decimal(10,0) | NO | The value of this column is NULL by default. |
| DISTINCT_KEYS | decimal(10,0) | NO | The value of this column is NULL by default. |
| AVG_LEAF_BLOCKS_PER_KEY | decimal(10,0) | NO | The value of this column is NULL by default. |
| AVG_DATA_BLOCKS_PER_KEY | decimal(10,0) | NO | The value of this column is NULL by default. |
| CLUSTERING_FACTOR | decimal(10,0) | NO | The value of this column is NULL by default. |
| NUM_ROWS | decimal(10,0) | NO | The number of rows in the index. |
| AVG_CACHED_BLOCKS | decimal(10,0) | NO | The value of this column is NULL by default. |
| AVG_CACHE_HIT_RATIO | decimal(10,0) | NO | The value of this column is NULL by default. |
| SAMPLE_SIZE | decimal(10,0) | NO | The value of this column is NULL by default. |
| LAST_ANALYZED | datetime(6) | NO | The date on which the index was last analyzed. |
| 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 | The value of this column is NULL by default. |