Oracle9i OLAP Developer's Guide to the OLAP DML Release 2 (9.2) Part Number A95298-01 |
|
Defining Data Objects, 2 of 11
It is important to understand the distinction between the definition of an object and its data. An object definition is its description in the analytic workspace. The data of an object is the value or values that are associated with that definition. All objects have definitions. However, not all objects have data.
For example, a sales
variable that is dimensioned by month
, product
, and district
has a definition for itself as a variable object. The sales
variable is also associated with the definitions for its three dimensions. However, the values of sales
, month
, product
, and district
are not part of the definitions.
Other objects, such as programs and formulas, do not have data.
Once you have created an analytic workspace, you can begin defining workspace objects. To define any OLAP DML object, use the DEFINE
command. The simplified syntax for the DEFINE
command is shown below.
DEFINEname
object-type
attributes
The name
argument specifies the name for the new definition.
Note: Because each analytic workspace has its own list of workspace objects, you can define objects with the same name in more than one analytic workspace. However, to prevent unexpected results, you should provide unique names for objects in separate analytic workspaces that will be active at the same time, unless you are prepared to use qualified object names as described in Chapter 2, "Defining and Working with Analytic Workspaces". |
The object-type
argument specifies the type of object that is being defined. The default is VARIABLE
. You can specify any of the valid object types as outlined in "Workspace Objects That You Can Define".
The attributes argument specifies the properties of the object. Attributes are different for each type of object. The attributes are listed in the entry for each object type.
The OLAP DML data object types that you define using the DEFINE
command are outlined in the following table.
|
Copyright © 2001, 2002 Oracle Corporation. All Rights Reserved. |
|