Oracle 11gR1
DBA_INDEXES
describes all indexes in the database. To gather statistics for this view, use the SQL ANALYZE
statement. This view supports parallel partitioned index scans. Its columns are the same as those in ALL_INDEXES.
· 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.
· 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 the ANALYZE
statement or the DBMS_STATS
package.
Column | Datatype | NULL | Description |
|
|
| Owner of the index |
|
|
| Name of the index |
|
| | Type of the index: · · · · · |
|
|
| Owner of the indexed object |
|
|
| Name of the indexed object |
|
| | Type of the indexed object (for example, |
|
| | Indicates whether the index is |
|
| | Indicates whether index compression is enabled ( |
|
| | Number of columns in the prefix of the compression key |
|
| | Name of the tablespace containing the index |
|
| | Initial number of transactions |
|
| | Maximum number of transactions |
|
| | Size of the initial extent |
|
| | Size of secondary extents |
|
| | Minimum number of extents allowed in the segment |
|
| | Maximum number of extents allowed in the segment |
|
| | Percentage increase in extent size |
|
| | Threshold percentage of block space allowed per index entry |
|
| | Column ID of the last column to be included in index-organized table primary key (non-overflow) index. This column maps to the |
|
| | Number of process freelists allocated to this segment |
|
| | Number of freelist groups allocated to this segment |
|
| | Minimum percentage of free space in a block |
|
| | Logging information |
|
| | B*-Tree level: depth of the index from its root block to its leaf blocks. A depth of |
|
| | Number of leaf blocks in the index |
|
| | Number of distinct indexed values. For indexes that enforce |
|
| | Average number of leaf blocks in which each distinct value in the index appears, rounded to the nearest integer. For indexes that enforce |
|
| | 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. |
|
| | Indicates the amount of order of the rows in the table based on the values of the index. · If the value is near the number of blocks, then the table is very well ordered. In this case, the index entries in a single leaf block tend to point to rows in the same data blocks. · If the value is near the number of rows, then the table is very randomly ordered. In this case, it is unlikely that index entries in the same leaf block point to rows in the same data blocks. For bitmap indexes, this column is not applicable and is not used. |
|
| | Indicates whether a nonpartitioned index is |
|
| | Number of rows in the index |
|
| | Size of the sample used to analyze the index |
|
| | Date on which this index was most recently analyzed |
|
| | Number of threads per instance for scanning the index |
|
| | Number of instances across which the indexes to be scanned |
|
| | Indicates whether the index is partitioned ( |
|
| | Indicates whether the index is on a temporary table |
|
| | Indicates whether the name of the index is system generated ( |
|
| | Indicates whether the index is a secondary object created by the |
|
| | Name of the default buffer pool to be used for the index blocks |
|
| | Indicates whether statistics were entered directly by the user ( |
|
| | Indicates the duration of a temporary table: · · Null for a permanent table |
|
| | For a secondary index on an index-organized table, the percentage of rows with |
|
| | For a domain index, the owner of the indextype |
|
| | For a domain index, the name of the indextype |
|
| | For a domain index, the parameter string |
|
| | For partitioned indexes, indicates whether statistics were collected by analyzing the index as a whole ( |
|
| | Status of the domain index: · · · |
|
| | Status of the operation on the domain index: · · · |
|
| | Status of a function-based index: · · · |
|
| | Indicates whether the index is a join index ( |
|
| | Indicates whether redundant primary key columns are eliminated from secondary indexes on index-organized tables ( |
|
| | Indicates whether the index has been dropped and is in the recycle bin ( |
|
| | Whether the index is VISIBLE or INVISIBLE to the Optimizer |
|
| | If this is a domain index, then whether it is system-managed or user-managed |
Note:
1.
select owner, index_name, index_type, table_name, uniqueness, compression, logging, status, last_analyzed, ityp_name
from DBA_INDEXES;
OWNER | INDEX_ NAME | INDEX_ TYPE | TABLE_ NAME | UNIQUENESS | COMPRESSION | LOGGING | STATUS | LAST_ ANALYZED | ITYP_ NAME |
USERA | POLY_IDX | DOMAIN | POLY_MVW | NONUNIQUE | DISABLED | YES | VALID | 2008-07-03 9:59:09 AM | SPATIAL_INDEX |
USERA | LN_IDX | DOMAIN | LINE_MVW | NONUNIQUE | DISABLED | YES | VALID | 2008-07-03 9:59:16 AM | SPATIAL_INDEX |
USERA | PT_IDX | DOMAIN | POINT_MVW | NONUNIQUE | DISABLED | YES | VALID | 2008-07-03 9:59:18 AM | SPATIAL_INDEX |
USERA | POLY_IDX | DOMAIN | POLY_MVW | NONUNIQUE | DISABLED | YES | VALID | 2008-07-03 9:59:22 AM | SPATIAL_INDEX |
USERB | SI_I | | COMP_LAYER | NONUNIQUE | DISABLED | YES | VALID | 2008-01-25 3:13:33 PM | |
USERB | PA1_I | | COMP_LAYER | NONUNIQUE | DISABLED | YES | VALID | 2008-01-25 3:13:16 PM | |