Oracle9i OLAP User's Guide Release 2 (9.2.0.2) Part Number A95295-02 |
|
|
View PDF |
A delimited text string specifies multidimensional source objects in the analytic workspace and maps them to target columns in a relational view. You can supply this delimited text string either in files (as described in "CreateAWAccessStructures_FR Procedure") or directly in the command line (as described in "CreateAWAccessStructures Procedure").
Each source and target object is defined by a keyword followed by one or more values. Two colons (:
) delimit the keywords and values. In the following example, MEASURE
is a keyword, and sales
and costs
are the names of measures in the analytic workspace.
MEASURE::sales::costs
When you provide mapping information in a text file, each keyword begins a new line:
MEASURE::sales::costs MEASURE COLUMNS::sales::costs
When you provide mapping information directly in the command line, a semicolon delimits the individual object specifications:
MEASURE::sales::costs;MEASURE COLUMNS::sales::costs
Each call to one of these procedures generates a single view. For example, to create one fact view and three dimension views, you must execute the procedure four times. If you are supplying input files for the mapping information, then you must create four files, one for each view that you want to generate.
For a star schema, you must define a dimension view for every hierarchy of every dimension of the fact view. A flat dimension, that is, one with no hierarchies, requires a single dimension view.
Since each call to one of these procedures generates a single view, you must create a separate mapping file for each one. For example, if the GEOGRAPHY
dimension has two hierarchies, then you need to create two mapping files.
Table 15-1 describes the keywords that identify the source data in an analytic workspace that will be used to create a dimension view. The object naming conventions used by AW_CREATE
are provided in the description of the source data. Table 15-2 describes the keywords that specify the target columns in the generated database dimension view. Enter these keywords in the same input file. Some of these keywords are required and others are optional. DIMENSION
must be the first keyword. The
Keyword | Description |
---|---|
|
A workspace
|
|
A workspace
|
|
A workspace
|
|
The workspace
|
|
The dimension member in the |
|
A workspace
|
|
The same GID variable used with the GID keyword. Parent grouping IDs will be generated automatically from the GID variable. |
|
One or more workspace
|
|
A workspace
|
|
A workspace
|
Important: When listing the keywords for the target columns, you must list |
You can create a single group of views for several measures if they are dimensioned identically, as described in "Measures".
For the OLAP API, you need to create one view for each combination of dimension hierarchies. The views must contain columns for the measures themselves and the dimension values that qualify this data. You can copy statements from the input files for dimension views into the input files for fact views.
Create input files (or text strings) that includes the following keywords:
DIMENSION
, HIERARCHY
, IN HIERARCHY
, and GID
. If you wish to create a denormalized view for use by SQL applications, you can include additional keywords.DIMENSION
and GID
columns in the fact views, and uses the dimension views for all other information about the dimensions. Thus, you only need to define columns for the dimension members and the GIDs.Table 15-3 lists the keywords that map workspace measures to columns in a fact view.
Keyword | Description |
---|---|
|
One or more workspace |
|
The names for the columns in the fact view where the data from |
|
The data types of the columns in the fact view. The data types must correspond in number and order to the columns listed in For a comparison between workspace data types and database data types, search for the |