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

本站中文解释

Oracle 视图ALL_ANALYTIC_VIEWS是Oracle数据库中提供的一种内置集合视图,包含了所有已安装的Analytic视图的信息。

用途:使用ALL_ANALYTIC_VIEWS视图可以获取系统中Analytic视图的信息,包括:视图的作用域、创建者、安装时间、安装用户和授权语句等相关信息。

使用方法:可以使用SELECT语句在ALL_ANALYTIC_VIEWS视图中查询所需要的信息,如使用如下语句可以查询已安装的Analytic视图:

SELECT *
FROM all_analytic_views;

官方英文解释

ALL_ANALYTIC_VIEWS describes the analytic views accessible to the current user.

Related Views

  • DBA_ANALYTIC_VIEWS describes all analytic views in the database.

  • USER_ANALYTIC_VIEWS describes 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

TABLE_OWNER

VARCHAR2(128)

NOT NULL

Owner of the fact table or view on which the analytic view is defined

TABLE_NAME

VARCHAR2(128)

NOT NULL

Name of the fact table or view on which the analytic view is defined

TABLE_ALIAS

VARCHAR2(128)

Alias of the fact table or view on which the analytic view is defined; the default is TABLE_NAME

IS_REMOTEFoot 1 VARCHAR2(1)

Indicates whether the source is a remote table. The values are:

  • Y – Remote table
  • N – Local table

DEFAULT_AGGR

VARCHAR2(128)

Default aggregation of the analytic view

DEFAULT_AGGR_GROUP_NAMEFoot 1

VARCHAR2(128)

NOT NULL

Always DEFAULT_AGGREGATION$ at present

DEFAULT_MEASURE

VARCHAR2(128)

Name of the default measure of the analytic view

COMPILE_STATE

VARCHAR2(7)

Compile status of the analytic view:

  • VALID

  • INVALID

DYN_ALL_CACHE VARCHAR2(1)

The value of this column is always N

QUERY_TRANSFORM_ENABLEDFoot 1 VARCHAR2(1)

Indicates whether query transformation is enabled for the analytic view (Y) or not (N)

QUERY_TRANSFORM_RELYFoot 1 VARCHAR2(1)

Indicates whether the RELY option is specified for the query transformation (Y) or not (N)

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).

Footnote 1 This column is available starting with Oracle Database 21c.

See Also:

  • “DBA_ANALYTIC_VIEWS”

  • “USER_ANALYTIC_VIEWS”


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