| Oracle9i OLAP User's Guide Release 2 (9.2.0.2) Part Number A95295-02 |
|
|
View PDF |
This procedure creates the join relationships between a fact table and a set of dimension tables. A join must be specified for each of the dimensions of the cube. Each dimension is joined in the context of one of its hierarchies.
For example, if you had a cube with three dimensions, and each dimension had only one hierarchy, you could fully map the cube with one call to MAP_FACTTBL_LEVELKEY.
However, if you had a cube with three dimensions, but two of the dimensions each had two hierarchies, you would need to call MAP_FACTTBL_LEVELKEY four times to fully map the cube. For dimensions Dim1, Dim2, and Dim3, where Dim1 and Dim3 each have two hierarchies, you would specify the following mapping strings in each call to MAP_FACTTBL_LEVELKEY, as shown below.
Dim1_Hier1, Dim2_Hier, Dim3_Hier1 Dim1_Hier1, Dim2_Hier, Dim3_Hier2 Dim1_Hier2, Dim2_Hier, Dim3_Hier1 Dim1_Hier2, Dim2_Hier, Dim3_Hier2
Typically the data for each hierarchy combination would be stored in a separate fact table.
For more information, see"Joining Fact Tables with Dimension Tables" .
MAP_FACTTBL_LEVELKEY ( cube_owner IN VARCHAR2, cube_name IN VARCHAR2, facttable_owner IN VARCHAR2, facttable_name IN VARCHAR2, storetype IN VARCHAR2, dimkeymap IN VARCHAR2, dimktype IN VARCHAR2 DEFAULT NULL);