Oracle 视图 ALL_ATTRIBUTE_DIMENSIONS 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图ALL_ATTRIBUTE_DIMENSIONS用来获取表、视图、或物化视图中的属性维度信息。ALL_ATTRIBUTE_DIMENSIONS视图包含了模式、表、视图、或是物化视图中维度名、外部属性维度个数、外部属性维度类型等信息。
使用ALL_ATTRIBUTE_DIMENSIONS视图,可以获取某特定模式下的表或视图中的某个特定的外部属性维度信息。而使用该视图,可以获取表中的属性维度个数,以及属性维度的类型。
下面给出一个示例,查询名为“EMP”的表的外部属性维度的信息,可以使用下列SQL语句:
SELECT OWNER, TABLE_NAME, COLUMN_NAME, ATTRB_NAME, ATTRB_TYPE
FROM ALL_ATTRIBUTE_DIMENSIONS
WHERE OWNER = ‘SCOTT’ AND TABLE_NAME = ‘EMP’;
官方英文解释
ALL_ATTRIBUTE_DIMENSIONS
describes the attribute dimensions accessible to the current user.
Related Views
-
DBA_ATTRIBUTE_DIMENSIONS
describes all attribute dimensions in the database. -
USER_ATTRIBUTE_DIMENSIONS
describes the attribute dimensions owned by the current user. This view does not display theOWNER
column.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
Owner of attribute dimension |
|
|
|
Name of the attribute dimension |
|
|
Type of the attribute dimension:
|
|
CACHE_STAR Foot 1 |
VARCHAR2(12) |
NOT NULL |
Type of the cache for the dimension star table:
|
MAT_TABLE_OWNER Foot 1 |
VARCHAR2(128) |
The owner of the materialized table |
|
MAT_TABLE_NAME Foot 1 |
VARCHAR2(128) |
The name of the materialized table |
|
|
|
|
An expression for the name of the ALL member for the attribute dimension |
|
|
An expression for the caption for the ALL member of the attribute dimension, or NULL if not specified |
|
|
|
An expression for the description for the ALL member of the attribute dimension |
|
|
|
Compile status of the attribute dimension:
|
|
|
|
The ID of the container where the data originates. Possible values include:
|
Footnote 1 This column is available starting with Oracle Database 21c.
See Also:
-
“DBA_ATTRIBUTE_DIMENSIONS”
-
“USER_ATTRIBUTE_DIMENSIONS”