Oracle8i
Parallel Server Administrator's Guide
Release 2 (8.1.6) for Windows NT A73025-01 |
|
This chapter describes how to migrate from Oracle7 or upgrade
an Oracle8 database to the present Oracle8i release on Windows NT.
Specific topics discussed are:
For more information on... | See... |
---|---|
Installing the Oracle Parallel Server on Windows NT |
|
Migrating and upgrading |
Oracle8i Migration guide: |
Configuration issues |
The new features in Oracle Parallel Server for Windows NT
release 8.1 are described in the table below. These features are described
in detail in your Oracle8i documentation set.
Rolling upgrades--where different databases, or different
instances of the same database in Oracle Parallel Server, are upgraded
to a new version of Oracle one at a time--are not supported. All software
upgrades must be upgraded at the same time on all nodes of the cluster,
to maintain version consistency.
If the Oracle Universal Installer detects an earlier version
of an Oracle database on your hard drive, you will be prompted to migrate
or upgrade the database to release 8.1. Do not click the Upgrade or Migrate...
check box, as the Oracle Data Migration Assistant does not support Oracle
Parallel Server. Instead, use the Migration utility to migrate after installation.
Migrating on Windows NT involves disabling the OracleCMService and starting and shutting down the Operating System Dependent (OSD) layer at a specific point during migration.
See:
Oracle8i Migration guide, Chapter 4, "Migrating from Oracle7 Using the Migration Utility" page 4-9, for considerations on using the Migration Utility and system requirements. |
Complete the following steps before you migrate your Oracle7 database to Oracle8i:
See:
Oracle8i Installation Guide for Windows NT for the Oracle7 database releases supported by the Migration Utility. |
See:
Oracle8i Installation Guide for Windows NT for the Oracle7 database releases supported by Server Manager or SQL*DBA. |
The following is an example of the messages you will see when Server Manager starts:
Oracle Server Manager Release 2.3.3.0.0 - Production Copyright (c) Oracle Corporation 1994, 1995. All rights reserved. Oracle7 Server Release 7.3.4.0.0 - Production With the distributed, replication, parallel query, Parallel Server and Spatial Data options PL/SQL Release 2.3.4.0.0 - Production
If you see "PL/SQL" in the messages, as in the last line
in the preceding example, then the Procedural Option is installed. Otherwise,
it is not installed.
The messages you see may be slightly different, based on the options you have installed and their release numbers.
To determine whether any data files require recovery, issue the following SQL statement:
SELECT * FROM V$RECOVER_FILE;
You should see a "0 rows selected" message, which indicates
that all data files are either online or offline normal. If any data files
are listed, then you must restore the data files before you migrate the
database. You can use the V$DATAFILE dynamic performance view to find the
data file name based on the data file number. The Oracle8i Migration
utility will not proceed, and will display an error, if any data files
require media recovery.
Tablespaces that are not taken offline cleanly must be dropped
or brought online before migration. Otherwise, these tablespaces will not
be available under Oracle8i after the migration. Typically, tablespaces
that are taken offline by using an ALTER TABLESPACE OFFLINE IMMEDIATE or
ALTER TABLESPACE OFFLINE TEMPORARY statement require media recovery.
After migration, tablespaces that are offline when you open the Oracle8i database remain in Oracle7 database file format. The offline tablespaces can be brought online at any time after migration, and the file headers are converted to Oracle8i format at that time. In addition, if you want to avoid large restores in the event of a failure, then you can make all tablespaces except SYSTEM and ROLLBACK offline normal; then, you can restore only the data files for SYSTEM and ROLLBACK if you need to run another migration.
To check for a user with the name OUTLN, issue the following SQL statement:
SELECT USERNAME FROM DBA_USERS WHERE USERNAME = 'OUTLN';
If you do not have a user named OUTLN, then zero rows are
selected.
To check for a role with the name OUTLN, issue the following SQL statement:
SELECT ROLE FROM DBA_ROLES WHERE ROLE = 'OUTLN';
If you do not have a role named OUTLN, then zero rows are selected.
To check for a user with the name MIGRATE, issue the following SQL statement:
SELECT USERNAME FROM DBA_USERS WHERE USERNAME = 'MIGRATE';
If you do not have a user named MIGRATE, then zero rows
are selected.
To check for a role with the name MIGRATE, issue the following SQL statement:
SELECT ROLE FROM DBA_ROLES WHERE ROLE = 'MIGRATE';
If you do not have a role named MIGRATE, then zero rows are selected.
To check the OPTIMAL setting for the SYSTEM rollback segment, issue the following SQL statement:
SELECT A.USN, A.NAME, B.OPTSIZE FROM V$ROLLNAME A, V$ROLLSTAT B WHERE A.USN = B.USN AND NAME = 'SYSTEM';
Your output should be similar to the following:
USN NAME OPTSIZE ---------- ------------------------------ ---------- 0 SYSTEM 1 row selected.
If there is a value in the OPTSIZE column, then issue the following SQL statement to set optimal to NULL:
ALTER ROLLBACK SEGMENT SYSTEM STORAGE (OPTIMAL NULL);
You can reset OPTIMAL when migration is complete.
The following is an example of the ALTER ROLLBACK SEGMENT statement:
ALTER ROLLBACK SEGMENT system STORAGE (MAXEXTENTS 121);
You may need more space in the SYSTEM rollback segment to complete the migration successfully. If there is not enough space in your SYSTEM rollback segment, then you may encounter errors when you run the Migration utility in the Oracle7 environment.
If the required release of SQL*Net is not installed, complete the following steps to install it:
If you are installing SQL*Net release 2.3.2.1.12, navigate to the following directory on the CD-ROM:
\PATCHES\SQLNET\232112\NT_X86\INSTALL
If you are installing SQL*Net release 2.3.3.0.3, navigate to the following directory on the CD-ROM:
\PATCHES\SQLNET\23303\NT_X86\INSTALL
Note: If you cannot install the required SQL*Net release, contact Oracle Support Services. |
To prepare the cluster for the Oracle8i Enterprise Edition software, perform the following steps on each node in the cluster:
C:> SVRMGR23 SVRMGR> CONNECT INTERNAL SVRMGR> SHUTDOWN IMMEDIATE
The Services dialog box appears.
To start the registry:
The Registry Editor window appears.
C:\> OCOPY \\.\PHYSICALDRIVEN NEW_FILE
where:
For example, to backup the logical partition for a system tablespace to a file, enter:
C:\> OCOPY \\.\OPS_SYSTEM1 OPS_SYSTEM1
Use your existing partitions and symbolic link names. Oracle Corporation recommends you backup logical partitions to files with the same name. For example, backup \\.\OPS_SYSTEM1 to a file named OPS_SYSTEM1.
See::
Oracle8i Administrator's Guide for Windows NT, Chapter 11, Backing Up and Recovering Database Files, on using OCOPY. |
During installation, software components are installed on
the node from which Oracle Universal Installer is run and pushed to the
selected nodes in the cluster. The Oracle Universal Installer installs
Oracle Parallel Server only if a cluster is detected.
Perform the following step before running Oracle Universal
Installer:
From the node where you intend to run the installer, verify you have administrative privileges to the other nodes. Enter the following command for each node that is a part of the cluster:
NET USE \\HOST_NAME\C$
where host_name is the host name defined in the DefinedNodes
registry value for Cluster Manager.
A successful connection results in the following message:
The command completed successfully.
Oracle Corporation recommends using the same user name and
password on each node in a cluster or use a domain user name. If you use
a domain user name, log on under a domain with username and password which
has administrative privileges on each node.
To install Oracle8i Enterprise Edition on one node in the cluster:
See
:
Oracle8i Installation Guide for Windows NT to prepare for installation and start the Oracle Universal Installer. |
If you need help at any screen or want to consult more documentation about the Oracle Universal Installer, then click the Help button to open the online help.
Note: You must install the new 8.1 release in an Oracle home separate from the Oracle7 release. |
After you make your selection, click Next.
If you chose Custom, the Available Product Components screen appears. Complete the following steps:
Make sure you install Oracle Utilities to install the Migration
utility.
Make sure you install all of the options you installed with the Oracle7 database, assuming you do not want to discontinue use of a particular option. For example, if you installed Oracle replication in Oracle7, then you should install it in Oracle8i.
The node on which you are running the installation is
selected whether or not you select it.
If the list of nodes does not include nodes you expect,
the vendor-supplied clusterware is either not running, or not properly
configured.
Each instance has a SID that is comprised of the common prefix entered here and a thread ID that is automatically generated. For example, if OP is entered, the first instance in the cluster is given a SID of OP1, and the second instance is given a SID of OP2.
Complete any remaining screens until you reach the Summary page. Click the Help button if you need help for a certain screen.
During installation no message appears to indicate components are installed to the other nodes.
To prepare the cluster for the Oracle7 migration process, perform the following steps:
To start the registry:
The Registry Editor window appears.
Complete the steps in the Oracle7 environment to migrate an Oracle7 source database to Oracle8i using the Migration utility.
C:> SVRMGR23 SVRMGR> CONNECT INTERNAL SVRMGR> STARTUP
To check your character set, issue the following SQL statement:
SELECT * FROM V$NLS_PARAMETERS WHERE PARAMETER = 'NLS_LANGUAGE' OR PARAMETER = 'NLS_TERRITORY' OR PARAMETER = 'NLS_CHARACTERSET';
You use all three values returned by this query to set NLS_LANG. For example, suppose your output for the query above is the following:
PARAMETER VALUE --------------------- --------------------------- NLS_LANGUAGE AMERICAN NLS_TERRITORY AMERICA NLS_CHARACTERSET US7ASCII
In this case, set NLS_LANG to the following at an MS-DOS command prompt:
AMERICAN_AMERICA.US7ASCII
See:
Oracle8i National Language Support Guide for information about setting NLS_LANG. |
To check if you have DBA privileges, query the DBA_ROLE_PRIVS static data dictionary view. For example, if you are connected as user SYSTEM, then enter the following SQL statement:
SELECT * FROM DBA_ROLE_PRIVS WHERE GRANTEE = 'SYSTEM';
You have DBA privileges if 'DBA' is listed in the GRANTED_ROLE column for the user. If you do not have DBA privileges, then connect as a user who does.
SPOOL V7FILES.LOG; SELECT MEMBER FROM V$LOGFILE; SELECT NAME FROM V$DATAFILE; SELECT VALUE FROM V$PARAMETER WHERE NAME = 'CONTROL_FILES'; SPOOL OFF;
The V7FILES.LOG spool file lists all of the files that you must back up in Step 8.
C:> SVRMGR23 SVRMGR> CONNECT INTERNAL SVRMGR> SHUTDOWN IMMEDIATE
Note: If you do not shut down the Oracle7 database before migration starts, then the Migration utility will stop and display an error message. |
Caution: If you encounter any problems with the migration, you will need to restore the database from this backup. Make sure you back up your database now as a precaution. |
See:
The Oracle7 Server Administrator's Guide for information about backing up your Oracle7 database. |
Complete the following steps to run the Migration Utility:
C:\> MIG PFILE=ORACLE7_HOME\DATABASE\INIT_PARAM_FILE
Replace the ORACLE7_HOME variable with the complete
path to the Oracle7 Oracle home directory. Also, replace the INIT_PARAM_FILE
variable with the full name of the initialization parameter file for the
Oracle7 database.
For example, if the ORACLE7_HOME is C:\ORANT and the INIT_PARAM_FILE is INITORCL.ORA, then enter the following:
C:\> MIG PFILE=C:\ORANT\DATABASE\INITORCL.ORA
You can enter MIG with the PFILE option only to
run the Migration utility with a default set of options, or you can enter
MIG
followed by more selected options.
See:
Oracle8i Migration guide, "Review Migration Utility Command-Line Options" for information about MS-DOS command line options. Oracle Corporation recommends using the spool option, because it makes it easier to check your migration results when the migration is complete. |
Oracle7 Release... | Enter at the MS-DOS Command Prompt... |
---|---|
7.1 |
C:\> ORADIM71 -DELETE -SID SID |
7.2 |
C:\> ORADIM72 -DELETE -SID SID |
7.3 |
C:\> ORADIM73 -DELETE -SID SID |
For example, if your Oracle7 release is release 7.3.4 and your SID is ORCL, then enter the following at the MS-DOS command prompt:
C:\> ORADIM73 -DELETE -SID ORCL
C:\> ORADIM -NEW -SID SID -INTPWD PASSWORD -MAXUSERS USERS -STARTMODE AUTO -PFILE ORACLE_HOME\DATABASE\INITSID.ORA
This syntax includes the following variables:
For example, if your SID is ORCL, your PASSWORD is TWxy579, the maximum number of USERS is 10, and the ORACLE_HOME directory is C:\ORA81, then enter the following command:
C:\> ORADIM -NEW -SID ORCL -INTPWD TWxy579 -MAXUSERS 10 -STARTMODE AUTO -PFILE C:\ORA81\DATABASE\INITORCL.ORA
Check the results after running the Migration utility. The Migration utility generates informational messages and echoes its progress as it runs the MIGRATE.BSQ script.
See:
If the Migration utility exits with an ORA- error, check the Oracle8i Migration guide, Appendix A, "Troubleshooting Migration Problems" for information about the error and the actions to perform to resolve the problem. |
The Migration utility creates a convert file that contains
the information of the Oracle7 control file. Later in the migration process,
the convert file is used by ALTER DATABASE CONVERT to create a new control
file in Oracle8i.
The default location is ORACLE_HOME\RDBMS in the Oracle8i environment, and the default file name in this directory is CONVERT.ORA.
Caution: Do not open the Oracle7 database, which was shut down by the Oracle8i Migration utility. To ensure data file version integrity, the SCNs in the dictionary, the convert file, and file header must all be consistent when the database is converted to Oracle8i. If the Oracle7 database is opened after running the Migration utility, then the SCN check will fail when the database is converted to Oracle8i, and an ORA-1211 error will be displayed, stating "Oracle7 data file is not from migration to Oracle8". Therefore, if the Oracle7 database is opened, then you must rerun the Migration utility, starting at Step 6. |
After you successfully run the Migration utility, perform a cold backup of the Oracle7 database. This backup serves the following purposes:
See::
Oracle8i Migration guide, "Abandoning the Migration". |
See:
The Oracle7 Server Administrator's Guide for information about performing backup and restore operations on your Oracle7 database. |
In addition, perform a backup of the entire Oracle7 software distribution, including the Oracle7 home directory. Make sure the backup includes the following:
To complete the Oracle Parallel Server migration, perform the following steps:
This disables the version 7 OSD layer.
This enables the release 8.1 OSD layer.
1. Choose Start > Programs > Oracle Installation Products
> Oracle Home Selector.
2. Select the Oracle8i home from the drop-down list.
C:> CD ORACLE7_HOME/BIN C:> ORADIM73 -DELETE - SID SID
C:> ORADIM -NEW -SID SID -INTPWD INTERNAL_PWD -STARTMODE AUTO -PFILE DRIVE:\PATH\INITSID.ORA
Complete the following migration steps in the Oracle8i environment:
You will issue the ALTER DATABASE CONVERT statement in Step
10.
This statement automatically creates new control files. If you do not use
the CONTROL_FILES parameter, then this statement uses the control file
names of your pre-migration database (derived from the CONVERT file) and
returns an error if the control files already exist. Therefore, in this
case, you must remove or rename the control files.
However, if you use the CONTROL_FILES initialization parameter
to specify new control file names, then the ALTER DATABASE CONVERT statement
creates the new control files with the names you specify, and you do not
need to remove the old control files. For a complete list of your existing
control files, check the V7FILES.LOG spool file you created.
Control files are considerably larger in Oracle8i
than in Oracle7. For example, Oracle7 control files in the hundreds of
kilobytes may expand into tens of megabytes in Oracle8i. The larger
size in Oracle8i results from the storage of more information in
the control file, such as backup and tablespace records. This size increase
could be important if a control file is on a raw device or if its available
disk space is restricted.
Note: The CONTROL_FILES initialization parameter specifies one or more names of control files, separated by commas. Oracle Corporation recommends using multiple files on different devices or mirroring the file at the operating system level. See Oracle8i Administrator's Guide for more information. |
The default password file is ORACLE_HOME\DATABASE\PWDSID.ORA. where SID is your Oracle instance ID.
See
:
Oracle8i Migration guide,"Setting the COMPATIBLE Initialization Parameter" for information. |
See:
Oracle8i Migration guide, Appendix B, "Changes to Initialization Parameters" for lists of new, renamed, and obsolete parameters, andOracle8i Parallel Server Concepts and Administration for more information about obsolete Oracle Parallel Server initialization parameters. |
See:
Oracle8i Migration guide, "The DB_DOMAIN Parameter" for more information about setting this initialization parameter. |
Initialization Parameter | Change Setting To |
---|---|
BACKGROUND_DUMP_DEST |
ORACLE_BASE\ORADATA\DB_NAME |
USER_DUMP_DEST |
ORACLE_BASE\ORADATA\DB_NAME\ARCHIVE |
In the settings, substitute the complete ORACLE_BASE path for ORACLE_BASE and substitute the database name for DB_NAME.
Make sure you save all of the files you modified after making
these adjustments.
Set the DB_NAME initialization parameter in the initialization parameter file to the Oracle8i database name.
SVRMGR> CONNECT INTERNAL
SVRMGR> STARTUP NOMOUNT
Caution: Starting the database instance in any other mode might corrupt the database. |
You may need to use the PFILE option to specify the location
of your initialization parameter file.
You may see error messages listing obsolete initialization parameters. If so, then make a note of the obsolete initialization parameters and continue with the migration normally. Then, remove the obsolete initialization parameters the next time you shut down the database (Step 18).
SVRMGR> ALTER DATABASE CONVERT;
Successful execution of this statement is the "point of
no return" to Oracle7 for this database. However, if necessary, you can
restore the Oracle7 database from backups.
If errors occur during this step, then correct the conditions
that caused the errors and rerun the Migration utility. Restart at Step
1,
"Startup your Oracle7 database:" Otherwise restore the backup you performed
after you ran the Migration utility.
See:
Oracle8i Migration guide, "Problems at the ALTER DATABASE CONVERT Statement" for information about common errors encountered at this step and the actions required to resolve them. |
SVRMGR> ALTER DATABASE OPEN RESETLOGS;
When the Oracle8i database is opened, all rollback
segments that are online are converted to the new Oracle8i format.
If you encounter errors when you issue this statement, then start the migration process over from the beginning, ensuring the database is not opened in the Oracle7 environment after the Migration utility completes. Make sure you completed all of the pre-migration steps.
SVRMGR> SPOOL CATOUTM.LOG
If you want to see the output on your screen of the scripts you will run, then you also can issue a SET ECHO ON statement:
SVRMGR> SET ECHO ON
SVRMGR> @U0703040.SQL
The U0703040.SQL script is the database conversion
script for all 7.1, 7.2, and 7.3 releases supported by the Migration utility.
The U0703040.SQL script creates and alters certain system tables
and drops the MIGRATE user. 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.
If you encounter any problems when you run this script,
or any of the scripts in the remaining steps, then correct the cause(s)
of the problems and rerun the script. You can rerun any of the scripts
described in this chapter as many times as necessary.
See:
Oracle8i Migration guide, "Running Scripts" for information about the types of errors to look for when you run a script. |
SVRMGR> @CATREP.SQL
SVRMGR> @R0703040.SQL
This R0703040.SQL script performs a post-CATREP.SQL Oracle replication related upgrade.
SVRMGR> @CATPARR.SQL
SVRMGR> @UTLRP.SQL
The UTLRP.SQL script recompiles all existing PL/SQL
modules that were previously in an INVALID state, such as packages, procedures,
types, and so on. These actions are optional; however, they ensure that
the cost of recompilation is incurred during installation rather than in
the future.
Oracle Corporation highly recommends performing this optional step.
SVRMGR> SPOOL OFF
Then, check the spool file and verify that the packages
and procedures compiled successfully. You named the spool file in Step
12;
the suggested name was CATOUTM.LOG.
You should look for errors that alert you to insufficient
space, and for errors that alert you that a script failed to run. If you
see these types of errors, then your migration may not be completely successful.
However, you typically can ignore errors about the failure to alter or
drop an object that does not exist.
If you specified SET ECHO ON, then you may want to SET ECHO OFF now:
SVRMGR> SET ECHO OFF
C:> SVRMGRL SVRMGR> CONNECT INTERNAL SVRMGR> SHUTDOWN IMMEDIATE
Caution: Use SHUTDOWN NORMAL or SHUTDOWN IMMEDIATE. Do not use SHUTDOWN ABORT. |
Executing this clean shutdown flushes all caches, clears
buffers, and performs other DBMS housekeeping activities. These measures
are an important final step to ensure the integrity and consistency of
the newly migrated Oracle8i database.
The COMPATIBLE initialization parameter controls the compatibility
level of your database. Set the COMPATIBLE initialization parameter in
your initialization parameter file based on the compatibility level you
want for your migrated database.
See:
Oracle8i Migration guide, "Setting the COMPATIBLE Initialization Parameter" for information. |
Also, if you encountered a message listing obsolete initialization parameters when you started the database in Step 9, then remove the obsolete initialization parameters from the initialization parameter file now.
Complete the post-migration procedures listed in the table
below. These are described in Oracle8i Migration
guide, Chapter 8, "After Migrating or Upgrading the Database".
This section guides you through the process of upgrading your database to the new Oracle8i release.
See:
Oracle8i Migration guide for important information on upgrade paths. |
Perform the following steps on one node only:
See:
Oracle8i Migration guide, Appendix F, "SQL*Net and Net8 Considerations for Migrations and Upgrades" for information. |
See:
Oracle8i Migration guide, "The DB_DOMAIN Parameter" for more information about setting this initialization parameter. |
C:> SVRMGRL SVRMGR> CONNECT INTERNAL
Note: If you are upgrading from an 8.1 release, then you do not need to perform this check because the OUTLN user should have been created when you installed the previous 8.1 release. Therefore, if you are upgrading from an 8.1 release, then go to Step 5 now. Do not drop the OUTLN user if you are upgrading from a previous 8.1 release. |
To check for a user with the name OUTLN, enter the following SQL statement:
SELECT USERNAME FROM DBA_USERS WHERE USERNAME = 'OUTLN';
If you do not have a user named OUTLN, then zero rows are
selected.
To check for a role with the name OUTLN, enter the following SQL statement:
SELECT ROLE FROM DBA_ROLES WHERE ROLE = 'OUTLN';
If you do not have a role named OUTLN, then zero rows are selected.
Upgrading to a new release requires more space in your SYSTEM
tablespace and in the tablespaces where you store rollback segments. If
you have enough space on your system, then consider adding more space to
these tablespaces. In general, you need at least 20 MB of free space in
your SYSTEM tablespace to upgrade. If you run out of space during the upgrade,
then you will need to perform the upgrade again.
The following SQL statement illustrates how to add more space to a tablespace:
ALTER TABLESPACE SYSTEM ADD DATAFILE 'C:\PATH/HOME/USER1/MOUNTPOINT/ORADATA/DB1/SYSTEM02.DBF' SIZE 20M;
SPOOL V8FILES.LOG; SELECT MEMBER FROM V$LOGFILE; SELECT NAME FROM V$DATAFILE; SELECT VALUE FROM V$PARAMETER WHERE NAME = 'CONTROL_FILES'; SPOOL OFF;
The V8FILES.LOG spool file lists all of the files that you must back up in Step 9 in the next section.
To prepare the cluster for the new version of the Oracle8i Enterprise Edition software, perform the following steps on each node in the cluster:
C:> SVRMGRL SVRMGR> CONNECT INTERNAL SVRMGR> SHUTDOWN IMMEDIATE
The Services dialog box appears.
To start the registry:
The Registry Editor window appears.
C:\> OCOPY \\.\PHYSICALDRIVEN NEW_FILE
where:
For example, to backup the logical partition for a system tablespace to a file, enter:
C:\> OCOPY \\.\OPS_SYSTEM1 OPS_SYSTEM1
Use your existing partitions and symbolic link names. Oracle Corporation recommends you backup logical partitions to files with the same name. For example, backup \\.\OPS_SYSTEM1 to a file named OPS_SYSTEM1.
See::
Oracle8i Administrator's Guide for Windows NT, Chapter 11, Backing Up and Recovering Database Files, on using OCOPY. |
Caution: If you encounter any problems with the upgrade, then you will need to restore the database from this backup. Therefore, make sure you back up your database now as a precaution. |
See:
Oracle8i Backup and Recovery Guide for more information about backing up a release 8.1 database, or see Oracle8 Backup and Recovery Guide for information about backing up a release 8.0 database. |
If you plan to use separate Oracle home directories for
your current release and the new release to which you are upgrading, then
you do not need to deinstall your current release.
During installation, software components are installed on
the node from which Oracle Universal Installer is run and pushed to the
selected nodes in the cluster. The Oracle Universal Installer installs
Oracle Parallel Server only if a cluster is detected.
To install, perform the following steps:
On one node, follow from Step 1,,
to Step 8, to install the Release
8.1 Oracle8i Enterprise Edition.
To prepare the cluster for the upgrade process, perform the following steps:
1. Double-click the Services icon in the Control Panel
window. The Services dialog box appears.
4. Click Close to dismiss Services dialog box.
1. Choose Start > Programs > Oracle Installation Products
> Oracle Home Selector.
2. Select the Oracle8i home from the drop-down list.
Complete the following steps to upgrade:
The Services dialog box appears.
Oracle Release... | Enter at the MS-DOS Command Line... |
---|---|
8.0 |
C:\> ORADIM80 -DELETE -SID SID |
8.1 |
C:\> ORADIM -DELETE -SID SID |
For example, if your Oracle release is release 8.1.5 and your SID is ORCL, then enter the following at the MS-DOS command prompt:
C:\> ORADIM -DELETE -SID ORCL
C:\> ORADIM -NEW -SID SID -INTPWD PASSWORD -MAXUSERS USERS -STARTMODE AUTO -PFILE ORACLE_HOME\DATABASE\INITSID.ORA
This syntax includes the following variables:
For example, if your SID is ORCL, your PASSWORD is TWxy579, the maximum number of USERS is 10, and the ORACLE_HOME directory is C:\ORA81, then enter the following command:
C:\> ORADIM -NEW -SID ORCL -INTPWD TWxy579 -MAXUSERS 10 -STARTMODE AUTO -PFILE C:\ORA81\DATABASE\INITORCL.ORA
See::
Oracle8i Migration guide, Appendix B, "Changes to Initialization Parameters" for lists of new, renamed, and obsolete parameters, and Oracle8i Parallel Server Concepts and Administration for more information about obsolete Oracle Parallel Server initialization parameters. |
Make sure you save all of the files you modified after making these adjustments.
C:> SVRMGRL SVRMGR> CONNECT INTERNAL
SVRMGR> STARTUP RESTRICT
You may need to use the PFILE option to specify the location
of your initialization parameter file.
You may see error messages listing obsolete initialization parameters. If so, then make a note of the obsolete initialization parameters and continue with the upgrade normally. Then, remove the obsolete initialization parameters the next time you shut down the database (Step 14).
SVRMGR> SPOOL CATOUTU.LOG
If you want to see the output of the script you will run on your screen, then you also can issue a SET ECHO ON statement:
SVRMGR> SET ECHO ON
To run a script, enter the following:
SVRMGR> @UOLD_RELEASE.SQL
See:
Oracle8i Migration guide,"Upgrade Paths" for more information on the upgrade paths and scripts. |
Note: If the old release you had installed prior to upgrading is not listed, see the README files in the new installation for the correct upgrade script to run. |
Make sure you follow these guidelines when you run the script:
The script you run creates and alters certain dictionary
tables. It also runs the CATALOG.SQL and CATPROC.SQL
scripts that come with the release to which you are upgrading, which create
the system catalog views and all the necessary packages for using PL/SQL.
If you encounter any problems when you run the script, or
any of the scripts in the remaining steps, then correct the causes of the
problems and rerun the script. You can rerun any of the scripts described
in this chapter as many times as necessary.
See:
Oracle8i Migration guide, "Running Scripts" for information about the types of errors to look for when you run a script. |
You may encounter a series of messages similar to the following during the upgrade:
ORA-00604: error occurred at eecursive SQL level 1 ORA-00001: unique constraint (SYSTEM.AQ$_QUEUES_CHECK) violated ORA-06512: at "SYS.DBMS_AQADM", line 2023 ORA-06512: at line 2
You can ignore these messages.
SVRMGR> @CATPARR.SQL
SVRMGR> SPOOL OFF
Then, check the spool file and verify that the packages
and procedures compiled successfully. You named the spool file CATOUTU.LOG.
Correct any problems you find in this file.
If you specified SET ECHO ON, then you may want to SET ECHO OFF now:
SVRMGR> SET ECHO OFF
SVRMGR> SHUTDOWN IMMEDIATE
Caution: Use SHUTDOWN NORMAL or SHUTDOWN IMMEDIATE. Do not use SHUTDOWN ABORT. |
Executing this clean shutdown flushes all caches, clears
buffers, and performs other DBMS housekeeping activities. These measures
are an important final step to ensure the integrity and consistency of
the newly upgraded Oracle8i database.
Also, if you encountered a message listing obsolete initialization
parameters when you started the database in Step 8,
then remove the obsolete initialization parameters from the initialization
parameter file now.
Your database and Oracle Parallel Server are now upgraded
to the new 8.1 release.
Caution: If you retain the old Oracle software, then never start the upgraded database with the old software. Only start the database with the executables in the new release 8.1 installation directory. Also, before you remove the old Oracle environment, make sure you relocate any data files in that environment to the new Oracle8i environment. See the Oracle8i Administrator's Guide for information about relocating data files. |
Perform the following steps to complete the upgrade for Oracle Parallel Server:
1. Double-click the Services icon in the Control Panel
window. The Services dialog box appears.
2. Select an Oracle8i service.
4. Click Close to dismiss Services dialog box.
See::
To upgrade additional components, such as Java and the Advanced Queuing (AQ) option, see "Upgrading Specific Components" in Oracle8i Migration guide. |
Complete the post-upgrade procedures listed in the table
below. These are described in the Oracle8i
Migration guide, Chapter 8, "After Migrating or Upgrading the Database".
Oracle Parallel Server for Windows NT supports multiple Oracle
homes, but all the Oracle homes must contain the same release of the Oracle8i
Enterprise Edition and Oracle Parallel Server.
Windows NT requires that each node have only one copy of
the vendor-supplied Operating System Dependent layer active.
|
![]() Copyright © 2000 Oracle Corporation. All Rights Reserved. |
|