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

本站中文解释

ALL_ANALYTIC_VIEW_DIM_ATTRS视图是Oracle维度分析中数据仓库模式中概念性模型的补充;它允许查询电子数据仓库中维度的属性结构。该视图的每一行描述一个维度列属性及其特定属性的完整活动图。

使用ALL_ANALYTIC_VIEW_DIM_ATTRS要如何使用:

1.选择视图:SELECT * FROM all_analytic_view_dim_attrs;

2.通过视图的列查询:SELECT code_seq, attr_value, attr_name FROM all_analytic_view_dim_attrs WHERE dim_name = ‘gender’;

3.在查询语句中使用WHERE子句来限定要检索的维度,例如WHERE dim_name = ‘gender’;

4.使用ORDER BY子句来按照你想要的顺序排列维度属性,例如ORDER BY code_seq DESC;

5.使用GROUP BY子句来聚集维度属性,例如GROUP BY attr_name;

6.使用HAVING子句在将要聚集的维度中进一步指定要检索的数据,例如HAVING attr_name LIKE ‘%Female’

官方英文解释

ALL_ANALYTIC_VIEW_DIM_ATTRS describes the attributes of the attribute dimensions in the analytic views accessible to the current user.

Related Views

  • DBA_ANALYTIC_VIEW_DIM_ATTRS describes the attributes of the attribute dimensions in all analytic views in the database.

  • USER_ANALYTIC_VIEW_DIM_ATTRS describes the attributes of 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_ALIAS

VARCHAR2(128)

Alias of the attribute dimension in the analytic view

ATTRIBUTE_NAME

VARCHAR2(128)

NOT NULL

The name of the attribute within the analytic view

TABLE_ALIAS

VARCHAR2(128)

Alias of the source table for the attribute

COLUMN_NAME

VARCHAR2(128)

NOT NULL

Name of the column

ORDER_NUM

NUMBER

NOT NULL

Order of the attribute as defined in the metadata

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

Note:

This view is available starting with Oracle Database 21c.

See Also:

  • “DBA_ANALYTIC_VIEW_DIM_ATTRS”

  • “USER_ANALYTIC_VIEW_DIM_ATTRS”


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