Note
This view is available starting with V4.0.0.
Purpose
This view displays the optimizer statistics of all indexes in the current tenant.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| OWNER | VARCHAR2(128) | NO | The owner of the index. |
| INDEX_NAME | VARCHAR2(128) | NO | The name of the index. |
| TABLE_OWNER | VARCHAR2(128) | NO | The owner of the index object. |
| TABLE_NAME | VARCHAR2(128) | NO | The name of the index object. |
| PARTITION_NAME | VARCHAR2(128) | NO | The name of the partition. |
| PARTITION_POSITION | NUMBER | NO | The position of the partition in the index. |
| SUBPARTITION_NAME | VARCHAR2(128) | NO | The name of the subpartition. |
| SUBPARTITION_POSITION | NUMBER | NO | The position of the subpartition in the partition. |
| OBJECT_TYPE | VARCHAR2(12) | NO | The type of the object. Valid values:
|
| BLEVEL | NUMBER | NO | Default value: NULL. |
| LEAF_BLOCKS | NUMBER | NO | Default value: NULL. |
| DISTINCT_KEYS | NUMBER | NO | Default value: NULL. |
| AVG_LEAF_BLOCKS_PER_KEY | NUMBER | NO | Default value: NULL. |
| AVG_DATA_BLOCKS_PER_KEY | NUMBER | NO | Default value: NULL. |
| CLUSTERING_FACTOR | NUMBER | NO | Default value: NULL. |
| NUM_ROWS | NUMBER | NO | The number of rows in the index. |
| AVG_CACHED_BLOCKS | NUMBER | NO | Default value: NULL. |
| AVG_CACHE_HIT_RATIO | NUMBER | NO | Default value: NULL. |
| SAMPLE_SIZE | NUMBER | NO | Default value: NULL. |
| LAST_ANALYZED | DATE | NO | The date when the index was last analyzed. |
| GLOBAL_STATS | VARCHAR2(3) | NO | Indicates whether statistics are collected or incrementally maintained. Valid values:
|
| USER_STATS | VARCHAR2(3) | NO | Indicates whether statistics are directly input by a user. Valid values:
|
| STATTYPE_LOCKED | VARCHAR2(5) | NO | The type of the statistics lock. |
| STALE_STATS | VARCHAR2(3) | NO | Indicates whether the statistics of the object are outdated. |
| SCOPE | VARCHAR2(7) | NO | Default value: NULL. |
References
To view the statistics of indexes on tables owned by the current user, see USER_IND_STATISTICS.
To view the statistics of indexes on tables accessible to the current user, see ALL_IND_STATISTICS.
To view column-level statistics at the table level, query the following views:
To view column-level statistics at the global level, query the following views:
To view column-level statistics at the partition level, query the following views:
To view column-level statistics at the subpartition level, query the following views:
To view histogram statistics at the table level, query the following views:
To view histogram statistics at the partition level, query the following views:
To view histogram statistics at the subpartition level, query the following views:
For information about how to collect statistics, see the following topics:
