Oracle 视图 ALL_CUBE_HIERARCHIES 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图ALL_CUBE_HIERARCHIES为用户提供维度层级的定义和信息。该视图用于查询用户对某一维度聚合内每个层次的父/子、同级、子树、范围等信息,这些信息可以提供给用户在查询SPARSE CUBE时进行性能优化。
使用时需要指定CUBE_NAME参数,用于指定查询的维度层级来自什么CUBE。以下是使用ALL_CUBE_HIERARCHIES视图的示例:
— 获取维度timecube_level的层级定义
SELECT * FROM ALL_CUBE_HIERARCHIES WHERE CUBE_NAME = ‘TIME_CUBE’ AND LEVEL_NAME = ‘LEVEL’;
— 获取timecube_level的同级信息
SELECT SIBLING_NAME, SIBLING_LEVEL FROM ALL_CUBE_HIERARCHIES WHERE CUBE_NAME = ‘TIME_CUBE’ AND LEVEL_NAME = ‘LEVEL’;
官方英文解释
ALL_CUBE_HIERARCHIES
describes the OLAP dimension hierarchies accessible to the current user.
Related Views
-
DBA_CUBE_HIERARCHIES
describes all OLAP dimension hierarchies in the database. -
USER_CUBE_HIERARCHIES
describes the OLAP dimension hierarchies owned by the current user. This view does not display theOWNER
column.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
Owner of the dimension |
|
|
|
Name of a dimension, such as |
|
|
|
Name of a hierarchy for the dimension, such as |
|
|
|
ID of the hierarchy |
|
|
Type of the hierarchy:
|
|
|
|
Description of the hierarchy in the session language |
|
|
|
Indicates whether ragged hierarchies are permitted in subsequent builds. User dimensions that are enabled for materialized views and Time dimensions are set to |
|
|
|
Indicates whether skip-level hierarchies are permitted in subsequent builds. User dimensions that are enabled for materialized views and Time dimensions are set to |
|
|
|
Name of the Refresh Materialized View associated with the hierarchy |
|
|
|
The textual representation of the sort orderby clause used to load dimension members of the hierarchy into the AW |
See Also:
-
“DBA_CUBE_HIERARCHIES”
-
“USER_CUBE_HIERARCHIES”