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 theOWNER
column.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
Owner of the hierarchy |
|
|
|
Name of the hierarchy |
|
|
|
Owner of the attribute dimension used by the hierarchy |
|
|
|
Name of the attribute dimension used by the hierarchy |
|
|
The value of this column is always NULL |
|
|
|
Compile status of the hierarchy:
|
|
|
|
The ID of the container where the data originates. Possible values include:
|
See Also:
-
“DBA_HIERARCHIES”
-
“USER_HIERARCHIES”