# 1 OS setup for installing Oracle 10.2.0.1 Standard on Ubuntu 10.04 LTS

This post has been written to speed up class activity. I have followed most items from  Installing Oracle 11gR2 Enterprise Edition on Ubuntu 10.04 (Lucid Lynx). This post assumes you are familiar with Unix environment.

Perform steps from 1 to 4 as root user. Perform last step as oracle user
1. Linux setup (packages)

sudo su -
sudo apt-get install unzip build-essential x11-utils rpm ksh lsb-rpm libaio1

wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc-3.3/libstdc++5_3.3.6-15ubuntu4_i386.deb

dpkg-deb -x libstdc++5_3.3.6-15ubuntu4_i386.deb /usr/lib

cd /usr/lib
ln -s /usr/lib/usr/lib/libstdc++.so.5.0.7 libstdc++.so.5

2. Linux setup (users and directories)

addgroup oinstall
addgroup dba

useradd -g oinstall -G dba -p password -d /home/oracle -s /bin/bash oracle
mkdir /home/oracle
chown -R oracle:dba /home/oracle

addgroup nobody
usermod -g nobody nobody

ln -s /usr/bin/awk /bin/awk
ln -s /usr/bin/rpm /bin/rpm
ln -s /usr/bin/basename /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

3. Linux setup (kernel)

backup file
cp /etc/sysctl.conf /etc/sysctl.conf.`date +%F%T`
edit the file /etc/sysctl.conf

Add the following:
fs.file-max = 6815744
fs.aio-max-nr = 1048576
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 1048576
net.core.wmem_max = 1048576
net.ipv4.ip_local_port_range = 9000 65535

echo "fs.file-max = 6815744" >> /etc/sysctl.conf
echo "fs.aio-max-nr = 1048576" >> /etc/sysctl.conf
echo "kernel.shmall = 2097152" >> /etc/sysctl.conf
echo "kernel.shmmax = 2147483648" >> /etc/sysctl.conf
echo "kernel.shmmni = 4096" >> /etc/sysctl.conf
echo "kernel.sem = 250 32000 100 128" >> /etc/sysctl.conf
echo "net.core.rmem_default = 4194304" >> /etc/sysctl.conf
echo "net.core.rmem_max = 4194304" >> /etc/sysctl.conf
echo "net.core.wmem_default = 1048576" >> /etc/sysctl.conf
echo "net.core.wmem_max = 1048576" >> /etc/sysctl.conf
echo "net.ipv4.ip_local_port_range = 9000 65535" >> /etc/sysctl.conf

backup file
cp /etc/security/limits.conf /etc/security/limits.conf.`date +%F%T`
edit the file /etc/security/limits.conf

Add the following:
oracle soft nproc 2047
oracle hard nproc 16383
oracle soft nofile 1023
oracle hard nofile 65535

echo "oracle soft nproc 2047" >> /etc/security/limits.conf
echo "oracle hard nproc 16383" >> /etc/security/limits.conf
echo "oracle soft nofile 1023" >> /etc/security/limits.conf
echo "oracle hard nofile 65535" >> /etc/security/limits.conf

sysctl -p

4. Linux setup (access)

xhost + 

5. Setup env for install Oracle user

su - oracle

cd /home/oracle/Desktop
unzip 10201_database_linux32.zip

cd /home/oracle/Desktop/database

export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db1
export ORACLE_SID=ORCL
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export PATH=$ORACLE_HOME/bin:$PATH
export EDITOR=/usr/bin/vi

export DISPLAY=:0.0

./runInstaller -ignoresysPreReqs
About these ads
This entry was posted in trainingDX2011. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s