Oracle® Database Reference 11g Release 2 (11.2) Part Number E10820-02 |
|
|
View PDF |
ALL_INDEXES
describes the indexes on the tables accessible to the current user. To gather statistics for this view and the related views DBA_INDEXES
and USER_INDEXES
, use the SQL ANALYZE
statement.
Related Views
DBA_INDEXES
describes all indexes in the database.
USER_INDEXES
describes the indexes owned by the current user. This view does not display the OWNER
column.
Note:
Column names followed by an asterisk are populated only if you collect statistics on the index using theANALYZE
statement or the DBMS_STATS
package.Column | Datatype | NULL | Description |
---|---|---|---|
OWNER |
VARCHAR2(30) |
NOT NULL |
Owner of the index |
INDEX_NAME |
VARCHAR2(30) |
NOT NULL |
Name of the index |
INDEX_TYPE |
VARCHAR2(27) |
Type of the index:
|
|
TABLE_OWNER |
VARCHAR2(30) |
NOT NULL |
Owner of the indexed object |
TABLE_NAME |
VARCHAR2(30) |
NOT NULL |
Name of the indexed object |
TABLE_TYPE |
CHAR(5) |
Type of the indexed object:
|
|
UNIQUENESS |
VARCHAR2(9) |
Indicates whether the index is unique (UNIQUE ) or nonunique (NONUNIQUE ) |
|
COMPRESSION |
VARCHAR2(8) |
Indicates whether index compression is enabled (ENABLED ) or not (DISABLED ) |
|
PREFIX_LENGTH |
NUMBER |
Number of columns in the prefix of the compression key | |
TABLESPACE_NAME |
VARCHAR2(30) |
Name of the tablespace containing the index | |
INI_TRANS |
NUMBER |
Initial number of transactions | |
MAX_TRANS |
NUMBER |
Maximum number of transactions | |
INITIAL_EXTENT |
NUMBER |
Size of the initial extent | |
NEXT_EXTENT |
NUMBER |
Size of secondary extents | |
MIN_EXTENTS |
NUMBER |
Minimum number of extents allowed in the segment | |
MAX_EXTENTS |
NUMBER |
Maximum number of extents allowed in the segment | |
PCT_INCREASE |
NUMBER |
Percentage increase in extent size | |
PCT_THRESHOLD |
NUMBER |
Threshold percentage of block space allowed per index entry | |
INCLUDE_COLUMN |
NUMBER |
Column ID of the last column to be included in index-organized table primary key (non-overflow) index. This column maps to the COLUMN_ID column of the *_TAB_COLUMNS view. |
|
FREELISTS |
NUMBER |
Number of process freelists allocated to this segment | |
FREELIST_GROUPS |
NUMBER |
Number of freelist groups allocated to this segment | |
PCT_FREE |
NUMBER |
Minimum percentage of free space in a block | |
LOGGING |
VARCHAR2(3) |
Indicates whether or not changes to the index are logged:
|
|
BLEVEL* |
NUMBER |
B*-Tree level (depth of the index from its root block to its leaf blocks). A depth of 0 indicates that the root block and leaf block are the same. |
|
LEAF_BLOCKS* |
NUMBER |
Number of leaf blocks in the index | |
DISTINCT_KEYS* |
NUMBER |
Number of distinct indexed values. For indexes that enforce UNIQUE and PRIMARY KEY constraints, this value is the same as the number of rows in the table (*_TABLES.NUM_ROWS ) |
|
AVG_LEAF_BLOCKS_PER_KEY* |
NUMBER |
Average number of leaf blocks in which each distinct value in the index appears, rounded to the nearest integer. For indexes that enforce UNIQUE and PRIMARY KEY constraints, this value is always 1 . |
|
AVG_DATA_BLOCKS_PER_KEY* |
NUMBER |
Average number of data blocks in the table that are pointed to by a distinct value in the index rounded to the nearest integer. This statistic is the average number of data blocks that contain rows that contain a given value for the indexed columns. | |
CLUSTERING_FACTOR* |
NUMBER |
Indicates the amount of order of the rows in the table based on the values of the index.
For bitmap indexes, this column is not applicable and is not used. |
|
STATUS |
VARCHAR2(8) |
Indicates whether a nonpartitioned index is VALID or UNUSABLE |
|
NUM_ROWS |
NUMBER |
Number of rows in the index | |
SAMPLE_SIZE |
NUMBER |
Size of the sample used to analyze the index | |
LAST_ANALYZED |
DATE |
Date on which this index was most recently analyzed | |
DEGREE |
VARCHAR2(40) |
Number of threads per instance for scanning the index, or DEFAULT |
|
INSTANCES |
VARCHAR2(40) |
Number of instances across which the indexes to be scanned, or DEFAULT |
|
PARTITIONED |
VARCHAR2(3) |
Indicates whether the index is partitioned (YES ) or not (NO ) |
|
TEMPORARY |
VARCHAR2(1) |
Indicates whether the index is on a temporary table (Y ) or not (N ) |
|
GENERATED |
VARCHAR2(1) |
Indicates whether the name of the index is system-generated (Y ) or not (N ) |
|
SECONDARY |
VARCHAR2(1) |
Indicates whether the index is a secondary object created by the ODCIIndexCreate method of the Oracle Data Cartridge (Y ) or not (N ) |
|
BUFFER_POOL |
VARCHAR2(7) |
Default buffer pool to be used for index blocks:
|
|
FLASH_CACHE |
VARCHAR2(7) |
Default flash cache hint to be used for index blocks:
Solaris functionality only. |
|
CELL_FLASH_CACHE |
VARCHAR2(7) |
Default cell flash cache hint to be used for index blocks:
See Also: Oracle Exadata Storage Server Software documentation for more information |
|
USER_STATS |
VARCHAR2(3) |
Indicates whether statistics were entered directly by the user (YES ) or not (NO ) |
|
DURATION |
VARCHAR2(15) |
Indicates the duration of a temporary table:
NNUL - Permanent table |
|
PCT_DIRECT_ACCESS |
NUMBER |
For a secondary index on an index-organized table, the percentage of rows with VALID guess |
|
ITYP_OWNER |
VARCHAR2(30) |
For a domain index, the owner of the indextype | |
ITYP_NAME |
VARCHAR2(30) |
For a domain index, the name of the indextype | |
PARAMETERS |
VARCHAR2(1000) |
For a domain index, the parameter string | |
GLOBAL_STATS |
VARCHAR2(3) |
For partitioned indexes, indicates whether statistics were collected by analyzing the index as a whole (YES ) or were estimated from statistics on underlying index partitions and subpartitions (NO ) |
|
DOMIDX_STATUS |
VARCHAR2(12) |
Status of a domain index:
|
|
DOMIDX_OPSTATUS |
VARCHAR2(6) |
Status of the operation on a domain index:
|
|
FUNCIDX_STATUS |
VARCHAR2(8) |
Status of a function-based index:
|
|
JOIN_INDEX |
VARCHAR2(3) |
Indicates whether the index is a join index (YES ) or not (NO ) |
|
IOT_REDUNDANT_PKEY_ELIM |
VARCHAR2(3) |
Indicates whether redundant primary key columns are eliminated from secondary indexes on index-organized tables (YES ) or not (NO ) |
|
DROPPED |
VARCHAR2(3) |
Indicates whether the index has been dropped and is in the recycle bin (YES ) or not (NO ); NULL for partitioned tables |
|
VISIBILITY |
VARCHAR2(10) |
Indicates whether the index is VISIBLE or INVISIBLE to the optimizer |
|
DOMIDX_MANAGEMENT |
VARCHAR2(14) |
If this is a domain index, indicates whether the domain index is system-managed (SYSTEM_MANAGED ) or user-managed (USER_MANAGED ) |
|
SEGMENT_CREATED |
VARCHAR2(3) |
Indicates whether the index segment has been created (YES ) or not (NO ) |