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

本站中文解释

ALL_CUBE_VIEWS(所有立方视图)是Oracle数据库用户查看系统中已经存在的OLAP cubes的视图。

用途:

ALL_CUBE_VIEWS可以用来处理复制和删除OLAP cubes,查询OLAP cubes的各个元数据信息,以及查询用户对OLAP cubes的访问权限。

使用:

通过使用ALL_CUBE_VIEWS视图来查询和处理OLAP cubes,可以帮助用户快捷、高效的处理OLAP cubes的各种操作。示例:

– 获取OLAP cubes各个元数据信息:
SELECT *
FROM all_cube_views
WHERE CUBE_NAME = ‘CUBE_NAME’;

– 查询用户对OLAP cubes的访问权限:
SELECT grantee, privilege
FROM all_cube_views
WHERE CUBE_NAME = ‘CUBE_NAME’;

– 在另一个模式下复制OLAP cube:
CREATE CUBE new_cube_name
AS SELECT *
FROM all_cube_views
WHERE CUBE_NAME = ‘CUBE_NAME’;

– 删除OLAP cube:
DROP CUBE (SELECT CUBE_NAME
FROM all_cube_views
WHERE CUBE_NAME = ‘CUBE_NAME’);

官方英文解释

ALL_CUBE_VIEWS describes the relational views of the OLAP cubes accessible to the current user.

Related Views

  • DBA_CUBE_VIEWS describes the relational views of all OLAP cubes in the database.

  • USER_CUBE_VIEWS describes the relational views of the OLAP cubes 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 cube

CUBE_NAME

VARCHAR2(128)

NOT NULL

Name of a cube, such as UNITS_CUBE

VIEW_NAME

VARCHAR2(128)

NOT NULL

Name of a view of the cube, such as UNITS_CUBE_VIEW

See Also:

  • “DBA_CUBE_VIEWS”

  • “USER_CUBE_VIEWS”


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