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

本站中文解释

Oracle视图ALL_DIM_ATTRIBUTES是维度属性的元数据视图,这个视图用于查询维度属性的所有元数据,比如维度属性的名称、层次、排序号等。通过ALL_DIM_ATTRIBUTES视图,用户可以查看相关的维度属性元数据信息,作为有效管理维度属性的依据。

使用ALL_DIM_ATTRIBUTES视图,可以使用SELECT语句,指定查询字段,同时指定WHERE子句,以查询满足条件的维度属性元数据,以及将查询到的结果集进行统计和求和等操作。例如,以下SELECT语句查询某个维度的所有属性:

SELECT *
FROM ALL_DIM_ATTRIBUTES
WHERE DIMENSION_NAME = ‘Dim1’;

官方英文解释

ALL_DIM_ATTRIBUTES describes the relationship between a dimension level and a functionally dependent column. The level columns and the dependent column must be in the same table.

Related Views

  • DBA_DIM_ATTRIBUTES describes all such dimension relationships in the database.

  • USER_DIM_ATTRIBUTES describes all such dimension attributes in the current user’s schema.

Column Datatype NULL Description

OWNER

VARCHAR2(128)

NOT NULL

Owner of the dimension

DIMENSION_NAME

VARCHAR2(128)

NOT NULL

Name of the dimension

ATTRIBUTE_NAME

VARCHAR2(128)

Name of the attribute

LEVEL_NAME

VARCHAR2(128)

Name of the hierarchy level

COLUMN_NAME

VARCHAR2(128)

NOT NULL

Dependent column name

INFERRED

CHAR(1)

Indicates whether the attribute is inferred from a JOIN KEY specification (Y) or not (N)

See Also:

  • “DBA_DIM_ATTRIBUTES”

  • “USER_DIM_ATTRIBUTES”


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