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

本站中文解释

Oracle视图ALL_DIM_JOIN_KEY存储字段的维表的连接信息,用于维度表之间的连接,可用于在维度数据表的一端查询其他维度的值,例如,用于报表汇总和报表比较等操作。

使用方法:

1. 首先确定字段的维表之间的连接关系;
2. 使用ALL_DIM_JOIN_KEY视图查询连接信息;
3. 通过连接信息确定维表字段之间的关联关系;
4. 确定两个字段之间的关联方式,使用 join/union 操作连接字段;
5. 对已关联字段,进行查询和分析,以便完成需求。

官方英文解释

ALL_DIM_JOIN_KEY describes the joins between two dimension tables that are accessible to the current user. The join is always specified between a parent dimension level column and a child column.

Related Views

  • DBA_DIM_JOIN_KEY describes all such joins in the database.

  • USER_DIM_JOIN_KEY describes all such joins owned by the current user.

Column Datatype NULL Description

OWNER

VARCHAR2(128)

NOT NULL

Owner of the dimension

DIMENSION_NAME

VARCHAR2(128)

NOT NULL

Name of the dimension

DIM_KEY_ID

NUMBER

NOT NULL

Join key ID (unique within a dimension)

LEVEL_NAME

VARCHAR2(128)

Name of the hierarchy level

KEY_POSITION

NUMBER

NOT NULL

Ordinal position of the key column within the level

HIERARCHY_NAME

VARCHAR2(128)

Name of the hierarchy

CHILD_JOIN_OWNER

VARCHAR2(128)

NOT NULL

Owner of the join column table

CHILD_JOIN_TABLE

VARCHAR2(128)

NOT NULL

Name of the join column table

CHILD_JOIN_COLUMN

VARCHAR2(128)

NOT NULL

Name of the join column

CHILD_LEVEL_NAME

VARCHAR2(128)

Name of the child hierarchy level of the join key

See Also:

  • “DBA_DIM_JOIN_KEY”

  • “USER_DIM_JOIN_KEY”


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