| Oracle® OLAP DML Reference 11g Release 2 (11.2) Part Number E17122-07 | 
 | 
| 
 | PDF · Mobi · ePub | 
The ADVISE_PARTITIONING_DIMENSION function identifies the dimension that the Sparsity Advisor partitioned over, if any. It returns NULL when the Sparsity Advisor did not partition the cube.
Note:
You cannot execute this function from within the OLAP Worksheet. You must execute if in a SQL tool such as SQL*Plus.See also:
"Using the Sparsity Advisor"ADVISE_PARTITIONING_DIMENSION (
          cubename   IN  VARCHAR2,
          sources    IN  dbms_aw$_dimension_sources_t,
          advtable   IN  VARCHAR2 DEFAULT NULL)
     RETURN VARCHAR2;
Table B-6 ADVISE_PARTITIONING_DIMENSION Function Parameters
| Parameter | Description | 
|---|---|
| 
 | The same cubename value provided in the call to  | 
| 
 | The name of an object (such as a PL/SQL variable) defined with a data type of  | 
| 
 | The name of a table created by the  | 
The following program fragment shows the ADVISE_PARTITIONING_DIMENSION function being used to query the results after using the Sparsity Advisor.
DECLARE
     dimsources dbms_aw$_dimension_sources_t;
BEGIN
-- Calls to ADD_DIMENSION_SOURCE and ADVISE_SPARSITY omitted here
     .
     .
     .
dbms_output.put_line('Partitioning Dimension: ' || 
     dbms_aw.advise_partitioning_dimension('units_cube', dimsources,
    'aw_sparsity_advice'));
END;
/
The program uses DBMS_OUTPUT to display the partitioning dimension, which in this case is the TIME dimension.
Partitioning Dimension: time