Oracle 视图 ALL_CUBE_ATTRIBUTES 官方解释,作用,如何使用详细说明
本站中文解释
视图
ALL_CUBE_ATTRIBUTES 视图是Oracle的一个数据字典视图,用于查询”维度属性”的信息。它可以用来描述Cube中的维度及其属性,以及在指定Cube中查看每个属性的属性信息。
使用方法如下:
SELECT A.CUBE_NAME, A.ATTRIB_NAME, B.ATTRIB_TYPE
FROM ALL_CUBE_ATTRIBUTES A
JOIN ALL_CUBE_ATTRIB_TYPES B
ON (A.ATTRIB_TYPE_ID = B.ATTRIB_TYPE_ID)
WHERE A.CUBE_NAME = ‘你的Cube名称’;
上述查询将返回以下内容:Cube名称、属性名称、属性类型。因此,可以查看要查询的Cube中的维度及其属性信息。
官方英文解释
ALL_CUBE_ATTRIBUTES
describes the attributes for the OLAP cube dimensions accessible to the current user.
Related Views
-
DBA_CUBE_ATTRIBUTES
describes the attributes for all OLAP cube dimensions in the database. -
USER_CUBE_ATTRIBUTES
describes the attributes for the OLAP cube dimensions owned by the current user. This view does not display theOWNER
column.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
Owner of the cube dimension |
|
|
|
Name of a cube dimension (such as |
|
|
|
Name of an attribute of the dimension (such as |
|
|
|
ID of the attribute of the dimension |
|
|
Name of the target dimension of the attribute |
|
|
|
Special role this attribute plays; NULL if none:
|
|
|
|
Description of the attribute in the session language |
|
|
|
Name of the attribute group |
|
|
|
Data type of the attribute, (such as |
|
|
|
|
Length of a text data type |
|
|
Precision of a numeric data type |
|
|
|
Scale of a numeric data type |
|
|
|
Create index flag of the OLAP attribute. Possible values:
|
|
|
|
Shows the setting for the
|
See Also:
-
“DBA_CUBE_ATTRIBUTES”
-
“USER_CUBE_ATTRIBUTES”