Oracle® OLAP DML Reference 11g Release 1 (11.1) Part Number B28126-01 |
|
|
View PDF |
Analytic workspaces are stored in tables within the database. The storage format for Oracle 11g analytic workspaces is different from the storage format used in Oracle10g. Analytic workspace storage format is described in Oracle OLAP User's Guide.
When you upgrade an Oracle10g database to Oracle 11g, the upgraded database is automatically in Oracle9i compatibility mode, and the analytic workspaces are still in Oracle10g storage format. If you want to use new Oracle 11g OLAP features, you must use DBMS_AW.CONVERT
to convert these workspaces to the new storage format.
See Also:
Oracle Database Upgrade Guide for more information on database compatibility mode.
Oracle MetaLink at http://metalink.oracle.com
for more information about upgrading analytic workspaces.
To convert an analytic workspace to a more recent storage format, follow these steps:
Change the compatibility mode of the database to 11.0.0 or higher.
Log into the database with the identity of the analytic workspace.
In SQL*Plus, convert the workspace to the current format:
SQL>execute dbms_aw.convert ('my_aw');
Because you changed the database compatibility mode to Oracle Database 11g, any new workspaces that you create are in the new storage format.
If you install Oracle Database 11g separately from your old Oracle Database installation, you can export the analytic workspaces from the older release and import them into Oracle Database 11g. The export and import processes automatically convert the workspaces to the new storage format. Therefore you do not need to use DBMS_AW.CONVERT
in this case.
Use the following procedure to export an Oracle9i analytic workspace and import it in an Oracle 11g database.
In Oracle9i SQL*Plus, export the analytic workspace to the directory identified by the SCRIPTS
directory object.
SQL>execute dbms_aw.execute ('aw attach ''awname'''); SQL>execute dbms_aw.execute ('allstat'); SQL>execute dbms_aw.execute ('cda scripts'); SQL>execute dbms_aw.execute ('export all to eif file ''filename''');
In Oracle 11g SQL*Plus, create a new workspace with the same name and schema, and import the EIF file from the SCRIPTS
directory.
SQL>execute dbms_aw.execute ('aw create awname'); SQL>execute dbms_aw.execute ('cda scripts'); SQL>execute dbms_aw.execute ('import all from eif file ''filename'''); SQL>execute dbms_aw.execute ('update');
You can also use Oracle export and import utilities to move the entire schema, including the analytic workspaces to an Oracle 10g database. See Oracle Database Utilities and Oracle Database Upgrade Guide.