Instructions For Installation of Oracle9i (Release 1) and Patches
Instructions For Installation of Oracle9i (Release 1) and Patches
April 2003
Note: This is a draft version of the installation instructions. If you have comments or problems
with the instructions, please contact OIIT Customer Services at [email protected].
April 2003 Page ii
Table of Contents
Introduction ................................................................................................................... 1
Overview ......................................................................................................................................... 1
Rationale ......................................................................................................................................... 1
Assumptions .................................................................................................................................. 1
Objective ......................................................................................................................................... 1
Target Audience ............................................................................................................................. 1
Document Organization................................................................................................................. 2
Graphics and Conventions........................................................................................... 3
Graphics.......................................................................................................................................... 3
Conventions ................................................................................................................................... 4
Support .......................................................................................................................... 4
OIIT Customer Services ................................................................................................................ 4
Verifying Installation Requirements ............................................................................ 5
Section Overview ........................................................................................................................... 5
Time Estimate................................................................................................................................. 5
Check Hardware Requirements.................................................................................................... 5
Operating System Version Requirements................................................................................... 5
Operating System Patches Required........................................................................................... 6
Preparing to Start the Installation Process................................................................. 7
Section Overview ........................................................................................................................... 7
Time Estimate................................................................................................................................. 7
1. Mount CDs ......................................................................................................................... 7
2. Create Area for Disk Contents......................................................................................... 8
3. Copy Disk Contents to Correct Directory....................................................................... 8
4. Establish Network Connection ........................................................................................ 9
5. Log On................................................................................................................................ 9
6. Verify Environment Variables .......................................................................................... 9
7. Install Java Runtime Environment (JRE)...................................................................... 10
Installing Oracle9i Version 9.0.1.0 ............................................................................. 11
Section Overview ......................................................................................................................... 11
Time Estimate............................................................................................................................... 11
Installing the Software with the Oracle Universal Installer ................................ 11
1. Start Oracle Installer ....................................................................................................... 11
2. Respond to Welcome ..................................................................................................... 11
3. Establish File Locations................................................................................................. 11
4. Select Product ................................................................................................................. 11
5. Select Installation Type .................................................................................................. 12
6. Install Minimum Components........................................................................................ 12
7. Select Operating System Groups.................................................................................. 12
8. Upgrade/Migrate Existing Database.............................................................................. 12
9. Do Not Create Database ................................................................................................. 12
Introduction
Overview This document provides instructions for the OIIT Oracle9i upgrade
path. More detailed explanations are available in supporting
documentation from Oracle. The complete reference guide,
Oracle9i Installation Guide Release (9.0.1.0.0) for Unix Systems, is
located online at http://docs.oracle.com/.
This document defines steps required for both HP-UX and Solaris.
Assumptions These instructions assume that you are starting from Oracle 8.1.6.3.
Objective These instructions guide you through the process of installing the
following:
• Oracle9i Release 9.0.1.0.0
• Support
• Recompiling Banner
• Regenerating Forms
Exercise caution.
Time estimate.
Items that you select or “click” are shown in bold small caps like the
following example:
Double click FONTS, click the FONT DATABASE button, and click ADD.
Support
OIIT Customer Report problems or request support by contacting OIIT Customer
Services Services in one of the following ways:
• Web http://www.usg.edu/customer_services
• E-mail [email protected]
Time Estimate The estimated time to prepare for the install is 30 minutes.
Check Hardware Check that your machine has the following minimum resources:
Requirements
OS Prerequisites Version 9.0.1
Operating System Check that you have the proper operating system version required to
Version Requirements install Oracle9i:
Operating System Verify that the correct Operating System patches have been
Patches Required successfully applied. Check with your system administrator to
ensure that the latest patches recommended by OIIT Enterprise
Infrastructure Services (EIS) have been applied to the HP-UX
Operating System. EIS anticipates a mid-to-late April 2003 patchset
release.
PHCO_23792 PHCO_24148
PHKL_24268 PHKL_24729
PHKL_25475 PHKL_25525
PHNE_24715 PHSS_23670
PHSS_24301 PHSS_24303
PHSS_24627 PHSS_22868
Time Estimate The estimated time to mount the CDs is 30 minutes or less.
1. Mount CDs The software is provided on three CDROMS for HPUX and three for
Solaris.
Mount the CDs with the following mount command for your system:
HPUX> /usr/sbin/pfs_mount /dev/cdrom /SD_CDROM
Solaris> /mount –r –F hsfs device_name /cdrom
Use a system editor to add the following line to the /etc/pfs_fstab file
Syntax
<device_file<mount_point<filesystem_type<translation_method
Example:
/dev/dsk/c5t2d0 /SD_CDROM pfs-rrip xlat=unix 0 0
2. Create Area for You can choose to install directly from CD-ROM, or copy to disk.
Disk Contents For simplicity, we assume that all the disks are copied to a file
system that is not in use by other applications. For further
instructions on mounting the CD-ROMs, consult the Oracle9i
Installation Release Guide.
Create a staging area for the contents of each CD. You’ll need about
2GB of space for all the CD contents.
Example: /oracle/stage/
Repeat the mount step and the copy step for all disks.
6. Verify Environ- Verify that the following environment variables are set correctly
ment Variables before attempting to start the Oracle Installer:
HP-UX Solaris
DISPLAY DISPLAY
ORACLE_HOME ORACLE_HOME
ORACLE_SID ORACLE_SID
ORA_NLS33 ORA_NLS33
ORACLE_BASE ORACLE_BASE
TMPD **(See note) TMPD **(See note)
SHLIB_PATH LD_LIBRARY_PATH
PATH PATH
**If not enough space (1/2 gig) in /tmp, set the following variables
to point to a location that has sufficient space available:
Ex. TEMP setenv TEMP /u01/app/oracle/tmp
7. Install Java The Oracle Universal Installer automatically installs the Oracle-
Runtime supplied version of the Java Runtime Environment (JRE). This
Environment
(JRE)
version is required to run the installer and several other Oracle
assistants.
This section provides the selections you make for each screen after
the installer begins.
Example:
/oracle/stage/9.0.1/Disk1/stage/products.jar
Example:
/oracle/product/9.0.1
Choose NEXT.
Choose NEXT.
Choose NEXT.
Choose NEXT.
Choose INSTALL.
Correcting Disk Error If the changing disk dialog appears, then the contents of the
CDROM media were not copied correctly.
Try to supply the media location on disk for the next CDROM.
Otherwise, restart the install after copying the media exactly as
described earlier.
Make sure that you have backup copies of your ORAENV and
CORAENV files.
Connect as the root in another terminal session and run the script
specified on the screen named root.sh in the Oracle Home location.
Choose NEXT.
Choose EXIT.
Examples Example commands and values are given to clarify the instructions.
Your install will have different values for some of these variables.
During your install, substitute your values for these values as
needed.
Assumptions The media for the release have already been installed.
2. Set Environment Ensure that the current Oracle environment variables are set
Variables correctly during initial database configuration:
HPUX Solaris
ORACLE_HOME ORACLE_HOME
ORACLE_SID ORACLE_SID
ORA_NLS33 ORA_NLS33
ORACLE_BASE ORACLE_BASE
TMPD ** TMPD**
SHLIB_PATH LD_LIBRARY_PATH
PATH PATH
** If not enough space (1/2 gig) in /tmp, set the following variables
to point to a location that has sufficient space available:
TEMP setenv TEMP /u01/app/oracle/tmp
TMPDIR setenv TMPDIR /u01/app/oracle/tmp
3. Backup Database Perform a full database backup before performing the upgrade.
4. Turn Archiving Off If you are not running in archivelog mode, skip this section and go to
Step 5.
5. Avoid Running Warning: If you run out of space, you’ll get an error message and
Out of Space have to start the upgrade process over.
Prepare the system rollback segment:
SQL> alter rollback segment system storage
(maxextents 121 next 1M);
6. Compile Invalid Warning: Because the upgrade process will leave objects invalid,
Objects compile all invalid objects before performing the upgrade or you
will have to start the upgrade process over.
The sql script $ORACLE_HOME/rdbms/admin/utlrp.sql will
compile all invalid objects.
$ cd $ORACLE_HOME/rdbms/admin
$ sqlplus /nolog
SQL> connect / as sysdba
SQL> @utlrp.sql
Spool out all invalid objects after running the compile script.
SQL> spool invalid_objects.log
SQL> select * from dba_objects where status =
‘INVALID’;
SQL> spool off
7. Stop Listener Ensure that the listener for the database being upgraded is stopped.
$ lsnrctl
LSNRCTL> stop <listener_name>
8. Check Datafile Ensure that no datafiles need media recovery or are in backup mode:
Status $ sqlplus /nolog
SQL> connect / as sysdba
SQL> select * from v$recover_file;
SQL> select * from v$backup where status!=’NOT
ACTIVE’;
9. Default Ensure that the users sys and system default to the system
Tablespaces tablespace:
SQL> select username, default_tablespace from
dba_users where username in (‘SYS’,’SYSTEM’);
Preparing to Upgrade
1. Init<sid>.ora Copy the init<sid>.ora file to init<sid>.ora.old
Changes
Copy the config<sid>.ora file to config<sid>.ora.old
Example:
TEST:/oracle/product/9.0.1:N
3. Set Environment After you modify the /etc/oratab file for HPUX and
Variables /var/opt/oracle/oratab for Solaris, exit out of the current session as
Oracle and then log back in.
If your .login or .profile file has not been set up to execute the shell
script automatically, you should set it to do so now so that the
environment gets set up properly for the database to be upgraded.
Please verify that the environment variables are set correctly. Any
reference to Oracle directories should reflect the new 9i Oracle
Home.
HPUX Solaris
4. Create Database Create a symbolic link to the parameter and config files that is
Links specific to the database being upgraded or created:
$ cd $ORACLE_HOME/dbs
$ ln –s
/oracle/admin/<database_name/pfile/init<sid>.ora .
$ ln –s
/oracle/admin/<database_name/pfile/config<sid>.ora .
4. Run Upgrade Run the following upgrade script for the new Oracle version
Script installed:
SQL>start u0801060.sql
Compare the current invalid objects with the invalid objects before
performing the upgrade.
1. Verify Verify that the following environment variables are set correctly
Environment before attempting to install the patch.
Variables
HPUX Solaris
DISPLAY DISPLAY
ORACLE_HOME ORACLE_HOME
ORACLE_SID ORACLE_SID
ORA_NLS33 ORA_NLS33
ORACLE_BASE ORACLE_BASE
TMPD ** TMPD **
SHLIB_PATH LD_LIBRARY_PATH
PATH PATH
** If not enough space (1/2 gig) in /tmp, set the following variables
to point to a location that has sufficient space available:
2. Download the Start the ftp session from your staging directory.
Patch Files
Connect to ftp.usg.edu using your institution’s ID and password.
At the conclusion of the download, the zip patch files should reside
in the staging directory.
3. Unzip the Files If your machine doesn’t have an unzip utility, download it from
Oracle via an Oracle Metalink account. Get the file from
http://updates.oracle.com/unzips/unzips.html. Use your Metalink
account to download the unzip utility.
4. Shut Down Shut down the existing Oracle Server previously upgraded to release
Existing 9.0.1.0.0.
Databases
5. Shutdown Stop all listeners and other processes running in or against the
Listeners ORACLE_HOME to be installed into.
6. Start Oracle Start the Oracle Installer from the hard drive:
Installer
Example:
% cd $ORACLE_HOME/bin
% runInstaller
Choose NEXT.
Verify the products listed and then click on the INSTALL button.
2. Start Database After the patch has been installed successfully, you need to startup
restrict the database.
Example:
SQLPLUS> startup restrict
3. Run catpatch.sql As a user with sysdba privileges, run the following new script that
calls the catalog and catalog process scripts to upgrade the data
dictionary of the 9i database.
$ORACLE_HOME/rdbms/admin/catpatch.sql
You can also download these additional security patches at this time,
although you should not apply these patches until you complete the
upgrade.
• p2540219_9014_H64.zip
• p2620726_9014_HP64.zip
• p2642117_9014_HP64.zip
• p2642267_9014_HP64.zip
• p2642439_9014_HP64.zip
• p2517300_9014_SOLARIS.zip
You can also download these additional security patches at this time,
although you should not apply these patches until you complete the
upgrade.
• p2620726_9014_SOLARIS.zip
• p2642117_9014_SOLARIS.zip
• p2642267_9014_SOLARIS.zip
• p2642439_9014_SOLARIS.zip
At the conclusion of the download, the zip patch files should reside
in the staging directory.
2. Check System Make sure that you have 100M of free system tablespace.
Tablespace
Verify that system tablespace is the default tablespace for sys and
system.
3. Unzip the Files Unzip the files. If your machine doesn’t have an unzip utility,
download it from Oracle via an Oracle Metalink account. Get the
file from http://updates.oracle.com/unzips/unzips.html. Use your
Metalink account to download the unzip utility.
4. Shutdown Shut down the existing Oracle Server previously upgraded to release
Existing 9.0.1.3.0.
Databases
5. Shutdown Stop all listeners and other processes running in or against the
Listeners ORACLE_HOME to be used for the install.
Example:
% cd $ORACLE_HOME/patches/p2517300/Disk1
% runInstaller
The products file will be read and the installer will load the product
definitions. The products to be loaded will be displayed.
Example:
/oracle/stage/9.0.1/patches/p2517300/Disk1/stage/
products.jar
9. Verify Products Verify that the products listed are correct and then click INSTALL.
2. Start Database To complete the install of this patch set, you need start up each
database associated to the upgraded $ORACLE_HOME.
SQL> startup restrict
SQL> ALTER SYSTEM ENABLE RESTRICTED SESSION;
3. Run catpatch.sql Run the following new script that calls the catalog and catalog
process to update the data dictionary of the 9idatabase.
SQL>spool catpatch
SQL> start $ORACLE_HOME/rdbms/admin/catpatch.sql
4. Update Internal Run the following scripts to update the internal Oracle table.
Oracle Table
SQL>ALTER SYSTEM DISABLE RESTRICTED SESSION;
SQL>CONNECT / AS SYSDBA
SQL>update obj$ set status=5 where type#=29 and
owner#!=0;
SQL> commit;
SQL>shutdown immediate
SQL>startup
5. Validate All Invalid Run the following scripts to validate invalid objects:
Objects
SQL> spool utlrp
SQL> start $ORACLE_HOME/rdbms/admin/utlrp.sql
1. Shut Down Before applying this patch, verify that the listeners to which this
Listeners patch will be applied are shut down properly.
2. Install Patch Make a patch stage directory and unzip the zip file for patch
2540219.
Change directory to the patch stage directory and locate patch.sh.
% cd <patch stage directory>
% sh patch.sh
De-installing if Errors If there are errors or other problems with this patch and you need to
Occur de-install it, you should run the undo_pre<bug number>.sh shell
script that was generated automatically when patch.sh was run.
Use the following syntax if you need to run the de-install script:
% sh undo_pre2559169_9.0.1.4.0.sh
2. Install patch Make a patch stage directory and unzip zip file for patch 2620726.
De-installing if Errors If there are errors or other problem with this patch and you need to
Occur de-install it, you should run the undo_pre<bug number>.sh shell
script that was generated automatically when patch.sh was run.
Use the following syntax if you need to run the de-install script:
% sh undo_pre2715585_9.0.1.4.0.sh
Patch Contents Patch for HP-UX and Solaris includes the following:
• README.txt
• patch.sh
• pesblt.o
• kol.o
• kolf.o
• kokl.o
Solaris patch also includes the following:
• 32#kol.o
• 32#kolf.o
• 32#pesblt.o
1. Shut Down Before applying this patch, verify that all databases that you have
Databases upgraded to 9.0.1.4.0 to which patch will be applied are shut down
properly.
2. Install patch Make a patch stage directory and unzip the zip file for patch
2642117.
De-installing the If there are errors or other problems with this patch and you need to
Patch for Errors de-install it, you should run the undo_pre<bug number>.sh shell
script that was generated automatically when patch.sh was run.
Use the following syntax if you need to run the de-install script:
% sh undo_pre2713614_9.0.1.4.0.sh
• README.txt
• patch.sh
• ldiiftz.o
1. Shut Down Before applying this patch, verify that all databases that you have
Databases upgraded to 9.0.1.4.0 to which patch will be applied are shut down
properly.
2. Install patch Make a patch stage directory and unzip zip file for patch 2642267.
De-installing the If there are errors or other problems with this patch and you need to
Patch for Errors de-install it, you should run the undo_pre<bug number>.sh shell
script that was generated automatically when patch.sh was run.
Use the following syntax if you need to run the de-install script:
% sh undo_pre2713797_9.0.1.4.0.sh
Patch Contents Patch for HP-UX and Solaris includes the following:
• README.txt
• Patch_server.sh
• Patch_client.sh
• ldiinp.o
2. Install patch Make a patch stage directory and unzip the zip file for patch
2642439.
De-installing the If there are errors or other problems with this patch and you need to
Patch for Errors de-install it, you should run the undo_pre<bug number>.sh shell
script that was generated automatically when patch_server.sh was
run.
Use the following syntax if you need to run the de-install script:
% sh undo_pre2742762_9.0.1.4.0.sh
1. Modify the Copy the listener.ora file from the previous home to the new
Listener $ORACLE_HOME/network/admin/ directory.
2. Modify oratab Update the oratab file to represent the new $ORACLE_HOME and
enable automatic startup:
<SID>:new $ORACLE_HOME:Y
Example: TEST:/oracle/product/9.0.1:Y
4. Turn Archiving On If you are not running in archivelog mode, skip this section and go to
the next step.
5. Shutdown and Warning: Shutting down and restarting the database performs
Restart Database necessary housekeeping tasks.
SQL> shutdown immediate
SQL> startup restrict
SQL> shutdown immediate
9. Compile Demo Verify the successful installation of Pro*C, Pro*Cobol, and Micro
Programs Focus Cobol Demo programs.
• Pro*C
Login as the banner software owner.
% cp $ORACLE_HOME/precomp/demo/proc/sample1.pc
% cp $ORACLE_HOME/precomp/demo/proc/demo_proc.mk
% make –f demo_proc.mk sample1
• Pro*Cobol
Login as the banner software owner.
% cp $ORACLE_HOME/precomp/demo/procob/sample1.pco
% cp
$ORACLE_HOME/precomp/demo/procob/demo_procob18.mk
% make –f demo_procob18.mk sample1
• MicroFocus Cobol
Before verifying installation of Procobol
application, set the following environment
variables:
SHLIB_PATH = $ORACLE_HOME/lib32:
$ORACLE_HOME/network/lib32
COBMODE = 32
Login as the banner software owner.
% cd $COBDIR/demo/tictac.cb1
% cob –xv tictac.cb1
10. Remove Obsolete Check that there are no obsolete parameters from the following list
Parameters in init.ora.
Recompiling Banner
Time estimate 5 hours
1. Download .mk Download the following new sctproc.mk and sctprocb.mk files from
Files for Banner the ftp.usg.edu.
HP-UX: banner/prod/phux11/9idb
sctproc901.mk
sctprocb901.mk
Solaris: banner/prod/solaris/91db
sctproc901.mk
sctprocb901.mk
2. Recompile Banner Following installation of the patches, recompile all C and COBOL
Code for Banner.
Regenerating Forms
Regenerate .fmbs You must regenerate all .fmbs under 9i environment.