Skip Headers
Oracle® OLAP DML Reference
11g Release 1 (11.1)

Part Number B28126-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

Creating Calculation Objects

The general process of creating a calculation specification object is the following two step process:

  1. Define the calculation object using the appropriate DEFINE statement.

  2. Add the calculation specification to the object definition. You can add the calculation specification to the definition of a calculation object in the following ways:

    • At the command line level of the OLAP Worksheet, in an input file, or as an argument to a PL/SQL function. In this case, ensure that the object is the current object (issue a CONSIDER statement, if necessary), and, then, issue the appropriate statement that includes the specification as a multiline text argument. To code the specification as a multiline text, you can use a JOINLINES function where each of the text arguments of JOINLINES is a statement that specifies the desired processing, and where the final statement is END.

    • In an Edit Window of the OLAP Worksheet. In this case, at the command line level of the OLAP Worksheet, issue an EDIT statement with the appropriate keyword. This opens an Edit Window for the specified object. You can then type each statement as an individual line in the Edit Window. Saving the specification and closing the Edit Window when you are finished.

Table 3-1 outlines the OLAP DML statements that you use to create each type of calculation specification.

Table 3-1 Commands for Defining calculation objects

Calculations Definition Statement Specification Statement For More Information

Formula

DEFINE FORMULA

EQ

"OLAP DML Formulas"


Model

DEFINE MODEL

MODEL

"OLAP DML Model Objects"


Aggregation

DEFINE AGGMAP

AGGMAP

"OLAP DML Aggregation Objects"


Allocation

DEFINE AGGMAP

ALLOCMAP

"OLAP DML Allocation Objects"


Program

DEFINE PROGRAM

PROGRAM

Chapter 4, "OLAP DML Programs"