2010년 3월 12일 금요일

Index에 걸린 컬럼의 상태 확인 [ALL_IND_COLUMNS]

ALL_IND_COLUMNS

ALL_IND_COLUMNS describes the columns of indexes on all tables accessible to the current user.

Note:

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.

Related Views

  • DBA_IND_COLUMNS describes the columns of indexes on all tables in the database.
  • 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.
ColumnDatatypeNULLDescription
INDEX_OWNERVARCHAR2(30)NOT NULLOwner of the index
INDEX_NAMEVARCHAR2(30)NOT NULLName of the index
TABLE_OWNERVARCHAR2(30)NOT NULLOwner of the table or cluster
TABLE_NAMEVARCHAR2(30)NOT NULLName of the table or cluster
COLUMN_NAMEVARCHAR2(4000) Column name or attribute of object type column
   Note: If you create an index on a user-defined REF column, the system creates the index on the attributes that make up the REF column. Therefore, the column names displayed in this view are the attribute names, with the REF column name as a prefix, in the following form:

"REF_name"."attribute"

COLUMN_POSITIONNUMBERNOT NULLPosition of column or attribute within the index
COLUMN_LENGTHNUMBERNOT NULLIndexed length of the column
CHAR_LENGTHNUMBER Maximum codepoint length of the column
DESCENDVARCHAR2(4) Whether the column is sorted in descending order (Y/N)


ex)
select INDEX_NAME , COLUMN_POSITION ,  COLUMN_NAME from dba_ind_columns where table_owner = 'V40';

해당 View 를 이용하여, 해당 Index 에 걸려 있는 컬럼의 상태 를 파악할수 있다.


댓글 없음:

댓글 쓰기