Oracle Database 10g Installation on RHEL5.5 64-bit
Make sure when partitioning...
/ 15 GB
swap 4 GB
/u01 15 GB
Unpack Files
Login as super user.
32-bits Oracle Unzip database the files.
# unzip 10201_database_linux32.zip
64-bits Oracle Unzip database the files.
# cd /home/oracle/Desktop/
# gunzip 10201_database_linux_x86_64.tar.gz
# cpio -idm < 10201_database_linux_x86_64.tar.gz
You should now have a single directory containing installation files. Depending on the age of the download this may either be named "database".
Make network configuration Static, basically System provide DHCP IP Address.
# system-config-network-tui
Here edit the Device---> eth0-----> Uncheck Use DHCP-----> give Static IP---> Netmask-----Default gateway IP..
Hosts File
The "/etc/hosts" file must contain a fully qualified name for the server.
<IP-address> <fully-qualified-machine-name> <machine-name>
e.g- 192.168.0.14 desktop20.example.com localhost
Set Kernel Parameters
# vim /etc/sysctl.conf
#kernel.shmall = 2097152
#kernel.shmmax = 536870912
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default=262144
net.core.rmem_max=262144
net.core.wmem_default=262144
net.core.wmem_max=262144
Run the following command to change the current kernel parameters.
# /sbin/sysctl -p
Add the following lines to the "/etc/security/limits.conf" file.
As it is given below...
* soft nproc 2047
* hard nproc 16384
* soft nofile 1024
* hard nofile 65536
Add the following line to the "/etc/pam.d/login" file, if it does not already exist.
session required pam_limits.so
Disable secure linux by editing the "/etc/selinux/config" file, making sure the SELINUX flag is set as follows.
SELINUX=disabled
Alternatively, this alteration can be done using the GUI tool (System > Administration > Security Level and Firewall). Click on the SELinux tab and disable the feature.
Setup
Edit the "/etc/redhat-release" file replacing the current release information (Red Hat Enterprise Linux Server release 5 (Tikanga)) with the following:
redhat-4
Configure your /etc/yum.repos.d/rhel.repo
[redhat]
name=rhel6.5
baseurl=http://192.168.0.254/rhel-6-64
enabled=1
gpgcheck=0
Save the file.
# yum clean all
# yum list all
Install the following packages.
rhel5.5 64-bits
# yum install setarch make glibc compat-libstdc++-33 compat-gcc-34 compat-gcc-34-c++ gcc libXp openmotif compat-db java* -y
Create the new groups and users.
# groupadd oinstall
# groupadd dba
# groupadd oper
# useradd -g oinstall -G dba,oper -d /home/oracle oracle
# passwd oracle
Create the directories in which the Oracle software will be installed.
# mkdir -p /u01/app/oracle/product/10.2.0/db_1
# chown -R oracle:oinstall /u01
# chmod -R 775 /u01
Restart the system and switch to the user oracle.
-- Let's see which shell is being used by the user Oracle.
$ echo $SHELL
/bin/bash
Add the following lines at the end of the ".bash_profile" file.
$ vim ~/.bash_profile
#ORACLE SETTING
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_HOSTNAME=desktop2.example.com; export ORACLE_HOSTNAME
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
ORACLE_SID=orcl; export ORACLE_SID
LD_LIBRARY_PATH=$ORACLE_HOME/jdk/jre/i386:$ORACLE_HOME/jdk/jre/lib/i386/server:$ORACLE_HOME/rdbms/lib:$ORACLE_HOME/lib:$LD_LIBRARY_PATH;
export LD_LIBRARY_PATH
PATH=$PATH:$HOME/bin; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
export username
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
umask 022
Save the file.
Now run the following command to make these changes effective in the current session of user oracle.
-- for bash shell
$ source ~/.bash_profile
Login as root and issue the following command.
Allow the user oracle to use X server, which it will need to run Oracle Universal Installer.
e.g.~ xhost +<machine-name>
# xhost +SI:localuser:oracle
or, # xhost +
Flush the firewall
# iptables -F
Installation
Start the Oracle Universal Installer (OUI) by issuing the following command in the database directory.
$ cd Desktop/linux/database/
$ ./runInstaller
During the installation enter the appropriate ORACLE_HOME and name then continue installation.
If any problem occured during installation, contact me.
Prepared By: Tapas Kumar Sen
email: tapas.93028@gmail.com