Oracle® OLAP DML Reference 10g Release 2 (10.2) Part Number B14346-01 |
|
|
View PDF |
The basic syntactic units of the OLAP DML are:
Options to which you assign a value and that can influence the analytic workspace processing environment in various ways
Properties that Oracle OLAP checks to determine processing
Commands that initiate actions and functions that initiate actions and return a value.
Programs that perform complicated analysis and reporting
OLAP DML commands, functions, options, programs, and properties are collectively referred to as OLAP DML statements. Part I, "OLAP DML Basics" introduces basic elements of the OLAP DML. The complete syntax of each statement, usage notes, and examples is provided in Part II, "Alphabetic Reference". Lists of statements, arranged by functional category are presented in Appendix A, "Statements by Functional Category".
Tip: Many OLAP DML statements can be coded as a 3-character abbreviation that consists of the first letter of the statement plus the next two consonants. |
An option is a special type of analytic workspace object that specifies the characteristic of some aspect of how Oracle OLAP calculates or formats data or what Oracle OLAP operations are activated. You cannot define your own options as part of a workspace. However, you can use any of the options that are defined as part of the Oracle OLAP DML. The options defined for the Oracle OLAP DML are outlined in "OLAP DML Options by Category".
Some options are read-only, while others are read/write options for which you can specify values. Read/write options have default values.
The general syntax for specifying and retrieving option values is shown in Table 1-1, "Syntax for Specifying and Retrieving Option Values".
A property is a named value that is associated with a definition of an analytic workspace object. You name, create, and assign properties to an object using a PROPERTY statement.
Properties that begin with a $
(dollar sign) are recognized by Oracle OLAP as system properties. You assign system properties to objects the same way that you create other properties; however, you must give them the appropriate name in order for Oracle OLAP to recognize them.
Some system properties are key to the use of the OLAP DML. For example there are system properties that you can use in place of keywords in DML statements. These system properties are listed in"System Properties by Category" and documented as reference topics in Part II, "Alphabetic Reference".
OLAP has other system properties that are not as integral to the use of the OLAP DML. For example, properties are part of the object definitions for an analytic workspace that has database standard form.
Most OLAP DML statements are either OLAP DML commands and functions. OLAP DML commands and commands work in much the same way as commands and functions in other programming languages—the one exception is the looping nature of OLAP DML commands and functions discussed in "Looping Nature of OLAP DML Statements".
Many OLAP DML statements are commands that perform complex actions. Some of these commands are data definition commands that you use to create an analytic workspace or define objects within an analytic workspace. Data definition commands are introduced in "Creating New Workspaces and Objects".
Other OLAP DML commands are complex data manipulation commands. For example, you can use the OLAP DML SQL command to embed SQL statements in an OLAP DML program in order to copy data from relational tables into analytic workspace data objects, or you can use the AGGREGATE command to calculate summary data. You can also augment the functionality of the OLAP DML by writing an OLAP DML program for use as a command.
Most of the OLAP DML functions are text or calculation functions. For tables listing these standard functions, see:
Other OLAP DML functions return more complex information. For example, the OLAP DML provides the AW function that you can use to retrieve many different types of information about an analytic workspace and the AGGREGATE function that you can use to calculate aggregate data on-the-fly at user request.
You can also augment the functionality of the OLAP DML by writing an OLAP DML program for use as a function.
Some OLAP DML statements are actually the names of OLAP DML programs provided as part of the OLAP DML. Some of these programs produce reports that you can print or see online. For example, the AWDESCRIBE program produces a report that consists of a summary page; an alphabetic list of analytic workspace objects showing name, type, and description; and a list of object definitions by object type. Other programs provided as part of the OLAP DML perform standard calculations of use to programmers and database administrators. For example, VALSPERPAGE program calculates the maximum number of values for a variable of a given width that will fit on one analytic workspace page. You execute programs provided as part of the OLAP DML the same way that you do any other OLAP DML statement.
You can also write your own OLAP DML programs to augment the functionality of the OLAP DML as described in Chapter 5, "Programs".