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

本站中文解释

all_attribute_dim_Tables指的是Oracle数仓中的属性(Attribute)维表。此视图将所有已定义的维表列出,包括一些高级功能,如共享智能维表(shared intelligence dimensions)和多标识维表(multi- identifier dimensions)。

通过all_attribute_dim_tables视图,用户可以查看指定维表的内容,以及具有某种特定属性的维表(如拥有特定形态(Shape)的表)。通常,“SHAPE”列用于记录复杂表中属性维表的形状,可以使用它来查询比对应关系维表更复杂的表。

使用all_attribute_dim_Tables的步骤:

1.登录得到Oracle数据仓库系统;
2.运行select语句查询all_attribute_dim_tables视图;
3.如果想查询拥有特定形态(Shape)的表,可以进一步替上面的查询加入查询条件:如shape like ‘ Flat%”;
4.运行查询结果,查看符合条件的结果列表。

官方英文解释

ALL_ATTRIBUTE_DIM_TABLES describes the tables used by the attribute dimensions accessible to the current user.

Related Views

  • DBA_ATTRIBUTE_DIM_TABLES describes the tables used by all attribute dimensions in the database.

  • USER_ATTRIBUTE_DIM_TABLES describes the tables used by 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 table used by the attribute dimension

DIMENSION_NAME

VARCHAR2(128)

NOT NULL

Name of the attribute dimension

TABLE_OWNER

VARCHAR2(128)

NOT NULL

Owner of the table or view used by the attribute dimension

TABLE_NAME

VARCHAR2(128)

NOT NULL

Name of the table or view used by the attribute dimension

TABLE_ALIAS

VARCHAR2(128)

Alias specified for the table or view; if not specified, the name of the table or view

IS_REMOTEFoot 1

VARCHAR2(1)

Indicates whether the source is a remote table. The values are:

  • Y for a remote table
  • N for a local table

ORDER_NUM

NUMBER

NOT NULL

Order of the table in the list of tables in the USING clause

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_DIM_TABLES”

  • “USER_ATTRIBUTE_DIM_TABLES”


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