62 DBMS_DIMENSION
DBMS_DIMENSION
enables you to verify dimension relationships and provides an alternative to the Enterprise Manager Dimension Wizard for displaying a dimension definition.
See Also:
Oracle Database Data Warehousing Guide for detailed conceptual and usage information about the DBMS_DIMENSION
package
This chapter contains the following topics:
62.1 DBMS_DIMENSION Security Model
Security on this package can be controlled by granting EXECUTE
to selected users or roles.
A user can validate or describe all the dimensions in his own schema. To validate or describe a dimension in another schema, you must have either an object privilege on the dimension or one of the following system privileges: CREATE ANY DIMENSION
, ALTER ANY DIMENSION
, and DROP ANY DIMENSION
.
62.2 Summary of DBMS_DIMENSION Subprograms
This table lists the DBMS_DIMENSION
subprograms and briefly describes them.
Table 62-1 DBMS_DIMENSION Package Subprograms
Subprogram | Description |
---|---|
Prints out the definition of the input dimension, including dimension owner and name, levels, hierarchies, and attributes |
|
Verifies that the relationships specified in a dimension are correct |
62.2.1 DESCRIBE_DIMENSION Procedure
This procedure displays the definition of the dimension, including dimension name, levels, hierarchies, and attributes. It displays the output using the DBMS_OUTPUT
package.
Syntax
DBMS_DIMENSION.DESCRIBE_DIMENSION ( dimension IN VARCHAR2);
Parameters
Table 62-2 DESCRIBE_DIMENSION Procedure Parameter
Parameter | Description |
---|---|
|
The owner and name of the dimension in the format of |
62.2.2 VALIDATE_DIMENSION Procedure
This procedure verifies that the relationships specified in a dimension are valid. The rowid for any row that is found to be invalid will be stored in the table DIMENSION_EXCEPTIONS
in the user's schema.
Syntax
DBMS_DIMENSION.VALIDATE_DIMENSION ( dimension IN VARCHAR2, incremental IN BOOLEAN := TRUE, check_nulls IN BOOLEAN := FALSE, statement_id IN VARCHAR2 := NULL );
Parameters
Table 62-3 VALIDATE_DIMENSION Procedure Parameters
Parameter | Description |
---|---|
|
The owner and name of the dimension in the format of |
|
If |
|
If If |
|
A client-supplied unique identifier to associate output rows with specific invocations of the procedure. |