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

本站中文解释

ALL_CUBE_HIER_VIEW_COLUMNS视图提供OLAP计算列名称和类型的元数据信息,用于客户端应用程序来构建OLAP层次结构以及用于他们呈现的报表。你可以用它来映射出应用程序的层次结构,从而更好地探索处理OLAP cube。

使用该视图的方式很简单,只需要用SQL语句查询类似如下的内容即可:
SELECT owner, cube_name, hier_name, hier_column_name, hier_column_type,
datatype, hier_column_order, depth
FROM all_cube_hier_view_columns
WHERE owner = ‘SYS’
ORDER BY hier_column_order;

官方英文解释

ALL_CUBE_HIER_VIEW_COLUMNS describes the columns of the relational hierarchy views of the OLAP cube dimensions accessible to the current user.

Related Views

  • DBA_CUBE_HIER_VIEW_COLUMNS describes the columns of the relational hierarchy views of all OLAP cube dimensions in the database.

  • USER_CUBE_HIER_VIEW_COLUMNS describes the columns of the relational hierarchy views of the OLAP cube dimensions owned by the current user. This view does not display the OWNER column.

Column Datatype NULL Description

OWNER

VARCHAR2(128)

Owner of the cube dimension

DIMENSION_NAME

VARCHAR2(128)

Name of a cube dimension, such as TIME

HIERARCHY_NAME

VARCHAR2(128)

Name of a hierarchy for the cube dimension, such as CALENDAR

VIEW_NAME

VARCHAR2(128)

Name of a view of the hierarchy, such as TIME_CALENDAR_VIEW

COLUMN_NAME

VARCHAR2(128)

Name of a column in the view, such as CALENDAR_QUARTER or PARENT

COLUMN_TYPE

VARCHAR2(11)

Type of the column:

  • KEY – A key of the hierarchy view (that is, the hierarchy value itself)

  • PARENT – Dimension value of the parent of the current row in the view (or NULL if no parent)

  • LEVEL_NAME – Name of the level (if any) corresponding to a row in the view

  • DEPTH – Depth in the hierarchy tree of the current row in the view

  • HIER_ORDER – A column by which the results may be ordered (if present)

  • MEMBER_TYPE

  • ATTRIBUTE – An attribute owned by the hierarchy

  • LEVEL – One of the level columns comprising the hierarchy

OBJECT_NAME

VARCHAR2(128)

Name of a level or attribute for the dimension

See Also:

  • “DBA_CUBE_HIER_VIEW_COLUMNS”

  • “USER_CUBE_HIER_VIEW_COLUMNS”


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