Oracle 视图 V$INDEXED_FIXED_COLUMN 官方解释,作用,如何使用详细说明

本站中文解释

view

Oracle视图V$INDEXED_FIXED_COLUMN是V$FIXED_COLUMN视图的子视图,其展示了索引和非索引字段之间的关系。通过该视图可以获取一个表中索引字段是否必须作为可固定列,或者是可选固定列。

使用V$INDEXED_FIXED_COLUMN查看某表字段索引情况:

SELECT index_name,is_optional
FROM v$indexed_fixed_column
WHERE segment_name = ‘TABLE_NAME’;

官方英文解释

V$INDEXED_FIXED_COLUMN displays the columns in dynamic performance tables that are indexed (X$ tables).

The X$ tables can change without notice. Use this view only to write queries against fixed views (V$ views) more efficiently.

Column Datatype Description

TABLE_NAME

VARCHAR2(128)

Name of the dynamic performance table that is indexed

INDEX_NUMBER

NUMBER

Number that distinguishes to which index a column belongs

COLUMN_NAME

VARCHAR2(128)

Name of the column that is being indexed

COLUMN_POSITION

NUMBER

Position of the column in the index key (this is mostly relevant for multicolumn indexes)

CON_ID

NUMBER

The ID of the container to which the data pertains. Possible values include:

  • 0: This value is used for rows containing data that pertain to the entire multitenant container database (CDB). This value is also used for rows in non-CDBs.

  • 1: This value is used for rows containing data that pertain to only the root

  • n: Where n is the applicable container ID for the rows containing data


数据运维技术 » Oracle 视图 V$INDEXED_FIXED_COLUMN 官方解释,作用,如何使用详细说明