How To Install Oracle 11g R2 In Debian 7.8

Posted: February 3, 2016 in Linux

clip_image050

Thanks to CloudNetwork

http://www.cloudnetwork.in/2015/01/how-to-install-oracle-11g-r2-step-by.html

https://www.youtube.com/watch?v=dM4ZeezZPGs

Add Repository Indonesia J

# vi /etc/apt/sources.list

deb http://kambing.ui.ac.id/debian/ wheezy main contrib non-free

deb http://kambing.ui.ac.id/debian/ wheezy-updates main contrib non-free

deb http://kambing.ui.ac.id/debian-security/ wheezy/updates main contrib non-free

# apt-get update

1. Installing Dependencies

Logging into ROOT and Open Terminal

sudo apt-get update

sudo apt-get install gcc make binutils gawk x11-utils rpm build-essential libaio1 libaio-dev libmotif4 libtool expat alien ksh pdksh unixODBC unixODBC-dev sysstat elfutils libelf-dev binutils lesstif2 lsb-cxx libstdc++5

2. some softlinks to start the Installation

sudo mkdir /usr/lib64

sudo ln -s /etc /etc/rc.d

sudo ln -s /lib/x86_64-linux-gnu/libgcc_s.so.1 /lib64/

sudo ln -s /usr/bin/awk /bin/awk

sudo ln -s /usr/bin/basename /bin/basename

sudo ln -s /usr/bin/rpm /bin/rpm

sudo ln -s /usr/lib/x86_64-linux-gnu/libc_nonshared.a /usr/lib64/

sudo ln -s /usr/lib/x86_64-linux-gnu/libpthread_nonshared.a /usr/lib64/

sudo ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /lib64/

sudo ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /usr/lib64/

 

3. Adding oracle user and oinstall, dba, nobody group

sudo adduser oracle

sudo addgroup oinstall

sudo addgroup dba

sudo addgroup nobody

sudo usermod -g nobody nobody

sudo useradd -g oinstall -G dba –p password -d /home/oracle -s /bin/bash oracle

clip_image002

sudo usermod -g oinstall -G dba –p password -d /home/oracle -s /bin/bash oracle

sudo mkdir /home/oracle

sudo chown -R oracle:dba /home/oracle

make sure oracle user as member of group =oracle and dba

clip_image003

If user oracle not member of dba, try with command

Usermod -G dba oracle

4. We need to do changes in startup script

mkdir /etc/rc.d –> cat >> 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

clip_image004

5. we will create the directory for installation, and changes it owner to oracle.

sudo mkdir -p /u01/app/oracle

sudo chown -R oracle:dba /u01

clip_image005

 

6. We need to modify the kernel parameter

echo "#">> /etc/sysctl.conf

echo "# Oracle 11gR2 entries">> /etc/sysctl.conf

echo "fs.aio-max-nr=1048576" >> /etc/sysctl.conf

echo "fs.file-max=6815744" >> /etc/sysctl.conf

echo "kernel.shmall=2097152" >> /etc/sysctl.conf

echo "kernel.shmmni=4096" >> /etc/sysctl.conf

echo "kernel.sem=250 32000 100 128" >> /etc/sysctl.conf

echo "net.ipv4.ip_local_port_range=9000 65500" >> /etc/sysctl.conf

echo "net.core.rmem_default=262144" >> /etc/sysctl.conf

echo "net.core.rmem_max=4194304" >> /etc/sysctl.conf

echo "net.core.wmem_default=262144" >> /etc/sysctl.conf

echo "net.core.wmem_max=1048586" >> /etc/sysctl.conf

1GB Memory

echo "kernel.shmmax=1073741824" >> /etc/sysctl.conf

3GB Memory

echo "kernel.shmmax= 3221225472 " >> /etc/sysctl.conf

Note: kernel.shmmax = max possible value (format Byte),

e.g. size of physical memory in bytes. In my case machine is having 2GB so we are spec
ifying 1GB. Adjust the parameter as per your configuration

clip_image007

7. Load new kernel parameters

sudo sysctl -p

clip_image008

 

8. I have to change shell configuration

step18:- cp /etc/security/limits.conf /etc/security/limits.conf.original

echo "#Oracle 11gR2 shell limits:">>/etc/security/limits.conf

echo "oracle soft nproc 2048">>/etc/security/limits.conf

echo "oracle hard nproc 16384">>/etc/security/limits.conf

echo "oracle soft nofile 1024">>/etc/security/limits.conf

echo "oracle hard nofile 65536">>/etc/security/limits.conf

clip_image010

9. need to extract the Oracle Download File1 & File2 both the zip to start the installation

cd /home/oracle

unzip linux_11gR2_database_1of2.zip

unzip linux_11gR2_database_2of2.zip

10. Now i will start the installation from /home/oracle/database.

Login as a oracle user

su oracle

11. Go to the binaries and start the installation as a oracle user

cd /home/oracle

chmod 777 -R database

cd database

./runInstaller -ignoreSysPrereqs

note:

if cannot show pop installer must login with user oracle

clip_image012

clip_image014

clip_image016

clip_image018

clip_image020

clip_image022

clip_image024

clip_image026

clip_image028

clip_image030

clip_image032

clip_image034

clip_image036

clip_image038

clip_image040

clip_image042

clip_image044

clip_image046

clip_image048

clip_image050

12. Command Oracle

First, check which databases are controlled by Oracle Restart

$ . oraenv

Check Service Listener

$ lsnrctl status

Start Servicer Listener

$ lsnrctl start

Start SQLPlus

Sqlplus / as sysdba

Next, check the Enterprise Manager service is running.

$ emctl start dbconsole

CMIIW, Thanks Smile

Leave a Reply

Your email address will not be published. Required fields are marked *