Oracle® OLAP Reference 10g Release 2 (10.2) Part Number B14350-01 |
|
|
View PDF |
The following statement creates a CWM2
dimension entity, PRODUCT_DIM
, in the JSMITH
schema. The display name is Product
, and the plural name is Products
. The short description is Prod
, and the description is Product
.
execute cwm2_olap_dimension.create_dimension ('JSMITH', 'PRODUCT_DIM', 'Product', 'Products', 'Prod', 'Product');
The following statements change the short description to Product
and the long description to Product Dimension
.
execute cwm2_olap_dimension.set_short_description ('JSMITH', 'PRODUCT_DIM', 'Product'); execute cwm2_olap_dimension.set_description ('JSMITH', 'PRODUCT_DIM', 'Product Dimension');
Table 11-1 CWM2_OLAP_DIMENSION Subprograms
Subprogram | Description |
---|---|
|
Creates a dimension. |
|
Drops a dimension. |
|
Locks the dimension metadata for update. |
SET_DEFAULT_DISPLAY_HIERARCHY Procedure |
Sets the default hierarchy for a dimension. |
Sets the description for a dimension. |
|
|
Sets the name of a dimension. |
Sets the display name for a dimension. |
|
|
Sets the plural name for a dimension. |
SET_SHORT_DESCRIPTION Procedure |
Sets the short description for a dimension. |
This procedure creates a new dimension entity in the OLAP Catalog.
By default the new dimension is a normal dimension, but you can specify the value TIME
for the dimension_type
parameter to create a time dimension.
Descriptions and display properties must also be established as part of dimension creation. Once the dimension has been created, you can override these properties by calling other procedures in this package.
Syntax
CREATE_DIMENSION ( dimension_owner IN VARCHAR2, dimension_name IN VARCHAR2, display_name IN VARCHAR2, plural_name IN VARCHAR2, short_description IN VARCHAR2, description IN VARCHAR2, dimension_type IN VARCHAR2 DEFAULT NULL);
Parameters
Table 11-2 CREATE_DIMENSION Procedure Parameters
Parameter | Description |
---|---|
|
Owner of the dimension. |
|
Name of the dimension. |
|
Display name for the dimension. |
|
Plural name for the dimension. |
|
Short description of the dimension. |
|
Description of the dimension. |
|
(Optional) Type of the dimension. Specify the value |
This procedure drops a dimension entity from the OLAP Catalog. All related levels, hierarchies, and dimension attributes are also dropped.
Syntax
DROP_DIMENSION ( dimension_owner IN VARCHAR2, dimension_name IN VARCHAR2);
Parameters
Table 11-3 DROP_DIMENSION Procedure Parameters
Parameter | Description |
---|---|
|
Owner of the dimension. |
|
Name of the dimension. |
This procedure locks the dimension metadata for update by acquiring a database lock on the row that identifies the dimension in the CWM2
model table.
Syntax
LOCK_DIMENSION ( dimension_owner IN VARCHAR2, dimension_name IN VARCHAR2. wait_for_lock IN BOOLEAN DEFAULT FALSE);
Parameters
Table 11-4 LOCK_DIMENSION Procedure Parameters
Parameter | Description |
---|---|
|
Owner of the dimension. |
|
Name of the dimension. |
|
(Optional) Whether or not to wait for the dimension to be available when it is already locked by another user. If you do not specify a value for this parameter, the procedure does not wait to acquire the lock. |
This procedure sets the default hierarchy to be used for display purposes.
Syntax
SET_DEFAULT_DISPLAY_HIERARCHY ( dimension_owner IN VARCHAR2, dimension_name IN VARCHAR2, hierarchy_name IN VARCHAR2);
Parameters
Table 11-5 SET_DEFAULT_DISPLAY_HIERARCHY Procedure Parameters
Parameter | Description |
---|---|
|
Owner of the dimension. |
|
Name of the dimension. |
|
Name of one of the dimension's hierarchies. |
This procedure sets the description for a dimension.
Syntax
SET_DESCRIPTION ( dimension_owner IN VARCHAR2, dimension_name IN VARCHAR2, description IN VARCHAR2);
Parameters
Table 11-6 SET_DESCRIPTION Procedure Parameters
Parameter | Description |
---|---|
|
Owner of the dimension. |
|
Name of the dimension. |
|
Description of the dimension. |
This procedure sets the name for a dimension.
Syntax
SET_DIMENSION_NAME ( dimension_owner IN VARCHAR2, dimension_name IN VARCHAR2, set_dimension_name IN VARCHAR2);
Parameters
Table 11-7 SET_DIMENSION_NAME Procedure Parameters
Parameter | Description |
---|---|
|
Owner of the dimension. |
|
Original name of the dimension. |
|
New name for the dimension. |
This procedure sets the display name for a dimension.
Syntax
SET_DISPLAY_NAME ( dimension_owner IN VARCHAR2, dimension_name IN VARCHAR2, display_name IN VARCHAR2);
Parameters
Table 11-8 SET_DISPLAY_NAME Procedure Parameters
Parameter | Description |
---|---|
|
Owner of the dimension. |
|
Name of the dimension. |
|
Display name for the dimension. |
This procedure sets the plural name of a dimension.
Syntax
SET_PLURAL_NAME ( dimension_owner IN VARCHAR2, dimension_name IN VARCHAR2, plural_name IN VARCHAR2);
Parameters
Table 11-9 SET_PLURAL_NAME Procedure Parameters
Parameter | Description |
---|---|
|
Owner of the dimension. |
|
Name of the dimension. |
|
Plural name for the dimension. |
This procedure sets the short description for a dimension.
Syntax
SET_SHORT_DESCRIPTION ( dimension_owner IN VARCHAR2, dimension_name IN VARCHAR2, short_description IN VARCHAR2);
Parameters