Oracle® OLAP Reference 10g Release 2 (10.2) Part Number B14350-01 |
|
|
View PDF |
The following statements create a measure folder called PHARMACEUTICALS
and add the measure UNIT_COST
from the cube SH.COST_CUBE
. The measure folder is at the root level.
execute cwm2_olap_catalog.create_catalog ('PHARMACEUTICALS', 'Pharmaceutical Sales and Planning'); execute cwm2_olap_catalog.add_catalog_entity ('PHARMACEUTICALS', 'SH', 'COST_CUBE', UNIT_COST');
Table 7-1 CWM2_OLAP_CATALOG Subprograms
Subprogram | Description |
---|---|
|
Adds a measure to a measure folder. |
|
Creates a measure folder. |
|
Drops a measure folder. |
|
Locks a measure folder. |
REMOVE_CATALOG_ENTITY Procedure |
Removes a measure from a measure folder. |
|
Sets the name of a measure folder. |
|
Sets the description of a measure folder. |
|
Sets the parent folder of a measure folder. |
This procedure adds a measure to a measure folder.
Syntax
ADD_CATALOG_ENTITY ( catalog_name IN VARCHAR2, cube_owner IN VARCHAR2, cube_name IN VARCHAR2, measure_name IN VARCHAR2);
Parameters
Table 7-2 ADD_CATALOG_ENTITY Procedure Parameters
Parameter | Description |
---|---|
|
Name of the measure folder. |
|
Owner of the cube. |
|
Name of the cube. |
|
Name of the measure to be added to the measure folder. |
This procedure creates a new measure folder.
Descriptions and display properties must also be established as part of measure folder creation. Once the measure folder has been created, you can override these properties by calling other procedures in this package.
Syntax
CREATE_CATALOG ( catalog_name IN VARCHAR2, description IN VARCHAR2, parent_catalog IN VARCHAR2 DEFAULT NULL);
Parameters
Table 7-3 CREATE_CATALOG Procedure Parameters
Parameter | Description |
---|---|
|
Name of the measure folder. |
|
Description of the measure folder. |
|
Optional parent measure folder. |
This procedure drops a measure folder. If the measure folder contains other measure folders, they are also dropped.
Syntax
DROP_CATALOG ( catalog_name IN VARCHAR2);
Parameters
Table 7-4 DROP_CATALOG Procedure Parameters
Parameter | Description |
---|---|
|
Name of the measure_folder. |
This procedure locks the measure folder's metadata for update by acquiring a database lock on the row that identifies the measure folder in the CWM2
model table.
Syntax
LOCK_CATALOG ( catalog_name IN VARCHAR2, wait_for_lock IN BOOLEAN DEFAULT FALSE);
Parameters
Table 7-5 LOCK_CATALOG Procedure Parameters
Parameter | Description |
---|---|
|
Name of the measure folder |
|
(Optional) Whether or not to wait for the measure folder 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 removes a measure from a measure folder.
Syntax
REMOVE_CATALOG_ENTITY ( catalog_name IN VARCHAR2, cube_owner IN VARCHAR2, cube_name IN VARCHAR2, measure_name IN VARCHAR2);
Parameters
Table 7-6 REMOVE_CATALOG_ENTITY Procedure Parameters
Parameter | Description |
---|---|
|
Name of the measure folder. |
|
Owner of the cube. |
|
Name of the cube. |
|
Name of the measure to be removed from the measure folder. |
This procedure sets the name for a measure folder.
Syntax
SET_CATALOG_NAME ( old_catalog_name IN VARCHAR2, new_catalog_name IN VARCHAR2);
Parameters
Table 7-7 SET_CATALOG_NAME Procedure Parameters
Parameter | Description |
---|---|
|
Old measure folder name. |
|
New measure folder name. |
This procedure sets the description for a measure folder.
Syntax
SET_DESCRIPTION ( catalog_name IN VARCHAR2, description IN VARCHAR2);
Parameters
Table 7-8 SET_DESCRIPTION Procedure Parameters
Parameter | Description |
---|---|
|
Name of the measure folder |
|
Description of the measure folder. |
This procedure sets a parent measure folder for a measure folder.
Syntax
SET_PARENT_CATALOG ( catalog_name IN VARCHAR2, parent_catalog_name IN VARCHAR2 DEFAULT NULL);
Parameters