Skip Headers
Oracle® OLAP Application Developer's Guide,
10g Release 2 (10.2.0.3)

Part Number B14349-03
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

6 Administering Oracle OLAP

This chapter describes the various administrative tasks that are associated with Oracle OLAP. It contains the following topics:

Administration Overview

Because Oracle OLAP is contained in the database and its resources are managed using the same tools, the management tasks of Oracle OLAP and the database converge. Nonetheless, a database administrator or applications developer needs to address management tasks in the specific context of Oracle OLAP, in addition to creating and maintaining analytic workspaces. Following is a list of these tasks.

See Also:

Oracle Database Administrator's Guide for detailed information about managing Oracle Database.

Creating Tablespaces for Analytic Workspaces

Before you create an analytic workspace, you should create undo, permanent, and temporary tablespaces that are appropriate for their use. Analytic workspaces contain many objects and each one occupies at least one extent. You should create tablespaces with EXTENT MANAGEMENT LOCAL and allow an automatic allocation. Otherwise, with a fixed extent size, you may waste most of the allocated space. For example, if an object is 64K and the extents are set to a uniform size of 1M, then only a small portion of the extent is used.

Analytic workspaces are created in the user's default tablespace, unless the user specifies otherwise. The default tablespace for all users is set initially to SYS. Creating analytic workspaces in the SYS tablespace can degrade overall performance.

Oracle OLAP makes heavy use of temporary tablespaces, so it is particularly important that they be set up correctly to prevent I/O bottlenecks.

If possible, you should stripe the data files and temporary files across as many controllers and drives as are available.

Creating an UNDO Tablespace

The following SQL commands create an undo tablespace with the appropriate parameters for use by analytic workspaces:

CREATE UNDO TABLESPACE tablespace DATAFILE 'pathname' 
     SIZE size REUSE AUTOEXTEND ON NEXT size
     MAXSIZE UNLIMITED EXTENT MANAGEMENT LOCAL;

Where:


tablespace is the name of the tablespace
pathname is the fully qualified file name
size is an appropriate number of bytes

For example:

CREATE UNDO TABLESPACE olapundo DATAFILE '$ORACLE_HOME/oradata/undo.dbf'
    SIZE 64M REUSE AUTOEXTEND ON NEXT 8M
    MAXSIZE UNLIMITED EXTENT MANAGEMENT LOCAL;

After creating the undo tablespace, change your system parameter file to include these settings, then restart the database as described in "Initialization Parameters for Oracle OLAP".

UNDO_TABLESPACE=tablespace
UNDO_MANAGEMENT=AUTO

Creating a Permanent Tablespace for Analytic Workspaces

When a user creates an analytic workspace, it is created in the user's default tablespace, which is initially set to the SYS tablespace. The following SQL statements create a tablespace appropriate for storing analytic workspaces.

CREATE TABLESPACE tablespace DATAFILE 'pathname'
    SIZE size REUSE AUTOEXTEND ON NEXT size MAXSIZE UNLIMITED
    EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO;

ALTER USER username DEFAULT TABLESPACE tablespace

Where:


tablespace is the name of the tablespace
pathname is the fully qualified file name
size is an appropriate number of bytes
username is the name of a database user

For example:

CREATE TABLESPACE glo DATAFILE '$ORACLE_HOME/oradata/glo.dbf'
   SIZE 64M REUSE AUTOEXTEND ON NEXT 8M MAXSIZE UNLIMITED
   EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO;

If your computer has multiple disks, then you can stripe the tablespace across them. The next example shows SQL statements that distribute the GLO tablespace across three physical disks:

CREATE TABLESPACE glo DATAFILE 
   'disk1/oradata/glo1.dbf' SIZE 64M REUSE AUTOEXTEND ON NEXT 8M MAXSIZE 1024M
   EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO;

ALTER TABLESPACE glo ADD DATAFILE 
   'disk2/oradata/glo2.dbf' SIZE 64M REUSE AUTOEXTEND ON NEXT 8M MAXSIZE 1024M,
   'disk3/oradata/glo3.dbf' SIZE 64M REUSE AUTOEXTEND ON NEXT 8M MAXSIZE UNLIMITED;

Creating a Temporary Tablespace for Analytic Workspaces

Oracle OLAP uses temporary tablespace to store all changes to the data in an analytic workspace, whether the changes are the result of a data load, what-if analysis, forecasting, aggregation, or some other analysis. An OLAP DML UPDATE command moves the changes into the permanent tablespace and clears the temporary tablespace.

Oracle OLAP also uses temporary tablespace to maintain different generations of an analytic workspace. This enables it to present a consistent view of the analytic workspace when one or more users are reading it while the contents are being updated. This usage creates numerous extensions within the tablespace, so be sure to specify a small EXTENT MANAGEMENT size.

The following commands create a temporary tablespace suitable for use by Oracle OLAP.

CREATE TEMPORARY TABLESPACE tablespace TEMPFILE 'pathname' 
   SIZE size REUSE AUTOEXTEND ON NEXT size MAXSIZE UNLIMITED
   EXTENT MANAGEMENT LOCAL UNIFORM SIZE size;

Where:


tablespace is the name of the tablespace
pathname is a fully qualified file name
size is an appropriate number of bytes

For example:

CREATE TEMPORARY TABLESPACE glotmp TEMPFILE '$ORACLE_HOME/oradata/glotmp.tmp'
   SIZE 50M REUSE AUTOEXTEND ON NEXT 5M MAXSIZE UNLIMITED
   EXTENT MANAGEMENT LOCAL UNIFORM SIZE 256K;

You can stripe temporary tablespaces across several disks the same as permanent tablespaces. The next example shows the GLOTMP temporary tablespace striped across three physical disks.

CREATE TEMPORARY TABLESPACE glotmp TEMPFILE 
   'disk1/oradata/glotmp1.tmp' SIZE 50M REUSE AUTOEXTEND ON NEXT 5M MAXSIZE 1024M
   EXTENT MANAGEMENT LOCAL UNIFORM SIZE 256K;

ALTER TABLESPACE glotmp ADD TEMPFILE 
   'disk2/oradata/glotmp2.tmp' SIZE 50M REUSE AUTOEXTEND ON NEXT 5M MAXSIZE 1024M,
   'disk3/oradata/glotmp3.tmp' SIZE 50M REUSE AUTOEXTEND ON NEXT 5M MAXSIZE UNLIMITED;

Setting Up User Names

To connect to the database, a user must present a user name and password that can be authenticated by database security. All users must have the CONNECT role. The additional privileges associated with that user name control the user's access to data. As a database administrator, you must set up user names with appropriate credentials for all users of Oracle OLAP applications.

You can define user names and grant them these rights from the Users General Page of Oracle Enterprise Manager Database Control or by using SQL commands.

Two roles are defined on installation of the database explicitly to support Oracle OLAP:

See Also:

Oracle Database SQL Reference for more information about granting privileges.

SQL Access For DBAs and Application Developers

To use Analytic Workspace Manager, users need SELECT privileges on the source schema tables, and an unlimited quota on the tablespace in which the workspace is created. Example 6-1 shows the SQL statements for creating the GLOBAL_AW user.

Example 6-1 SQL Statements for Creating the GLOBAL_AW User

CREATE USER 'GLOBAL_AW' IDENTIFIED BY 'global_aw'
   DEFAULT TABLESPACE glo 
   TEMPORARY TABLESPACE glotmp
   QUOTA UNLIMITED ON glo
   ACCOUNT UNLOCK;

GRANT SELECT ON global.channel_dim TO global_aw;
GRANT SELECT ON global.customer_dim TO global_aw;
GRANT SELECT ON global.product_dim TO global_aw;
GRANT SELECT ON global.time_dim TO global_aw;
GRANT SELECT ON global.price_and_cost_history_fact TO global_aw;
GRANT SELECT ON global.price_and_cost_update_fact TO global_aw;
GRANT SELECT ON global.units_history_fact TO global_aw;
GRANT SELECT ON global.units_update_fact TO global_aw;

SQL Access for Analysts

To access an existing analytic workspace, users must have these access privileges on the table in which the workspace is stored:

  • To read from the analytic workspace, SELECT privileges.

  • To write to the analytic workspace, SELECT, INSERT, and UPDATE privileges.

Note that the name of the table is the same as the name of the analytic workspace, with the addition of an AW$ prefix. For example, the GLOBAL analytic workspace is stored in the AW$GLOBAL relational table.

For users to access views of workspace data, they must be granted EXECUTE privileges explicitly on those views.

Example 6-2 shows the SQL statements that gives all users read-only privileges to the GLOBAL analytic workspace, and user SCOTT read/write privileges.

Example 6-2 Granting Access Rights to the GLOBAL Analytic Workspace

GRANT SELECT ON global_aw.aw$global TO public;
GRANT INSERT ON global_aw.aw$global TO scott;
GRANT UPDATE ON global_aw.aw$global TO scott;

Access to Database Objects Using OracleBI Beans

To connect to a database using OracleBI Beans, users must have the following access rights:

  • CONNECT role.

  • SELECT privileges on the database objects containing the data to be analyzed, whether the data is stored in an analytic workspace or in relational tables. Refer to the previous topic, "SQL Access for Analysts", for information about granting access to analytic workspaces.

  • QUERY REWRITE system privilege (for relational tables).

  • OLAP_USER role (for relational tables).

Access to the Oracle JVM

Users who want to author or execute Analytic Workspace Java API applications within the Oracle Java Virtual Machine (JVM) may need the following Java permissions, in addition to the OLAP_DBA or OLAP_USER role:

Table 6-1 Java Permissions

Permission Type Action

java.io.FilePermission

read, write, execute

java.util.PropertyPermission

read, write

java.net.SocketPermission

connect, resolve

java.lang.RuntimePermission

null


You can grant these permissions in either Java or SQL.

See Also:

Initialization Parameters for Oracle OLAP

Table 6-2 identifies the parameters that affect the performance of Oracle OLAP. Alter your server parameter file or init.ora file to these values, then restart your database instance. You can monitor the effectiveness of these settings and adjust them as necessary.

The recommendations for memory assume that the computer is dedicated to running Oracle Database. If you want to reserve some resources for other applications, then first calculate the percent of resources that are available to Oracle Database. For example, if your computer has 4G of physical memory and you want to reserve 25% for other applications, then you would calculate PGA_AGGREGATE_TARGET and SGA_TARGET based on 75% of 4G, which is 3G.

Table 6-2 Initial Settings for Database Parameter Files

Parameter Setting

JOB_QUEUE_PROCESSES

Number of CPUs, plus one additional process for every three CPUs

For example, JOB_QUEUE_PROCESSES=5 for a four-processor computer

OPEN_CURSORS

300 or more to support Analytic Workspace Manager

PGA_AGGREGATE_TARGET

50% of physical memory to start, then tune as indicated by performance statistics

SGA_TARGET

25% or less of physical memory to start, then tune as indicated by performance statistics

SESSIONS

2.5 * maximum number of simultaneous OLAP users

UNDO_MANAGEMENT

AUTO

UNDO_TABLESPACE

Name of the undo tablespace, which must be defined first as shown in "Creating an UNDO Tablespace"


See Also:

Oracle Database Performance Tuning Guide for information about these parameters.

Procedure: Setting System Parameters for OLAP

Take the following steps to set system parameters:

  1. Open the init.ora initialization file in a text editor.

  2. Add or change the settings in the file.

    For example, you might enter a command like this:

    PGA_AGGREGATE_TARGET=1G

  3. Stop and restart the database, using commands such as the following. Be sure to identify the initialization file in the STARTUP command.

    SQLPLUS '/ AS SYSDBA'
    SHUTDOWN IMMEDIATE
    STARTUP pfile=$ORACLE_HOME/admin/rel10g/pfile/initrel10g.ora
    

Initialization Parameters for OracleBI Beans

OracleBI Beans performs best when the configuration parameters for the database are optimized for its use. During installation of Oracle Database, an OLAP configuration table is created and populated with ALTER SESSION commands that have been tested to optimize the performance of OracleBI Beans. Each time OracleBI Beans opens a session, it executes these ALTER SESSION commands.

If a database instance is being used only to support Java applications that use OracleBI Beans, then you can modify your server parameter file or init.ora file to include these settings. Alternatively, you might want to include some of the settings in the server parameter file and leave others in the table, depending upon how your database instance is going to be used. These are your choices:

Regardless of where these parameters are set, you should check the Oracle Technology Network for updated recommendations.

See Also:

Oracle Database SQL Reference for descriptions of initialization parameters that can be set by the ALTER SESSION command

Permitting Access to External Files

The OLAP DML contains three types of commands that read from and write to external files:

These commands control access to files by using BFILE security. This database security mechanism creates a logical directory object to represent a physical disk directory. Permissions are assigned to the directory object, which control access to files within the associated physical directory.

You use PL/SQL statements to create a directory object and grant permissions. The relevant syntax of these SQL statements is provided in this chapter.

See Also:

Oracle Database SQL Reference under the entries for CREATE DIRECTORY and GRANT for the full syntax and usage notes.

Creating a Directory Object

To create a directory object, you must have CREATE ANY DIRECTORY system privileges.

Use a CREATE DIRECTORY statement to create a new directory, or a REPLACE DIRECTORY statement to redefine an existing directory, using the following PL/SQL syntax:

{CREATE | REPLACE | CREATE OR REPLACE} DIRECTORY directory AS 'pathname';

Where:


directory is the name of the logical directory object
pathname is the physical directory path

Granting Access Rights to a Directory Object

After you create a directory, grant users and groups access rights to the files contained in that directory, using the following PL/SQL syntax:

GRANT permission ON DIRECTORY directory TO {user | role | PUBLIC};

Where:

permission is one of the following:


READ for read-only access
WRITE for write-only access
ALL for read and write access

directory is the name of the directory object

user is a database user

role is a database role

PUBLIC is all database users

Example: Creating and Using a Directory Object

The following SQL commands create a directory object named OLAPFILES to control access to a physical directory named /users/oracle/OraHome1/olap and grant read access to all users.

CREATE DIRECTORY olapfiles as '/users/oracle/OraHome1/olap';
GRANT READ ON DIRECTORY olapfiles TO PUBLIC;

Users access files located in /users/oracle/OraHome1/olap with DML commands such as this one:

IMPORT ALL FROM EIF FILE 'olapfiles/salesq2.eif' DATA DFNS

Basic Queries for Monitoring the OLAP Option

The following queries extract OLAP information from the data dictionary. In most of the SELECT statements, you must replace GLOBAL with the name of your analytic workspace.

More complex queries are provided in a script that you can download from the Oracle OLAP Web site. For descriptions of these scripts and download instructions, refer to "Monitoring Performance".

Is the OLAP Option Installed in the Database?

The OLAP option is provided with Oracle Database Enterprise Edition. To verify that the OLAP components have been installed, issue this SQL command:

SELECT COMP_NAME, VERSION, STATUS FROM DBA_REGISTRY WHERE COMP_NAME LIKE '%OLAP%';
 
COMP_NAME                 VERSION      STATUS
------------------------- ------------ -----------
OLAP Analytic Workspace   10.2.0.3.0   VALID
Oracle OLAP API           10.2.0.3.0   VALID
OLAP Catalog              10.2.0.3.0   VALID

What Analytic Workspaces are in the Database?

The DBA_AWS view provides information about all analytic workspaces. Use the following SQL command to get a list of names and their owners:

SELECT OWNER, AW_NAME FROM DBA_AWS;
 
OWNER                          AW_NAME
------------------------------ ------------------------------
SYS                            EXPRESS
SYS                            AWMD
SYS                            AWCREATE
SYS                            AWCREATE10G
SYS                            AWXML
SYS                            AWREPORT
GLOBAL_AW                      GLOBAL

How Big is the Analytic Workspace?

To find out the size of the tablespace extensions for a particular analytic workspace, use the following SQL statements, replacing GLOBAL with the name of your analytic workspace.

COLUMN DBMS_LOB.GETLENGTH(AWLOB) HEADING "Bytes";
SELECT EXTNUM, SUM(DBMS_LOB.GETLENGTH(AWLOB)) FROM AW$GLOBAL GROUP BY EXTNUM;

    EXTNUM SUM(DBMS_LOB.GETLENGTH(AWLOB))
---------- ------------------------------
         0                       50450928

The DBMS_LOB PL/SQL package includes a program for reporting the size of a LOB table that stores an analytic workspace. Use a SQL command like the following, replacing GLOBAL with the name of your analytic workspace and GLOBAL_AW with the name of the schema.

SELECT ROUND(SUM(DBMS_LOB.GETLENGTH(AWLOB))/1024,0) "KB" FROM global_aw.aw$global;
 
        KB
----------
     53700

How Is the Analytic Workspace Stored?

The DBMS_METADATA PL/SQL package contains a subprogram that shows how any particular analytic workspace is stored in the database. Use a SQL command like the following, replacing GLOBAL with the name of your analytic workspace and GLOBAL_AW with the name of the schema.

SELECT DBMS_METADATA.GET_DDL('TABLE', 'AW$GLOBAL', 'GLOBAL_AW') FROM DUAL;
 
DBMS_METADATA.GET_DDL('TABLE','AW$GLOBAL','GLOBAL_AW')
--------------------------------------------------------------------------------
 
  CREATE TABLE "GLOBAL_AW"."AW$GLOBAL"
   (    "PS#" NUMBER(10,0),
        "GEN#" NUMBER(10,0),
        "EXTNUM" NUMBER(8,0),
        "AWLOB" BLOB,
        "OBJNAME" VARCHAR2(256),
        "PARTNAME" VARCHAR2(256)
   ) PCTFREE 10 PCTUSED 40 INITRANS 4 MAXTRANS 255
  STORAGE(
  BUFFER_POOL DEFAULT)
  TABLESPACE "GLOBAL"
 LOB ("AWLOB") STORE AS (
  DISABLE STORAGE IN ROW CHUNK 8192 PCTVERSION 0
  CACHE
  STORAGE(
  BUFFER_POOL DEFAULT))
  PARTITION BY RANGE ("GEN#")
  SUBPARTITION BY HASH ("PS#","EXTNUM")
  SUBPARTITIONS 8
        .
        .
        .

When Were the Analytic Workspaces Created?

The DBA_OBJECTS view provides the creation date of the objects in your database. The following SQL command generates an easily readable report for analytic workspaces.

SELECT OWNER ||'.'||SUBSTR(OBJECT_NAME,4) AS AW_NAME, CREATED FROM DBA_OBJECTS WHERE OBJECT_NAME LIKE 'AW$%' AND OBJECT_NAME != 'AW$' GROUP BY OWNER, OBJECT_NAME, CREATED ORDER BY OWNER, AW_NAME;
 
AW_NAME              CREATED
-------------------- ---------
GLOBAL_AW.GLOBAL     10-JUL-06
SYS.AWCREATE         08-JUL-06
SYS.AWCREATE10G      08-JUL-06
SYS.AWMD             08-JUL-06
SYS.AWREPORT         08-JUL-06
SYS.AWXML            08-JUL-06
SYS.EXPRESS          08-JUL-06

How Dimensional Data is Stored in the Database

Oracle OLAP multidimensional data is stored in analytic workspaces. An analytic workspace can contain a variety of objects, such as dimensions, variables, and OLAP DML programs. These objects typically support a particular application or set of data.

Each analytic workspace is stored in a relational table. Whenever an analytic workspace is created, modified, or accessed, the information is stored in a table in the relational database.

Important:

These tables are vital for the operation of Oracle OLAP. Do not delete them or attempt to modify them directly without being fully aware of the consequences.

Analytic Workspace Tables

Analytic workspaces are stored in tables in the Oracle Database. The names of these tables always begin with AW$.

For example, if the GLOBAL_AW user creates two analytic workspaces, one named GLOBAL and the other named GLOBAL_PROGRAMS, then these tables will be created in the GLOBAL_AW schema:

AW$GLOBAL
AW$GLOBAL_PROGRAMS

Tables are created by default with eight partitions. You can manage these partitions the same as you would for any other table in your database.

The tables store all of the object definitions and data. Each object in an analytic workspace is stored in one or more page spaces, and each page space is stored in a separate row of the table. A page space is grouping of related data pages; a page is a unit for swapping data in and out of memory.

For example, a dimension is stored in three page spaces and thus has three rows (one each for dimension members, a hash index, and a logical-to-physical map). A measure is stored in one row; a partitioned measure has a row for each partition.

Table 6-3 describes the columns of a table that stores an analytic workspace.

Table 6-3 Column Descriptions for Analytic Workspace Tables

Column Data Type NULL Description

EXTNUM

NUMBER(8)

-

Extension number

Analytic workspaces are stored in physical LOBs (called extensions), which have a default maximum size of 500MB. The first extension is 0, the second is 1, and so forth.

PS#

NUMBER(10)

-

Page space number

Each object is stored in at least one page space.

GEN#

NUMBER(10)

-

Generation number

A generation (a snapshot of the page space) is maintained for each reader to assure a consistent view of the analytic workspace throughout a session.

AWLOB

BLOB

-

Analytic workspace LOB

Actual storage of the analytic workspace object.

OBJNAME

VARCHAR2(60)

-

Object name

The name of the object in the analytic workspace.

PARTNAME

VARCHAR2(60)

-

Partition name

A name for the page space in which the object is stored. Each object is stored in its own page space. A partitioned variable is stored with a page space for each partition. The number of partitions and their names are specified when a partition template is created in the analytic workspace.


Table 6-4 shows a few sample rows of an analytic workspace table, which are the results of the following query.

SELECT ps#, gen#, objname, partname FROM aw$global WHERE
     OBJNAME = 'TIME' OR
     OBJNAME = 'UNITS_CUBE_UNITS_STORED'
     ORDER BY GEN#, PS#;

Table 6-4 Sample Rows From AW$GLOBAL

PS# GEN# OBJNAME PARTNAME

2515

0

TIME

TIME

2516

0

TIME

TIME

2517

0

TIME

TIME

2745

0

UNITS_CUBE_UNITS_STORED

UNITS_CUBE_UNITS_STORED

2515

2

TIME

TIME

2516

2

TIME

TIME

2517

2

TIME

TIME


System Tables

The SYS user owns several tables and views associated with analytic workspaces. Most of them are LOB tables that contain analytic workspaces, which are attached automatically to a user's session as needed. Following are brief descriptions of these objects.

  • AW$ maintains a record of all analytic workspaces in the database, recording its name, owner, and other information.

  • The following tables contain analytic workspaces:

    • AW$AWCREATE10G stores the AWCREATE10G analytic workspace, which contains programs for using OLAP Catalog metadata in Oracle Database 10g Release 10.1.0.3.

    • AW$AWMD stores the AWMD analytic workspace, which contains programs for creating standard form catalogs.

    • AW$AWREPORT stores the AWREPORT analytic workspace, which contains a program named AWREPORT for generating a summary space report.

    • AW$AWXML stores the AWXML analytic workspace, which contains programs for creating and managing standard form analytic workspaces for Oracle Database 10g Release 10.2 and later.

    • AW$EXPRESS stores the EXPRESS analytic workspace. This workspace contains objects and programs that support the OLAP DML. The EXPRESS workspace is used any time that a session is open.

  • PS$ maintains a history of all page spaces. A page space is an ordered series of bytes equivalent to a file. Oracle OLAP manages a cache of workspace pages. Pages are read from storage in a table and written into the cache in response to a query. The same page can be accessed by several sessions.

    The information stored in PS$ enables the Oracle OLAP to discard pages that are no longer in use, and to maintain a consistent view of the data for all users, even when the workspace is being modified during their sessions. When changes to a workspace are saved, unused pages are purged and the corresponding rows are deleted from PS$.

Static Data Dictionary Views

Among the static views of the database data dictionary are several that provide information about analytic workspaces. Table 6-5 brief descriptions of them. There are corresponding DBA and USER views.

Table 6-5 Static Data Dictionary Views for OLAP

View Description

ALL_AWS

Describes the analytic workspaces accessible to the current user.

ALL_AW_OBJ

Describes the current objects in all analytic workspaces accessible to the current user.

ALL_AW_PROP

Describes the OLAP DML properties defined in all analytic workspaces accessible to the current user.

ALL_AW_PS

Describes the page spaces currently in use by all analytic workspaces accessible to the current user.


See Also:

Oracle Database Reference for descriptions of these and other data dictionary views.

Monitoring Performance

Each Oracle Database instance maintains fixed tables that record current database activity. These tables collect data on internal disk structures and memory structures. Among them are tables that collect data on Oracle OLAP.

These tables are available to users through a set of dynamic performance views. By monitoring these views, you can detect usage trends and diagnose system bottlenecks. Table 6-6 provides a brief description of each view. Global dynamic performance views (GV$) are also provided.

See Also:

Oracle OLAP Reference for full descriptions of the OLAP dynamic performance views.

Table 6-6 OLAP Dynamic Performance Views

View Description

V$AW_AGGREGATE_OP

Lists the aggregation operators available in the OLAP DML.

V$AW_ALLOCATE_OP

Lists the allocation operators available in analytic workspaces.

V$AW_CALC

Collects information about the use of cache space and the status of dynamic aggregation.

V$AW_LONGOPS

Collects status information about SQL fetches.

V$AW_SESSION_INFO

Collects information about each active session.

V$AW_OLAP

Collects information about the status of active analytic workspaces.


You can download from the Oracle OLAP Web site a file that contains several SQL scripts. These scripts extract information from two or more system views and generate a report that may be useful in tuning a database. To download the file, go to this URL:

http://www.oracle.com/technology/products/bi/olap/DBA_scripts.zip

Table 6-7 describes these scripts. For more information, refer to the README file provided with the scripts.

Table 6-7 OLAP DBA Scripts

SQL Script Description

aw_objects_in_cache

Identifies the objects in the buffer cache that are related to analytic workspaces.

aw_rows_rw

Tallies the number of reads from temporary segments and the LOB tables where analytic workspaces are stored, the number of cache rights, and the number of rows processed.

aw_size

Displays the amount of disk space used by each analytic workspace.

aw_tablespaces

Provides extensive information about the tablespaces used by analytic workspaces.

aw_users

Identifies the users of analytic workspaces.

cursor_parameters

Indicates whether the database parameters that limit the number of open cursors are set too low.

olap_pga_performance

Determines how much PGA is in use, the size of the OLAP page pool, and the hit/miss ratio for OLAP pages for each user.

olap_pga_use

Determines how much PGA is consumed by the OLAP page pool to perform operations on analytic workspaces.

session_resources

Identifies the use of cursors, PGA, and UGA for each open session.


Copying and Backing Up Analytic Workspaces

You can copy analytic workspaces at several levels, either as a way of replicating it on another computer or backing it up.

The owner of an analytic workspace can create an XML template or an EIF file, or export the schema to a dump file. Only users with the EXP_FULL_DATABASE privilege or a privileged user (such as SYS or a user with the DBA role) can export the full database or create a transportable tablespace.

See Also:

  • Analytic Workspace Manager Help for information about exporting to an XML template or an EIF file. Search for the topic "Saving Analytic Workspaces in Flat Files."

  • Oracle Database Utilities for information about Oracle Data Pump and the expdp/impdp commands.