Oracle9i OLAP User's Guide Release 2 (9.2.0.2) Part Number A95295-02 |
|
|
View PDF |
The following statements drop the cube SALES_CUBE
, recreate it, and add the dimensions TIME_DIM
, GEOG_DIM
, and PRODUCT_DIM
.
Dropping the cube removes the cube entity, along with its measures, from the OLAP Catalog. However, dropping the cube does not cause the cube's dimensions to be dropped.
execute cwm2_olap_cube.drop_cube('JSMITH', 'SALES_CUBE'); execute cwm2_olap_cube.create_cube ('JSMITH', 'SALES_CUBE', 'Sales', 'Sales Cube', 'Sales dimensioned over geography, product, and time' ); execute cwm2_olap_cube.add_dimension_to_cube ('JSMITH', 'SALES_CUBE', 'JSMITH', 'TIME_DIM'); execute cwm2_olap_cube.add_dimension_to_cube ('JSMITH', 'SALES_CUBE', 'JSMITH', 'GEOG_DIM'); execute cwm2_olap_cube.add_dimension_to_cube ('JSMITH', 'SALES_CUBE', 'JSMITH', 'PRODUCT_DIM');