Oracle9i Application Developer's Guide - Workspace Manager Release 2 (9.2) Part Number A96628-01 |
|
This appendix describes how to migrate version-enabled tables from one release of Workspace Manager to another release. You can either upgrade to the current release or downgrade to a previous release (no earlier than release 9.0.1). For example:
For an upgrade or downgrade operation, the tables can remain version-enabled. You do not need to disable versioning before performing an upgrade or downgrade.
To upgrade to the current Workspace Manager release from a previous release, perform the following steps.
$ORACLE_HOME/rdbms/admin
.SYSDBA
privileges.SQL> SHUTDOWN IMMEDIATE
SQL> STARTUP RESTRICT
OWM_VERSION
in the WM_INSTALLATION
view:
SQL> SELECT * FROM wm_installation;
If the OWM_VERSION
value is NOT_INSTALLED
, Workspace Manager is not currently installed.
If the OWM_VERSION
value is BETA_RELEASE
, the upgrade is not supported. Use DisableVersioning on all version-enabled tables, uninstall the old release of Workspace Manager using the old uninstall script, and install the new release of the Workspace Manager software.
If the WM_INSTALLATION
view does not exist, run the following script to create the view.
SQL> @owmcmdv.plb
SQL> SPOOL catoutowmu.log
If the OWM_VERSION
value is BETA_RELEASE
, the upgrade is not supported. Use DisableVersioning on all version-enabled tables, uninstall the old release of Workspace Manager using the old uninstall script, and install the new release of the Workspace Manager software.
If you are upgrading from release 9.0.1.0.0 or 9.0.1.2.0, run owmu901.plb
:
SQL> @owmu901.plb
If you are upgrading from release 9.0.1.3.0, run owmu9013.plb
:
SQL> @owmu9013.plb
If you are upgrading from release 9.0.1.4.0, run owmu9014.plb
:
SQL> @owmu9014.plb
If you are upgrading from a preproduction version of release 9.2.0.0.0, run owmu9200.plb
. Note that this is required even if your current release number is 9.2.0.0.0 and you are upgrading to the production version of release 9.2.0.0.0.
SQL> @owmu9200.plb
SELECT * FROM all_wm_vt_errors;
This view should be empty. If it has any rows, the upgrade did not complete successfully. To recover one or more tables that were left in an inconsistent state because of the upgrade failure, use the RecoverAllMigratingTables or RecoverMigratingTable procedure, both of which are described in Chapter 2.
SELECT * FROM wm_installation;
The value of OWM_VERSION
is the new version of Workspace Manager.
SQL> SPOOL OFF
RESTRICTED SESSION
feature for the instance:
SQL> ALTER SYSTEM DISABLE RESTRICTED SESSION;
To downgrade from the current Workspace Manager release to a previous release, perform the following steps.
If you are downgrading to the Workspace Manager release shipped with the RDBMS installation, copy the downgrade scripts to $ORACLE_HOME/rdbms/admin
.
If you are downgrading to release 9.0.1.0.0 or 9.0.1.2.0, copy the following files: owmd901.plb
, owmr9013.plb
, and owmcmdv.plb
If you are downgrading to release 9.0.1.3.0, copy the following files: owmd9013.plb
, owmr9013.plb
, and owmcmdv.plb
If you are downgrading to release 9.0.1.4.0, copy the following files: owmd9014.plb
and owmr9014.plb
SYSDBA
privileges.SQL> SHUTDOWN IMMEDIATE
RESTRICT
mode:
SQL> STARTUP RESTRICT
SQL> SPOOL catoutowmd.log
If you are downgrading to release 9.0.1.0.0 or 9.0.1.2.0, run owmd901.plb
:
SQL> @owmd901.plb
If you are downgrading to release 9.0.1.3.0, run owmd9013.plb
:
SQL> @owmd9013.plb
If you are downgrading to release 9.0.1.4.0, run owmd9014.plb
:
SQL> @owmd9014.plb
SELECT * FROM wm_downgrade_tables;
This table should not exist. If it exists and has any rows, the downgrade did not complete successfully; contact Oracle Support Services.
SELECT * FROM wm_installation;
The value of OWM_VERSION
is the new version of Workspace Manager.
SQL> SPOOL OFF
RESTRICTED SESSION
feature for the instance:
SQL> ALTER SYSTEM DISABLE RESTRICTED SESSION;
|
Copyright © 2000, 2002 Oracle Corporation. All Rights Reserved. |
|