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 object type. 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 were collected or incrementally maintained. Valid values:
|
| USER_STATS | VARCHAR2(3) | NO | Indicates whether statistics were directly input by a user. Valid values:
|
| STATTYPE_LOCKED | VARCHAR2(5) | NO | The statistics lock type. |
| STALE_STATS | VARCHAR2(3) | NO | Indicates whether the object statistics are outdated. |
| SCOPE | VARCHAR2(7) | NO | Default value: NULL. |
References
To view the statistics of indexes on tables that you own, query the USER_IND_STATISTICS view.
To view the statistics of indexes on tables that you can access, query the ALL_IND_STATISTICS view.
To view table-level column statistics, query the following views:
To view global-level column statistics, query the following views:
To view partition-level column statistics, query the following views:
To view subpartition-level column statistics, query the following views:
To view table-level histogram statistics, query the following views:
To view partition-level histogram statistics, query the following views:
To view subpartition-level histogram statistics, query the following views:
For information about how to collect statistics, see the following topics: