Oracle® OLAP DML Reference 11g Release 1 (11.1) Part Number B28126-01 |
|
|
View PDF |
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"Syntax
ADVISE_PARTITIONING_DIMENSION ( cubename IN VARCHAR2, sources IN dbms_aw$_dimension_sources_t, advtable IN VARCHAR2 DEFAULT NULL) RETURN VARCHAR2;
Parameters
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 |
Example
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