Oracle 视图 ALL_CUBE_HIER_VIEW_COLUMNS 官方解释,作用,如何使用详细说明
  iDU31ygkXmx7 2023年11月19日 26 0

本站中文解释

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”

【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月19日 0

暂无评论

iDU31ygkXmx7