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

本站中文解释

本视图ALL_HIERARCHIES用于提供所有分层模式的详细信息,包括它们的类型、层级,以及是否启用落地检查。

使用方法:

1、查询全部的分层模式的详细信息:
SELECT * FROM all_hierarchies;

2、按照分层模式名称hierarchy_name查询关于特殊分层模式的详细信息:
SELECT * FROM all_hierarchies WHERE hierarchy_name = ‘My_Hierarchy’;

3、查询特定分层模式有几层:
SELECT count(level_name) FROM all_hierarchies WHERE hierarchy_name = ‘My_Hierarchy’;

官方英文解释

ALL_HIERARCHIES describes the hierarchies accessible to the current user.

Related Views

  • DBA_HIERARCHIES describes all hierarchies in the database.

  • USER_HIERARCHIES describes the hierarchies 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 hierarchy

HIER_NAME

VARCHAR2(128)

NOT NULL

Name of the hierarchy

DIMENSION_OWNER

VARCHAR2(128)

NOT NULL

Owner of the attribute dimension used by the hierarchy

DIMENSION_NAME

VARCHAR2(128)

NOT NULL

Name of the attribute dimension used by the hierarchy

PARENT_ATTR

VARCHAR2

The value of this column is always NULL

COMPILE_STATE

VARCHAR2(7)

Compile status of the hierarchy:

  • VALID

  • INVALID

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

See Also:

  • “DBA_HIERARCHIES”

  • “USER_HIERARCHIES”


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