Today we will see how to install Oracle client for ubuntu this is very old version. I have got request from users to help how to install oracle client on ubuntu. We will post more new version in future. Now lets start the installation

Login to your developer user Desktop or laptop with “Administrator” username

su to root

Install all prerequisites for Oracle client

# apt-get install gcc make binutils lesstif2 libc6 libc6-dev rpm libmotif3 libaio1 libstdc++5 gawk alien ksh gcc-3.3 g++-3.3 libstdc++5

Add oracle group this will help to user to give oracle credentials

# addgroup oinstall
# addgroup dba
# addgroup nobody
# useradd -g oinstall -G dba -p password -d /home/oracle -s /bin/bash oracle
# usermod -g nobody nobody
# mkdir /home/oracle
# chown -R oracle:dba /home/oracle
# ln -s /usr/bin/awk /bin/awk
# ln -s /usr/bin/rpm /bin/rpm
# ln -s /usr/bin/basename /bin/basename

We need to mimic the /etc/rc.ddirectory structure of a Red Hat box. We do this with more symlinks:

# mkdir /etc/rc.d
# ln -s /etc/rc0.d /etc/rc.d/rc0.d
# ln -s /etc/rc2.d /etc/rc.d/rc2.d
# ln -s /etc/rc3.d /etc/rc.d/rc3.d
# ln -s /etc/rc4.d /etc/rc.d/rc4.d
# ln -s /etc/rc5.d /etc/rc.d/rc5.d
# ln -s /etc/rc6.d /etc/rc.d/rc6.d
# ln -s /etc/init.d /etc/rc.d/init.d
# echo "Red Hat Linux release 4" >> /etc/redhat-release

4. vi /etc/sysctl.conf

add below lines in "/etc/sysctl.conf"

fs.file-max = 65535
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144

5. vi /etc/security/limits.conf

oracle soft nproc 2047
oracle hard nproc 16383
oracle soft nofile 1023
oracle hard nofile 65535

6. Make sure the limits.conf is being interpreted as the oracle user logs in by adding these lines to /etc/pam.d/login You will want to make sure that is actually happening, since the defaults are way lower and you may get all sorts of problems.

session required /lib/security/pam_limits.so
session required pam_limits.so

Feedbacks: We appreciate your feedbacks and suggestions about our website bala@techgyaan.org

Check out Bala’s Google+ profile. Follow @techgyaan