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

本站中文解释

Oracle视图ALL_ANALYTIC_VIEW_COLUMNS用于描述当前用户拥有的所有分析视图的列,分析视图可以将子查询的结果展示为可访问的视图,可以使用该视图访问当前会话的分析视图的列以及元数据信息。它返回的列包括:

VIEW_NAME: 分析视图的名称。
COLUMN_NAME: 分析视图中列的名称。
COLUMN_POSITION: 分析视图中列出现的位置,从1开始计数。
COLUMN_EXPRESSION: 分析视图中定义的列表达式。
COLUMN_DATA_TYPE: 分析视图中列的数据类型。

使用该视图查看当前用户拥有的分析视图及其列如下:
SELECT * FROM ALL_ANALYTIC_VIEW_COLUMNS;

官方英文解释

ALL_ANALYTIC_VIEW_COLUMNS describes the columns of the analytic views accessible to the current user.

Related Views

  • DBA_ANALYTIC_VIEW_COLUMNS describes the columns of all analytic views in the database.

  • USER_ANALYTIC_VIEW_COLUMNS describes the columns of 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_NAME

VARCHAR2(128)

Alias of the analytic view dimension in the analytic view; for a measure the value is MEASURES

HIER_NAME

VARCHAR2(128)

Alias of the analytic view hierarchy within DIMENSION_NAME in the analytic view; for a measure the value is MEASURES

COLUMN_NAME

VARCHAR2(128)

NOT NULL

Name of the column

ROLE

VARCHAR2(4)

NOT NULL

The role the attribute plays in the analytic view:

  • KEY

  • AKEY

  • HIER

  • PROP

  • MEAS

DATA_TYPE

VARCHAR2(106)

NOT NULL

Datatype of the column

DATA_LENGTH

NUMBER

NOT NULL

Length of the column (in bytes)

DATA_PRECISION

NUMBER

Decimal precision for the NUMBER datatype; binary precision for the FLOAT datatype, NULL for all other datatypes

DATA_SCALE

NUMBER

Number of digits to the right of the decimal point in a number

NULLABLE

CHAR(1)

NOT NULL

Indicates whether a column allows NULL values; the value is N if there is a NOT NULL constraint on the column or if the column is part of a PRIMARY KEY

CHARACTER_SET_NAME

VARCHAR2(44)

Name of the character set:

  • CHAR_CS

  • NCHAR_CS

CHAR_COL_DECL_LENGTH

NUMBER

Declaration length of the character type column

CHAR_USED

VARCHAR2(1)

Indicates that the column uses BYTE length semantics (B) or CHAR length semantics (C), or whether the datatype is not any of the following (NULL):

  • CHAR

  • VARCHAR2

  • NCHAR

  • NVARCHAR2

ORDER_NUM

NUMBER

NOT NULL

Order of the column, with the hierarchy columns first followed by measure columns. The columns for a hierarchy are grouped together, listed in their order in the HIERARCHIES clause of the analytic view definition. Within a hierarchy, attributes are listed first in order of their definition in the ATTRIBUTES clause of the attribute dimension definition followed by hierarchical attributes in the DIMENSION BY clause of 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_COLUMNS”

  • “USER_ANALYTIC_VIEW_COLUMNS”


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