Sei sulla pagina 1di 2

Installing Oracle Database 11g Release 2 Enterprise Edition in Ubuntu10.

ick Meerkat)
By : Anil DevDate : 27 Nov 2010
Why Ubuntu is the Choice?
Ubuntu is very much user friendly, as good as a Windows Xp system(lacks only the
gamingpart ;-) ) and above all it is an OSS (Open Source Software). As there is
no Ubuntu Specific OraleInstaller available, we need to download the Linux vers
ion of installer software for RedhatEnterprise Linux from OTN(Oracle Technology
Network).The files that I had downloded were named as follows :linux_11gR2_data
base_1of2.ziplinux_11gR2_database_2of2.zipBefore we start installing Oracle in U
buntu we must ensure that Oracle has to consider Ubuntu as aRedhat Enterprise Li
nux. There are a few basics need to be understood first. Redhat/Fedora likelinux
systems are rpm(redhat package manger) based systems. Whereas Ubuntu (derived f
romDebian linux) is a
based system. And the beauty of it is that the aptitude repositoriesmentained i
n remote sites and can be fetched anytime we rquire any software from the reposi
torywhen the internet is avaialable.[e.g.
Using command
sudo apt-get install vlc vlc-plugin-pulse mozilla-plugin-vlc

will install theVLC Player in the system

So we need to make Ubuntu behave as Redhat by installing rpm executives( will se
e that in the justbelow steps) and some other executables that will be needed by
the installer(OUI).
Installing Pre-requisite Packages------------------------------------------
First nstalled these software packages on Ubuntu 10.04
$ sudo apt-get install unzip build-essential x11-utils rpm kshlsb-rpm libaio1
Ubuntu 10.04 comes with libstdc++6 installed. But, Oracle 11gR2 requires libstdc
++5. If you donot install libstdc++5, The fix is to download the libstdc++5 libr
ary files onto Ubuntu 10.04:
$ wget
-17ubuntu1_amd64.deb$ dpkg-deb -x libstdc++5_3.3.6-17ubuntu1_amd64.deb ia64-libs
$ sudo cp ia64-libs/usr/lib/ /usr/lib64/$ cd /usr/lib64/$ sudo
ln -s $ wget
$ sudo dpkg-deb -x ia32-libs_2.7ubuntu6.1_amd64.deb ia32-libs$ sudo cp ia32-libs
/usr/lib32/ /usr/lib32/$ cd /usr/lib32$ sudo ln -s libstdc++.s
Create oracle User and related GroupsFirst create the oinstall and dba groups:--
----switch to root
$ sudo su -[sudo] password for anil:# addgroup oinstall# addgroup dba
Then create the oracle user and assign it to those groups:
# useradd -g oinstall -G dba -p password -d /home/oracle -s/bin/bash oracle# mkd
ir /home/oracle# chown -R oracle:dba /home/oracle
Set the password for user Oracle :
# passwd oracleEnter new UNIX password:Retype new UNIX password:passwd: password
updated successfully
Now we create some symbolic links to give the Ubuntu system a more ¡§Redhat-ish layo
# ln -s /usr/bin/awk /bin/awk# ln -s /usr/bin/rpm /bin/rpm# ln -s /usr/bin/basen
ame /bin/basename# mkdir /etc/rc.d# for i in 0 1 2 3 4 5 6 S ; do ln -s /etc/rc$
i.d /etc/rc.d/rc$i.d; done# mkdir -p /u01/app/oracle
# chown -R oracle:dba /u01
Then we update some sysctl parameters by editing/etc/sysctl.conf . First backup
the file.
anil@anil-desktop:~$ cp /etc/sysctl.conf /etc/sysctl.conf.bkpanil@anil-desktop:~
$ vi /etc/sysctl.conf
Got end of the file and add these below entries.
fs.file-max = 6815744fs.aio-max-nr = 1048576kernel.shmall = 2097152kernel.shmmax
= 2147483648kernel.shmmni = 4096kernel.sem = 250 32000 100 128net.core.rmem_def
ault = 4194304net.core.rmem_max = 4194304net.core.wmem_default = 1048576net.core
.wmem_max = 1048576net.ipv4.ip_local_port_range = 9000 65535
These values are different from what was needed in 11gR1.Now we update some limi
ts for the oracle software owner by adding these lines to the end of /etc/securi
ty/limits.conf:Backup first :
anil@anil-desktop:~$ cp /etc/security/limits.conf/etc/security/limits.conf.bkpan
il@anil-desktop:~$ vi /etc/security/limits.conf
Go to end of the file and add the entries below :
oracle soft nproc 2047oracle hard nproc 16383oracle soft nofile 1023oracle hard
nofile 65535
Now we activate the new settings from /etc/sysctl.conf with this command:
# sysctl -p
Unpack and Install the SoftwareFrom here we go into the directory containing our
two 11gR2 database zip files.
$unzip$ unzip
Unzipping at the same location would ensure that everything unpacked from these
two zip fileswould go to the database folder. Now you simply cd into the databas
e directory and run therunInstaller program: