Oracle 视图 ALL_CUBE_MEASURES 官方解释,作用,如何使用详细说明
本站中文解释
是Oracle DW维度建模体系结构中的一个数据字典视图,用于存放 DWCube(数据仓库立方体)的度量属性定义,包括每个度量的类型、描述、如何计算等等。ALL_CUBE_MEASURES 的字段有MEASURE_NAME、MEASURE_TYPE、MEASURE_DESC、CALC_TYPE等。
使用 ALL_CUBE_MEASURES 视图时,首先要根据特定查询条件选择查询字段,然后使用 SELECT 语句,带上条件表达式选择ALL_CUBE_MEASURES视图中字段的内容。例如:
SELECT MEASURE_NAME, MEASURE_TYPE, MEASURE_DESC FROM ALL_CUBE_MEASURES WHERE CALC_TYPE = ‘Sum’;
上述操作可以选择所有被求和的度量的名称、类型和描述。
官方英文解释
ALL_CUBE_MEASURES
describes the measures for the OLAP cubes accessible to the current user.
Related Views
-
DBA_CUBE_MEASURES
describes the measures for all OLAP cubes in the database. -
USER_CUBE_MEASURES
describes the measures for the OLAP cubes owned by the current user. This view does not display theOWNER
column.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
Owner of the cube |
|
|
|
Name of a cube, such as |
|
|
|
Name of a measure in the cube, such as |
|
|
|
ID of a measure |
|
|
Syntax text for the measure’s consistent solve specification that overrides that of its cube |
|
|
|
Type of the OLAP measure:
|
|
|
|
Expression that provides the values of the measure |
|
|
|
Description of the measure in the session language |
|
|
|
Data type of the measure, such as |
|
|
|
|
Length of a character data type |
|
|
Precision of a numeric data type |
|
|
|
Scale of a numeric data type |
|
|
|
The value that overrides the |
|
|
|
The value that overrides the |
|
|
|
The Possible values:
|
See Also:
-
“DBA_CUBE_MEASURES”
-
“USER_CUBE_MEASURES”