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

本站中文解释

ALL_ANALYTIC_VIEW_KEYS_AE视图是Oracle数据库11gR2以后提供的一种视图,主要用于查询和管理Anrolitic Views的元数据信息,使用这个视图可以获取对象的详细信息,包括对象的字段,滚定窗口特性,分组特性,以及与该视图相关联的特殊索引(specialized indexes)和特殊并行化设置(specialized parallel settings)。

要使用这个视图,首先需要获取连接时所在用户的两个信息:用户名和命名空间,一般用下面这个SQL语句来获取:

SELECT USERNAME, NAMESPACE FROM USER$;

接下来使用你获取到的信息构建查询语句,你可以查询出属于特定命名空间的所有Analytic Views的相关信息:

SELECT * FROM ALL_ANALYTIC_VIEW_KEYS_AE WHERE NAMESPACE = ‘your_space’ ORDER BY NAME;

官方英文解释

ALL_ANALYTIC_VIEW_KEYS_AE describes the key columns of the attribute dimensions in the analytic views (across all editions) accessible to the current user.

The keys reference attributes of the attribute dimensions of the analytic view.

Related Views

  • DBA_ANALYTIC_VIEW_KEYS_AE describes the key columns of the attribute dimensions in all analytic views (across all editions) in the database.

  • USER_ANALYTIC_VIEW_KEYS_AE describes the key columns of the attribute dimensions in the analytic views (across all editions) owned by the current user. This view does not display the OWNER column.

Column Datatype NULL Description

OWNER

VARCHAR2(128)

NOT NULL

Owner of analytic view

ANALYTIC_VIEW_NAME

VARCHAR2(128)

NOT NULL

Name of the analytic view

DIMENSION_ALIAS

VARCHAR2(128)

Alias of the attribute dimension in the analytic view

AV_KEY_TABLE_ALIAS

VARCHAR2(128)

Table alias of the key column

AV_KEY_COLUMN

VARCHAR2(128)

NOT NULL

Name of the column for the key

REF_DIMENSION_ATTR

VARCHAR2(128)

Name of the referenced attribute dimension attribute

ORDER_NUM

NUMBER

NOT NULL

Order number of the key in the list of keys 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).

EDITION_NAME

VARCHAR2(128)

 

Name of the application edition where the analytic view is defined

Note:

This view is available starting with Oracle Database release 21c, version 21.5.

See Also:

  • “DBA_ANALYTIC_VIEW_KEYS_AE”

  • “USER_ANALYTIC_VIEW_KEYS_AE”


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