Oracle 11gR1
DBA_IND_COLUMNS
describes the columns of all the indexes on all tables and clusters in the database. Its columns are the same as those in "ALL_IND_COLUMNS".
For join indexes, the TABLE_NAME
and TABLE_OWNER
columns in this view may not match the TABLE_NAME
and TABLE_OWNER
columns you find in the *_INDEXES
(and other similar) data dictionary views.
· ALL_IND_COLUMNS
describes the columns of indexes on all tables accessible to the current user.
· USER_IND_COLUMNS
describes the columns of indexes owned by the current user and columns of indexes on tables owned by the current user. This view does not display the INDEX_OWNER
or TABLE_OWNER
columns.
Column | Datatype | NULL | Description |
|
|
| Owner of the index |
|
|
| Name of the index |
|
|
| Owner of the table or cluster |
|
|
| Name of the table or cluster |
|
| | Column name or attribute of object type column Note: If you create an index on a user-defined
|
|
|
| Position of column or attribute within the index |
|
|
| Indexed length of the column |
|
| | Maximum codepoint length of the column |
|
| | Whether the column is sorted in descending order ( |
Note:
1. Show indexed columns
Select *
from dba_ind_columns
where index_name = 'I_USER1'
order by column_position;
INDEX_ OWNER | INDEX_ NAME | TABLE_ OWNER | TABLE_ NAME | COLUMN_ NAME | COLUMN_ POSITION | COLUMN_ LENGTH | CHAR_ LENGTH | DESCEND |
SYS | I_USER1 | SYS | USER$ | NAME | 1 | 30 | 30 | ASC |
No comments:
Post a Comment