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

本站中文解释

Oracle 视图 ALL_ANALYTIC_VIEW_DIMENSIONS 用于查询通过关系型数据视图 M_RS_VIEW_COLUMNS 构建的各个分析视图中可使用的维度列信息,包括列名、类型、长度、是否可为空等信息。

使用方法:

该视图提供了以下查询字段:

VIEW_NAME:视图名称。
COLUMN_NAME:维度字段名称。
DATA_TYPE:维度字段类型。
DATA_LENGTH:维度字段长度。
NULLABLE:该字段是否可为空。

使用方式:通过指定视图名称,查询该视图所有可用的维度字段:

SELECT * FROM ALL_ANALYTIC_VIEW_DIMENSIONS WHERE VIEW_NAME = ‘view_name’;

官方英文解释

ALL_ANALYTIC_VIEW_DIMENSIONS describes the attribute dimensions in the analytic views accessible to the current user.

Related Views

  • DBA_ANALYTIC_VIEW_DIMENSIONS describes the attribute dimensions in all analytic views in the database.

  • USER_ANALYTIC_VIEW_DIMENSIONS describes the attribute dimensions in the analytic views owned by the current user. This view does not display the OWNER column.

Column Datatype NULL Description

OWNER

VARCHAR2(128)

NOT NULL

Owner of the analytic view

ANALYTIC_VIEW_NAME

VARCHAR2(128)

NOT NULL

Name of the analytic view

DIMENSION_OWNER

VARCHAR2(128)

NOT NULL

Owner of the schema containing the attribute dimension

DIMENSION_NAME

VARCHAR2(128)

NOT NULL

Name of the attribute dimension

DIMENSION_ALIAS

VARCHAR2(128)

Alias of the attribute dimension in the analytic view

DIMENSION_TYPE

VARCHAR2(8)

Type of the attribute dimension:

  • TIME

  • STANDARD

ALL_MEMBER_NAME

CLOB

An expression for the name of the ALL member for the attribute dimension

ALL_MEMBER_CAPTION

CLOB

An expression for the caption for the ALL member of the attribute dimension, or NULL if not specified

ALL_MEMBER_DESCRIPTION

CLOB

An expression for the description for the ALL member of the attribute dimension, or NULL if not specified

REFERENCES_DISTINCT

VARCHAR2(1)

Indicates whether the reference between the fact table key and the attribute dimension attribute specifies the DISTINCT keyword. Possible values are:

  • Y: The reference specifies the DISTINCT keyword.

  • N: The reference does not specify the DISTINCT keyword.

ORDER_NUM

NUMBER

NOT NULL

Order number of the attribute dimension in the analytic view

ORIGIN_CON_ID

NUMBER

The ID of the container where the data originates. Possible values include:

  • 0: This value is used for rows in non-CDBs. This value is not used for CDBs.

  • n: This value is used for rows containing data that originate in the container with container ID n (n = 1 if the row originates in root).

See Also:

  • “DBA_ANALYTIC_VIEW_DIMENSIONS”

  • “USER_ANALYTIC_VIEW_DIMENSIONS”


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