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 object to which the index applies. |
| TABLE_NAME | VARCHAR2(128) | NO | The name of the object to which the index applies. |
| 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 | NULL by default. |
| LEAF_BLOCKS | NUMBER | NO | NULL by default. |
| DISTINCT_KEYS | NUMBER | NO | NULL by default. |
| AVG_LEAF_BLOCKS_PER_KEY | NUMBER | NO | NULL by default. |
| AVG_DATA_BLOCKS_PER_KEY | NUMBER | NO | NULL by default. |
| CLUSTERING_FACTOR | NUMBER | NO | NULL by default. |
| NUM_ROWS | NUMBER | NO | The number of rows in the index. |
| AVG_CACHED_BLOCKS | NUMBER | NO | NULL by default. |
| AVG_CACHE_HIT_RATIO | NUMBER | NO | NULL by default. |
| SAMPLE_SIZE | NUMBER | NO | NULL by default. |
| 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 the statistics were 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 | NULL by default. |
References
To query the statistics of indexes on tables that the current user owns, see USER_IND_STATISTICS.
To query the statistics of indexes on tables that the current user can access, see ALL_IND_STATISTICS.
To query column statistics at the table level, see the following views:
To query column statistics at the global level, see the following views:
To query column statistics at the partition level, see the following views:
To query column statistics at the subpartition level, see the following views:
To query histogram statistics at the table level, see the following views:
To query histogram statistics at the partition level, see the following views:
To query histogram statistics at the subpartition level, see the following views:
For information about how to collect statistics, see the following topics: