Oracle9i OLAP Developer's Guide to the OLAP DML Release 2 (9.2) Part Number A95298-01 |
|
Aggregating Data, 2 of 12
Business analysis applications typically use hierarchical dimensions for their data. In Oracle OLAP, all members of a hierarchy, regardless of their level, are stored in a single dimension. A self-relation and a parent relation identify the parent-child relationships among the members. Other, nonhierarchical dimension (such as a line item dimension) may require a model to calculate the values.
Data at the detail level is typically acquired from another source (such as a transactional database or flat files), but the aggregate data must be calculated. These calculations can be done in two distinct ways:
Oracle OLAP supports both types of aggregation, and provides a mechanism for precomputing some values and calculating others at run-time within a single data variable.
See Also:
"Defining Hierarchical Dimensions and Variables That Use Them" for more information about hierarchical dimensions. |
The OLAP DML supports a variety of aggregation methods including first, last, average, weighted average, and sum. In a multidimensional variable, the aggregation method can vary by dimension.
When variables are dimensioned with detailed, multilevel hierarchies, the number of cells of aggregate data can be many times greater than the number of cells of detail data. In contrast, users typically query some levels of data heavily and other levels very infrequently. They tend to focus on top-level aggregates and only occasionally drill to middle-level aggregates, although the middle-level aggregates comprise the largest proportion of aggregate data.
For this reason, the OLAP DML provides an aggregation method that allows some of the data to be aggregated and stored, while other data is aggregated at runtime. The DBA can choose whatever method seems appropriate: by level, individual member, member attribute, time range, data value, or other criteria. A technique called "skip level" aggregation pre-aggregates every other level in a dimension hierarchy. It is described in "Calculating Data Using the Skip-Level Approach".
Table 12-1 lists commands that support aggregation in the OLAP DML.
These are the basic steps you need to follow to generate and manage aggregate data:
POUTFILEUNIT
option so that you can monitor the progress of the aggregation.AGGREGATE
command with the aggregation map to precalculate the data and store it in the database.These steps are described in detail in this chapter.
|
Copyright © 2001, 2002 Oracle Corporation. All Rights Reserved. |
|