Oracle Database 10.2 Installation on Oracle Enterprise Linux 5

Here are my experience for installing Oracle Database 10.2 on Oracle Enterprise Linux:

Extract the installer:
tar -zxvf database.tgz

Make sure your domain are set correctly in host file, /etc/hosts.
For example:
127.0.0.1 localhost.localdomain localhost
192.168.41.82 dbcamps.balicamp.com dbcamps

Edit file sysctl.conf on /etc, insert these line:
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 1024 6500
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144

Run this file to activate the changes on kernel:
/sbin/sysctl -p

Edit /etc/security/limit.conf to insert these line:
* soft nproc 2047
* hard nproc 16384
* soft nofile 1024
* hard nofile 65536

Then edit /etc/pam.d/login to insert these line:
session required /lib/security/pam_limits.so

Install these packages in order:
kernel-headers-2.6.18-92.el5.i386.rpm
glibc-headers-2.5-24.i386.rpm
glibc-devel-2.5-24.i386.rpm
libgomp-4.1.2-42.el5.i386.rpm
gcc-4.1.2-42.el5.i386.rpm
compat-libf2c-34-3.4.6-4.i386.rpm
compat-gcc-34-3.4.6-4.i386.rpm
compat-gcc-34-c++-3.4.6-4.i386.rpm
compat-db-4.2.52-5.1.i386.rpm
libXp-1.0.0-8.1.el5.i386.rpm
openmotif-2.3.0-0.5.el5.i386.rpm
Note:You must install those package sequentialy...

Prepare the user and installation folder:
groupadd oinstall
groupadd dba
groupadd oper

useradd -g oinstall -G dba oracle
password

This is just for example, you can make your own directory in your root directory:
mkdir -p /u10/app/oracle/product/10.2.0/db_1
chown -R oracle.oinstall /u10

Then edit /etc/redhat-release, change to this (backup first - remember to restore it later):
redhat-4

Edit this file /home/oracle/.bash_profile, then insert these folowing lines:
#Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR

ORACLE_BASE=/u10/app/oracle/; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
ORACLE_SID=ORABALI; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH;export PATH

LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib;
export CLASSPATH

if [$USER = "oracle"]; then
if [$SHELL = "/bin/ksh"]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi

And run those script ass root:
xhost+

Login to oracle account and run these lines:
DISPLAY=:0.0;
export DISPLAY

Entry to the directory that had been extracted, then type:
./runInstaller

After you finished the installation, start the service on your console by typing:
emctl start dbconsole
but before that, you must login with user "oracle".

Then use your browser and type:

http://localhost:1158


That's it.....



0 comments:

Post a Comment