Oracle9i (9.2.0.4.0) Installation on Centos 4.8
(ref: http://www.oracle-base.com/articles/9i/Oracle9iInstallationOnRedHatAS4AndCentos4.php)
This article is intended as a brief guide to installing Oracle9i (9.2.0.4.0) on Red Hat Enterprise Linux 4.1 (RHEL4) And Centos 4.1. The article is based on a server installation with a minimum of 2G swap, secure Linux disabled and the following package groups installed:
- X Window System
- GNOME Desktop Environment
- Editors
- Graphical Internet
- Server Configuration Tools
- Development Tools
- Administration Tools
- System Tools
MINI:
X Window System
GNOME Desktop Environment
Development Tools
Legacy Software Development”
Alternative base installations may require additional packages to be loaded.
Download Software
Download the Oracle installation files from otn.oracle.com.
Download two additional packages from Metalink Patch 4198954.
Unpack Files
First unzip the files:
gunzip ship_9204_linux_disk1.cpio.gz gunzip ship_9204_linux_disk2.cpio.gz gunzip ship_9204_linux_disk3.cpio.gz
Next unpack the contents of the files:
cpio -idmv < ship_9204_linux_disk1.cpio cpio -idmv < ship_9204_linux_disk2.cpio cpio -idmv < ship_9204_linux_disk3.cpio unzip p4198954_21_LINUX.zip
You should now have three directories (Disk1, Disk2 and Disk3) containing installation files and a patch directory (4198954).
Hosts File
The /etc/hosts file must contain a fully qualified name for the server:
Set Kernel Parameters
Add the following lines to the /etc/sysctl.conf file:
kernel.shmmax = 2147483648 kernel.shmmni = 100 kernel.shmall = 2097152 # semaphores: semmsl, semmns, semopm, semmni kernel.sem = 100 256 100 100 fs.file-max = 327679 #kernel.hostname = Centos42.localdomain #<--- full qualified hostname !! #kernel.domainname = localdomain #<--- correct domain name !!
Run the following command to change the current kernel parameters:
/sbin/sysctl -p
Add the following lines to the /etc/security/limits.conf file:
oracle soft nofile 65536 oracle hard nofile 65536 oracle soft nproc 16384 oracle hard nproc 16384
Setup
depend package:
check
rpm -q
alsa-lib-devel-1.0.6-5.RHEL4.i386.rpm
audiofile-devel-0.2.6-1.el4.1.i386.rpm
compat-libcwait-2.1-1.i386.rpm
compat-oracle-rhel4-1.0-5.i386.rpm
esound-devel-0.2.35-2.i386.rpm
fontconfig-devel-2.2.3-13.el4.i386.rpm
freetype-devel-2.1.9-8.el4.6.i386.rpm
glib-devel-1.2.10-15.i386.rpm
gnome-libs-devel-1.4.1.2.90-44.1.i386.rpm
gtk+-devel-1.2.10-36.i386.rpm
imlib-devel-1.9.13-23.i386.rpm
libaio-0.3.105-2.i386.rpm
libaio-devel-0.3.105-2.i386.rpm
libjpeg-devel-6b-33.i386.rpm
libtiff-devel-3.6.1-12.el4_7.2.i386.rpm
libungif-devel-4.1.3-1.el4.2.i386.rpm
openmotif21-2.1.30-11.RHEL4.6.i386.rpm
ORBit-devel-0.5.17-14.i386.rpm
xorg-x11-6.8.2-1.EL.63.i386.rpm
xorg-x11-deprecated-libs-6.8.2-1.EL.63.i386.rpm
xorg-x11-deprecated-libs-devel-6.8.2-1.EL.63.i386.rpm
xorg-x11-devel-6.8.2-1.EL.63.i386.rpm
xorg-x11-libs-6.8.2-1.EL.63.i386.rpm
xorg-x11-xfs-6.8.2-1.EL.63.i386.rpm
install:
yum -y install
alsa-lib-devel
audiofile-devel
compat-libcwait
compat-oracle
esound-devel
fontconfig-devel
freetype-devel
glib-devel
gnome-libs-devel
gtk+-devel
imlib-devel
libaio
libaio-devel
libjpeg-devel
libtiff-devel
libungif-devel
openmotif21
ORBit-devel
xorg-x11
xorg-x11-deprecated-libs
xorg-x11-deprecated-libs-devel
xorg-x11-devel
xorg-x11-libs
xorg-x11-xfs
-----------------------------------
should install
alsa-lib-devel-1.0.6-5.RHEL4.i386.rpm
audiofile-devel-0.2.6-1.el4.1.i386.rpm
compat-libcwait-2.1-1.i386.rpm
compat-oracle-rhel4-1.0-5.i386.rpm
esound-devel-0.2.35-2.i386.rpm
fontconfig-devel-2.2.3-13.el4.i386.rpm
freetype-devel-2.1.9-8.el4.6.i386.rpm
glib-devel-1.2.10-15.i386.rpm
gnome-libs-devel-1.4.1.2.90-44.1.i386.rpm
gtk+-devel-1.2.10-36.i386.rpm
imlib-devel-1.9.13-23.i386.rpm
libaio-0.3.105-2.i386.rpm
libaio-devel-0.3.105-2.i386.rpm
libjpeg-devel-6b-33.i386.rpm
libtiff-devel-3.6.1-12.el4_7.2.i386.rpm
libungif-devel-4.1.3-1.el4.2.i386.rpm
openmotif21-2.1.30-11.RHEL4.6.i386.rpm
ORBit-devel-0.5.17-14.i386.rpm
xorg-x11-6.8.2-1.EL.63.i386.rpm
xorg-x11-deprecated-libs-6.8.2-1.EL.63.i386.rpm
xorg-x11-deprecated-libs-devel-6.8.2-1.EL.63.i386.rpm
xorg-x11-devel-6.8.2-1.EL.63.i386.rpm
xorg-x11-libs-6.8.2-1.EL.63.i386.rpm
xorg-x11-xfs-6.8.2-1.EL.63.i386.rpm
--------------------------------
all need:
1. alsa-lib-devel-1.0.6-5.RHEL4.i386.rpm
2. audiofile-devel-0.2.6-1.el4.1.i386.rpm
3. compat-libcwait-2.1-1.i386.rpm
4. compat-oracle-rhel4-1.0-5.i386.rpm
5. esound-devel-0.2.35-2.i386.rpm
6. fontconfig-devel-2.2.3-13.el4.i386.rpm
7. freetype-devel-2.1.9-8.el4.6.i386.rpm
8. glib-devel-1.2.10-15.i386.rpm
9. gnome-libs-devel-1.4.1.2.90-44.1.i386.rpm
10. gtk+-devel-1.2.10-36.i386.rpm
11. imlib-devel-1.9.13-23.i386.rpm
12. libaio-0.3.105-2.i386.rpm
13. libaio-devel-0.3.105-2.i386.rpm
14. libjpeg-devel-6b-33.i386.rpm
15. libtiff-devel-3.6.1-12.el4_7.2.i386.rpm
16. libungif-devel-4.1.3-1.el4.2.i386.rpm
17. openmotif21-2.1.30-11.RHEL4.6.i386.rpm
18. ORBit-devel-0.5.17-14.i386.rpm
19. xorg-x11-6.8.2-1.EL.63.i386.rpm
20. xorg-x11-deprecated-libs-6.8.2-1.EL.63.i386.rpm
21. xorg-x11-deprecated-libs-devel-6.8.2-1.EL.63.i386.rpm
22. xorg-x11-devel-6.8.2-1.EL.63.i386.rpm
23. xorg-x11-libs-6.8.2-1.EL.63.i386.rpm
24. xorg-x11-xfs-6.8.2-1.EL.63.i386.rpm
total:24 rpm
22 rpm can be found in CentOS-4.8-i386-binDVD.iso
2 rpm is oracle9i patch:
http://oss.oracle.com/projects/compat-oracle/dist/files/RedHat/compat-libcwait-2.1-1.i386.rpm
http://oss.oracle.com/projects/compat-oracle/dist/files/RedHat/compat-oracle-rhel4-1.0-5.i386.rpm
Install the packages associated with Patch 4198954:
cd 4198954 rpm -Uvh compat-oracle-rhel4-1* rpm -Uvh compat-libcwait-2*
Create the new groups and users:
groupadd oinstall groupadd dbauseradd -g oinstall -G dba oracle passwd oracle
Create the directories in which the Oracle software will be installed:
mkdir -p /u01/app/oracle/product/9.2.0 chown -R oracle.oinstall /opt/orac
Login as the oracle user and add the following lines at the end of the .bash_profile file:
# Oracle 9i ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE ORACLE_HOME=$ORACLE_BASE/product/9.2.0; export ORACLE_HOME ORACLE_TERM=xterm; export ORACLE_TERM PATH=$ORACLE_HOME/bin:$PATH; export PATH ORACLE_OWNER=oracle; export ORACLE_OWNER 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 CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib; export CLASSPATH LD_ASSUME_KERNEL=2.4.19; export LD_ASSUME_KERNEL TMP=/tmp; export TMP TMPDIR=$TMP; export TMPDIR
Save the .bash_profile file and re-login as the oracle user. Make sure the .bash_profile ran correctly by issuing the following command:
set | more
{
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
# Set the LD_ASSUME_KERNEL environment variable only for Red Hat 9 and
# for Red Hat Enterprise Linux Advanced Server 3 (RHEL AS 3) !!
# Use the "Linuxthreads with floating stacks" implementation instead of NPTL:
export LD_ASSUME_KERNEL=2.4.19
# Oracle Environment
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=/opt/oracle/product/9.2.0
export ORACLE_SID=35
export ORACLE_TERM=xterm
# export TNS_ADMIN= Set if sqlnet.ora, tnsnames.ora, etc. are not in $ORACLE_HOME/network/admin
export NLS_LANG=AMERICAN;
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export LD_LIBRARY_PATH
# Set shell search paths
export PATH=$PATH:$ORACLE_HOME/bin
PATH=$PATH:$HOME/bin
export PATH
unset USERNAME
}
Installation
maybe,use user root , run follow command :
xhost +
Log into the oracle user. If you are using X emulation then set the DISPLAY environmental variable:
DISPLAY=:0.0; export DISPLAY
Start the Oracle Universal Installer (OUI) by issuing the following command in the Disk1 directory:
./runInstaller
During the installation enter the appropriate ORACLE_HOME and name then continue as normal. For a more detailed look at the installation process, click on the links below to see screen shots of each stage.
- Welcome
- Inventory Location
- UNIX Group Name
- UNIX Group Name Privileges Dialog /tmp/orainstRoot.sh
- File Locations
- Available Products
- Installation Types
- Database Configuration
- Database Identification
- Database File Location
- Database Character Set
- Summary
- Install
- Setup Privileges
- Configuration Tools
- Database Configuration Assistant
- Database Configuration Assistant Passwords
- End Of Installation
Post Installation
Once the instance is created edit the /etc/oratab file setting the restart flag for each instance to 'Y':
TSH1:/u01/app/oracle/product/9.2.0:Y
Hope this helps. Regards Tim...