Previous | Table of Contents | Next |
You need to install the migration utility as explained in the following steps.
Stage 1. Install the Oracle8 migration utility.
$ cd /cdrom/cdrom0/orainst $ ./orainst /m ( /m is required for motif version)
Prompt Screen | Selection / Enter Value |
---|---|
Installation Options: | |
Home Locator | Enter the Oracle7 $ORACLE_HOME location. |
Logging and Status | Confirm and/or change the log file location (installer log, sql log, makefile log, and OS log). (You are prompted for this if you select Custom Install.) |
Migration | Select Install Migration Utility. |
Install Source | Select either Install from CD-ROM or Install from Staging Area. If you select Install from Staging Area, you will get the Source Staging Area to enter the pathname of the source staging area directory. (You are prompted for this if you select Custom Install.) |
NLS | Choose the language to be installed. |
Software Asset Manager | Choose Migration Utility: Oracle7 to Oracle8 (8.0.3.0.0). |
Now choose Install and exit from orainst.
Please make sure that the Oracle8 migration utility executable mig resides in the Oracle7 $ORACLE_HOME/bin directory; migus.msb, the new version of the message file, resides in the Oracle7 $ORACLE_HOME/rdbms/mesg directory; migrate.bsq resides under the Oracle7 ORACLE_HOME/dbs directory; and all the NLS files are under the Oracle7 ORACLE_HOME/migrate/nls/admin/data directory. During the process of migration, migrate.bsq will create a number of objects that are normally created by sql.bsq, but it will create them under the migrate schema. Later, during the convert phase, the ownership of migrates objects will be changed to sys.
Note:
If your Oracle7 sql.bsq was customized (which it should not be, but might be for very specific reasons), you need to make the same changes to migrate.bsq prior to running the migration utility.You can locate migrate.bsq under $ORACLE_HOME/dbs (as mentioned previously). You have to search on sql.bsq to find the exact script.
Stage 2. Prepare the database for migration.
Go through README.doc and check for any patches that need to be installed:
drop view dba_histograms; drop view v$bh if it exists;
Select name, status, enabled from v$datafile;
select extents from v$rollstat where usn=0;
select name from ts$ where ts#=<kttvstnm>
Alter tablespace tablespace_name online;
Alter tablespace tablespace_name offline normal;
Stage 3. Migrate the database.
This is your only chance to take the backup if you have not taken it so far. Shut down normal or immediate the Oracle7 database. So, take a backup now.
Previous | Table of Contents | Next |