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 the OWNER column.

Column Datatype NULL Description

OWNER

VARCHAR2(128)

NOT NULL

Owner of attribute dimension

DIMENSION_NAME

VARCHAR2(128)

NOT NULL

Name of the attribute dimension

DIMENSION_TYPE

VARCHAR2(8)

Type of the attribute dimension:

  • TIME

  • STANDARD

CACHE_STARFoot 1 VARCHAR2(12) NOT NULL Type of the cache for the dimension star table:

  • NONE indicates that no cache is being used
  • DYNAMIC
  • MATERIALIZED (the default value when a cache is used)
MAT_TABLE_OWNERFoot 1 VARCHAR2(128)

The owner of the materialized table

MAT_TABLE_NAMEFoot 1 VARCHAR2(128)

The name of the materialized table

ALL_MEMBER_NAME

CLOB

NOT NULL

An expression for the name of the ALL member for the attribute dimension

ALL_MEMBER_CAPTION

CLOB

An expression for the caption for the ALL member of the attribute dimension, or NULL if not specified

ALL_MEMBER_DESCRIPTION

CLOB

An expression for the description for the ALL member of the attribute dimension

COMPILE_STATE

VARCHAR2(7)

Compile status of the attribute dimension:

  • VALID

  • INVALID

ORIGIN_CON_ID

NUMBER

The ID of the container where the data originates. Possible values include:

  • 0: This value is used for rows in non-CDBs. This value is not used for CDBs.

  • n: This value is used for rows containing data that originate in the container with container ID n (n = 1 if the row originates in root).

Footnote 1 This column is available starting with Oracle Database 21c.

See Also:

  • “DBA_ATTRIBUTE_DIMENSIONS”

  • “USER_ATTRIBUTE_DIMENSIONS”


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