Oracle8 Migration Release 8.0 A58243-01 |
|
This chapter contains information about upgrading from your current version 8 release to a new version 8 release. This chapter also contains information about downgrading a version 8 database system to version 7.
The information in this chapter only applies to version 8 installations of Oracle. If your current release is pre-version 8, such as version 7 or version 6, and you want to migrate to version 8, follow the instructions at the beginning of this book, starting with Chapter 1, "Migration Overview".
The following topics are covered in this chapter:
This section guides you through the process of upgrading to the new version 8 release from release 8.0.3.
WARNING: If you are upgrading from Oracle8 Enterprise Edition to Oracle8 (formerly Workgroup Server), before you upgrade, you must modify any applications that use the advanced features of Oracle8 Enterprise Edition so that they do not use these advanced features. See Getting to Know Oracle8 and the Oracle8 Enterprise Edition and "Product Configurations and Upgrading" on page 8-4 for more information about the differences between the editions. |
Complete the following steps to upgrade your current version 8 database:
SVRMGR> CONNECT INTERNAL
SVRMGR> STARTUP RESTRICT
SVRMGR> SPOOL CATOUTU.LOG
The CAT8004.SQL script creates and alters certain dictionary tables. It also runs the CATALOG.SQL and CATPROC.SQL scripts, which create the system catalog views and all the necessary packages for using PL/SQL.
See Also:
Oracle8 Reference for a complete list and descriptions of available scripts, if you want to create additional data dictionary structures. |
SVRMGR> @CATREP.SQL
SVRMGR> @CATPARR.SQL
Then, check the spool file and verify that every package and procedure compiled successfully. You named the spool file in Step 8; the suggested name was CATOUTU.LOG. Correct any problems you find in this file.
SVRMGR> ALTER SYSTEM DISABLE RESTRICTED SESSION
To run UTLCONST.SQL, issue the following commands:
SVRMGRL> SPOOL UTLRESULT.LOG SVRMGRL> @UTLCONST.SQL SVRMGRL> SPOOL OFF
A bad date constraint involves invalid date manipulation. An invalid date manipulation is one that implicitly assumes the century in the date, causing problems at the year 2000. The UTLCONST.SQL script runs through all of the check constraints in the database and sets constraints as bad if they include any invalid date manipulation. This script selects all the bad constraints at the end.
After you run the script, the UTLRESULT.LOG log file includes all the constraints that have invalid date constraints.
Release 8.0.4 of the Oracle server is offered in two product configurations:
See Also:
Getting to Know Oracle8 and the Oracle8 Enterprise Edition for information about the differences between Oracle8 and the Oracle8 Enterprise Edition and the options and features that are available to you. |
If you are upgrading to Oracle8, instead of Oracle8 Enterprise Edition, you may lose certain options and features that were available to you in your previous release. The following table describes the functionality changes in such an upgrade:
The operational interface in Oracle Advanced Queuing (AQ) 8.0.4 is backward compatible with 8.0.3 Oracle AQ interface.
Note: If you have not started the release 8.0.4 database with a setting of to 8.0.4.0.0 for the COMPATIBLE parameter, do so now to use the features described in this section. See "COMPATIBLE Parameter" on page C-2 for more information. |
In the latest release, the address field is enabled for the AQ$_AGENT datatype. Consequently, it is now possible for this field to be specified wherever an interface takes an Agent as an argument - such as in the recipient list of the message properties, and the DBMS_AQADM.ADD_SUBSCRIBER administrative interface.
The address field in the AQ$_AGENT datatype has been extended to 1024 bytes. To use the extended address field, complete the following steps:
The upgrade script for release 8.0.4 (CAT8004.SQL) creates the additional dictionary tables:
The term downgrading is used to describe transforming an Oracle database into a previous release of the same version, such as transforming a database from release 8.0.4 to release 8.0.3, and downgrading also is used to describe transforming an Oracle database into a previous version, such as transforming a database from version 8 to version 7. The following sections contain instructions for both cases.
WARNING: If you are downgrading from Oracle8 Enterprise Edition to Oracle8 (formerly Workgroup Server), before you downgrade, you must modify any applications that use the advanced features of Oracle8 Enterprise Edition so that they do not use these advanced features. See Getting to Know Oracle8 and the Oracle8 Enterprise Edition for more information about the differences between the editions. |
Complete the following steps to downgrade your release 8.0.4 database to release 8.0.3:
SVRMGR> SELECT name, value, description FROM v$parameterWHERE name="compatible";
If COMPATIBLE is set to 8.0.3.0.0 or 8.0.0.0.0, skip to Step 10, but, if COMPATIBLE is set to 8.0.4.0.0, continue with Step 5.
See Also:
"Propagation in Advanced Queuing (AQ)" on page C-3 for more information about this feature. |
To disable propagation in the Advanced Queuing Option, complete one of the following procedures:
See Also:
Oracle8 Application Developer's Guide for information about DBMS_AQDM.UNSCHEDULE_PROPAGATION(). |
SVRMGR> ALTER DATABASE RESET COMPATIBILITY
SVRMGR> @CAT8004D.SQL
SVRMGR> CONNECT INTERNAL
SVRMGR>SPOOL CATOUTD.LOG
SVRMGR>@CATREP.SQL
SVRMGR>@CATPARR.SQL
Then, check the spool file and verify that every package and procedure compiled successfully. You named the spool file in Step 15; the suggested name was CATOUTD.LOG. Correct any problems you find in this file.
A version 8 database can be downgraded to a version 7 database (such as release 7.3). However, few downgrade paths are available, and the necessary procedures may require a great deal of time and effort.
Oracle does not support downgrading from version 8 to version 7 using the version 8 Migration Utility, and version 8 provides no other facilities specifically for downgrading.
The procedure for downgrading depends on whether the version 8 database contains new data that must be preserved. Use the procedure that applies to your version 8 database:
If the version 8 database contains no new data that needs to be preserved, simply restore the complete backup of the previous release 7.x source database and open it again. Make sure the restore includes the initialization parameters that were used in the previous release 7.x database.
If the version 8 database contains new data that needs to be preserved, complete the following steps:
See Also:
Oracle8 Utilities for more information about performing a version 7 export from version 8. |
Several other methods are available for sending table data from the version 8 database back to the version 7 database. These methods of returning data to version 7 are relatively simple if only a few tables have been updated using version 8. However, copying an entire database of tables can be a long and complicated task; therefore, you should decide whether you need to return to version 7 before you update many tables using version 8.
The following alternate methods are available for downgrading a version 8 database to version 7: