8i | 9i | 10g | 11g | 12c | 13c | 18c | 19c | 21c | 23c | Misc | PL/SQL | SQL | RAC | WebLogic | Linux
Oracle9i (9.2.0.1.0) Installation On Tru64 5.1b
This article is intended as a brief guide to installing Oracle9i (9.2.0.1.0) on Tru64 5.1b. For additional information and platform variations read the Installation Guide for UNIX Systems.
Download Software
Download Sun's Java Development Kit (JDK 1.3.1).
Download the Oracle installation files from Oracle Technology Network.
Unpack Files
First unzip the files.
gunzip Tru64_9201_Disk1.cpio.gz gunzip Tru64_9201_Disk2.cpio.gz gunzip Tru64_9201_Disk3.cpio.gz gunzip Tru64_9201_Disk4.cpio.gz
Next unpack the contents of the files.
cpio -idcmv < Tru64_9201_Disk1.cpio cpio -idcmv < Tru64_9201_Disk2.cpio cpio -idcmv < Tru64_9201_Disk3.cpio cpio -idcmv < Tru64_9201_Disk4.cpio
You should now have four directories (Disk1, Disk2, Disk3 and Disk4) containing installation files.
Set Kernel Parameters
The current settings can be viewed using the following commands.
/sbin/sysconfig -q ipc /sbin/sysconfig -q proc
If any settings need to be altered they can be added to the end of the "/etc/sysconfigtab" file. The typical alterations are shown below.
vm: new_wire_method = 1 # Set to 0 if <= 5.1b PK2 vm_bigpg_enabled = 0 ipc: shm_max = 4278190080 # (4 GB less 16MB) shm_min = 1 shm_mni = 256 shm_seg = 128 proc: max_per_proc_stack_size = 33554432 per_proc_stack_size = 33554432 per_proc_data_size = 335544320 vfs: fifo_do_adaptive = 0
Check Oracle Support Note: 169706.1 to confirm the current best settings.
Once the file is altered the server must be rebooted to take on the new settings. This can be done using the following command.
shutdown -r now
Setup
Install the Java development kit.
tar -xvjf your_JDK_version -C /usr/opt/
Create the new groups and users.
groupadd oinstall groupadd dba groupadd oper groupadd apache useradd -g oinstall -G dba oracle passwd oracle useradd -g oinstall -G apache apache passwd apache
Create the directories in which the Oracle software will be installed.
mkdir /u01/app mkdir /u01/app/oracle mkdir /u01/app/oracle/product mkdir /u01/app/oracle/product/9.2.0.1.0 chown -R oracle.oinstall /u01/app
Login as root and issue the following command.
xhost +<machine-name>
Login as the oracle user and add the following lines at the end of the ".profile" file.
# Oracle 9i ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE ORACLE_HOME=$ORACLE_BASE/product/9.2.0.1.0; export ORACLE_HOME ORACLE_TERM=xterm; export ORACLE_TERM PATH=$PATH:$ORACLE_HOME/bin:/usr/opt/java131/bin; export PATH ORACLE_SID=TSH1; export ORACLE_SID LD_LIBRARY_PATH=$ORACLE_HOME/lib; export LD_LIBRARY_PATH CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH DISPLAY=<machine-name>:0.0; export DISPLAY stty erase ^H # ^H added using [Ctrl + V] [Backspace] ksh -o emacs set filec
Save the ".profile" file and re-login as the oracle user. Make sure the .profile ran correctly by issuing the following command.
set | more
Installation
Log into the oracle user. If you are using X emulation then set the DISPLAY environmental variable.
DISPLAY=<machine-name>:0.0; export DISPLAY
Start the Oracle Universal Installer (OUI) by issuing the following command in the Disk1 directory.
./runInstaller
Continue with the installation as normal.
Post Installation
Edit the "/etc/oratab" file setting the restart flag for each instance to 'Y'.
TSH1:/u01/app/oracle/product/9.2.0.1.0:Y
Create a file called /sbin/init.d/oracle containing the following.
#!/bin/sh # # change the value of ORACLE_HOME to be correct for your # installation ORACLE_HOME=/u01/app/oracle/product/9.2.0.1.0 PATH=${PATH}:$ORACLE_HOME/bin HOST=`hostname` # # change the value of ORACLE to the login name of the # oracle owner at your site # ORACLE=oracle export ORACLE_HOME PATH # if [ ! "$2" = "ORA_DB" ] ; then rsh $HOST -l $ORACLE /sbin/init.d/oracle $1 ORA_DB exit fi # LOG=$ORACLE_HOME/startup.log touch $LOG chmod a+r $LOG # case $1 in 'start') echo "$0: starting up" >> $LOG date >> $LOG # Start Oracle Net if [ -f $ORACLE_HOME/bin/tnslsnr ] ; then echo "starting Oracle Net listener" $ORACLE_HOME/bin/lsnrctl start >> $LOG 2>&1 & fi echo "starting Oracle databases" $ORACLE_HOME/bin/dbstart >> $LOG 2>&1 ;; 'stop') echo "$0: shutting down" >> $LOG date >> $LOG # Stop Oracle Net if [ -f $ORACLE_HOME/bin/tnslsnr ] ; then echo "stopping Oracle Net listener" $ORACLE_HOME/bin/lsnrctl stop >> $LOG 2>&1 fi echo "stopping Oracle databases" $ORACLE_HOME/bin/dbshut >> $LOG 2>&1 ;; *) echo "usage: $0 {start|stop}" exit ;; esac # exit
Use chmod to set the privileges to 750.
chmod 750 /sbin/init.d/oracle
Add the following entry into the .rhosts file in the oracle user login home directory to allow root login access to the account.
<host-name> root
Link the file into the startup and shutdown directories using this.
ln -s /sbin/init.d/oracle /sbin/rc3.d/S99oracle ln -s /sbin/init.d/oracle /sbin/rc0.d/K01oracle
Add root user to the dba and oinstall groups (/etc/group) to allow the script to function correctly. The relevant instances should now startup/shutdown automatically at system startup/shutdown.
Hope this helps. Regards Tim...