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

本站中文解释

ALL_ATTRIBUTE_DIM_LEVEL_ATTRS(所有属性维度级别属性)是一个视图,它显示Oracle多维数据库(MDB)中每个属性维度及公式维度级别的初始属性。它还列出这些属性的公式定义和格式。

通过ALL_ATTRIBUTE_DIM_LEVEL_ATTRS视图可以定义属性维度级别类型,设置属性维度单元格类型,应用维度限制属性和设置默认值等功能。使用此视图可以使Oracle多维数据库中的特定属性配置为所需的格式。

使用ALL_ATTRIBUTE_DIM_LEVEL_ATTRS试图的事项步骤:

1. 使用SELECT语句从ALL_ATTRIBUTE_DIM_LEVEL_ATTRS视图中检索给定属性的内容:
SELECT ATTRIBUTE_NAME, ATTRIBUTE_TYPE,
ATTRIBUTE_DEFAULT, ATTRIBUTE_FORMAT
FROM ALL_ATTRIBUTE_DIM_LEVEL_ATTRS
WHERE ATTRIBUTE_NAME=‘YourAttributeName’;

2. 使用UPDATE语句更新给定属性的内容:
UPDATE ALL_ATTRIBUTE_DIM_LEVEL_ATTRS
SET ATTRIBUTE_FORMAT=‘YourFormat’
WHERE ATTRIBUTE_NAME=‘YourAttributeName’;

3. 使用INSERT语句向ALL_ATTRIBUTE_DIM_LEVEL_ATTRS视图中插入新属性:
INSERT INTO ALL_ATTRIBUTE_DIM_LEVEL_ATTRS(ATTRIBUTE_NAME,
ATTRIBUTE_TYPE, ATTRIBUTE_DEFAULT,
ATTRIBUTE_FORMAT)
VALUES(‘YourAttributeName’, ‘YourAttributeType’,
‘YourDefaultValue’, ‘YourFormat’);

4. 使用DELETE语句从ALL_ATTRIBUTE_DIM_LEVEL_ATTRS视图中删除给定属性:
DELETE FROM ALL_ATTRIBUTE_DIM_LEVEL_ATTRS
WHERE ATTRIBUTE_NAME=‘YourAttributeName’;

官方英文解释

ALL_ATTRIBUTE_DIM_LEVEL_ATTRS describes the attributes of the levels of the attribute dimensions accessible to the current user.

Related Views

  • DBA_ATTRIBUTE_DIM_LEVEL_ATTRS describes the attributes of the levels of all attribute dimensions in the database.

  • USER_ATTRIBUTE_DIM_LEVEL_ATTRS describes the attributes of the levels of the attribute dimensions owned by the current user. This view does not display the OWNER column.

Column Datatype NULL Description

OWNER

VARCHAR2(128)

Owner of the attribute dimension

DIMENSION_NAME

VARCHAR2(128)

Name of the attribute dimension

LEVEL_NAME

VARCHAR2(128)

Name of the attribute dimension level

ATTRIBUTE_NAME

VARCHAR2(128)

Name of the attribute determined by the level

ROLE

VARCHAR2(4)

Role of the attribute determined by the level

IS_MINIMAL_DTM

VARCHAR2(1)

Indicates whether the attribute is minimally determined (Y) or not (N)

ORDER_NUM

NUMBER

Order of the attribute in the list of attributes determined by the level

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).

See Also:

  • “DBA_ATTRIBUTE_DIM_LEVEL_ATTRS”

  • “USER_ATTRIBUTE_DIM_LEVEL_ATTRS”


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