Oracle9i Database Migration Release 2 (9.2) Part Number A96530-02 |
|
|
View PDF |
This chapter guides you through the process of upgrading and downgrading data in an Oracle database using the Export and Import utilities. This chapter covers the following topics:
See Also:
Oracle9i Database Utilities for detailed information about the Export and Import utilities |
Export dump files can be imported into all future releases of Oracle. For example, an Oracle7 export dump file can be imported by the release 8.1.7, release 9.0.1, and release 9.2 Import utilities.
Export dump files, however, are not downward compatible with the Import utilities of previous Oracle releases. That is, exported data cannot be imported by the Import utilities of previous Oracle releases. For example, a release 8.1.7 export dump file cannot be imported by the release 8.0.6 Import utility, and an Oracle9i export dump file cannot be imported by the Oracle7 Import utility.
The contents of a database can be imported into a previous Oracle release if you use the Export and Import utilities of the previous release to export and import the data. Table 8-1 details this support.
As Table 8-1 indicates, to export data from a release 8.0 or higher database into an Oracle7 database, you must first run the catexp7.sql
script on the release 8.0 or higher database before using the Oracle7 Export utility to export the data.
You do not need to run the catexp7.sql
script if you are exporting data from a release 8.1 or higher database into a release 8.0 database.
When you export data to a previous release, data that is incompatible with the previous release either is not exported at all or is exported with the loss of some features.
For example, partitioned tables are not exported by the Oracle7 Export utility. If you need to move a partitioned table from a release 8.0 or higher database into an Oracle7 database, then first reorganize the table into a non-partitioned table. Another example involves procedures that use invoker-rights in release 8.1 and higher. If you use the release 8.0 Export utility, then these procedures are exported, but they do not function properly in release 8.0 because release 8.0 does not support invoker-rights. Therefore, in general, if you need to export data to a previous release, then first remove as many incompatibilities with the previous release as possible before you export the data.
The source database is the database containing the data to be exported. The target database is the database into which you are importing the exported data.
To upgrade a database, use the Export utility shipped with the release of the source database. After the export, the Import utility can copy the data from the export dump file into the target database, which is a new Oracle9i database. The new Oracle9i database must be created and operational before the Import utility can import the exported data.
For example, if you are upgrading to release 9.2 from release 7.3.4, then use the Export utility for release 7.3.4.
To upgrade a database, use the Import utility shipped with the release of the target database, which is a new Oracle9i database. For example, if you are upgrading to release 9.2 from release 7.3.4, then use the Import utility for release 9.2.
To upgrade a database using the Export/Import utilities, complete the following steps:
To ensure a consistent export, make sure the source database is not available for updates during and after the export. If the source database will be available to users for updates after the export, then, prior to making the source database available, put procedures in place to copy the changes made in the source database to the new Oracle9i target database after the import is complete.
See Also:
Oracle9i Database Administrator's Guide for information about creating an Oracle9i database |
SYSDBA
privileges.STARTUP
.LOG
parameter to save the informational and error messages from the import session to a file.
See Also:
Oracle9i Database Utilities for a complete description of the Import utility. |
See Also:
Oracle9i Database Utilities and the Oracle9i server |