Install Oracle 11gR2 on SL6 KVM at KVM-QEMU Instance on SL 6 (alpha 3)

Setup KVM-QEMU instance per [1] on SL 6 alpha 3 and install SL6 KVM with ISO image SL-6-x86_64-2010-12-17-boot.iso to run installation via http://ftp.scientificlinux.org/linux/scientific/6rolling/x86_64/os/ source



Follow [2] with minor changes for “yum install script” in previously installed SL 6 KVM via Net Repos. Virtio drivers should be enabled during install. First update for /etc/sysctl.conf

fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default=262144
net.core.rmem_max=4194304
net.core.wmem_default=262144
net.core.wmem_max=1048586

# /sbin/syctl -p

Add the following lines to the “/etc/security/limits.conf” file.
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
Add the following line to the “/etc/pam.d/login” file.
session required pam_limits.so
***************************************
Run Script 1 to install packages
***************************************

yum install binutils \
compat-libstdc++-33 \
compat-libstdc++-33.i686 \
elfutils-libelf \
elfutils-libelf-devel \
gcc \
gcc-c++ \
glibc \
glibc.i686 \
glibc-common \
glibc-devel \
glibc-devel.i686 \
glibc-headers \
ksh \
libaio \
libaio.i686 \
libaio-devel \
libaio-devel.i686 \
libgcc \
libgcc.i686 \
libstdc++ \
libstdc++.i686 \
libstdc++-devel \
make \
numactl-devel \
sysstat \
unixODBC \
unixODBC.i686 \
unixODBC-devel \
unixODBC-devel.i6

********************************************************************************************
Run Script 2 to create oracle account, groups and directories for installation
********************************************************************************************

groupadd oinstall
groupadd dba
groupadd oper
groupadd asmadmin
useradd -g oinstall -G dba,oper,asmadmin oracle
passwd oracle
mkdir -p /u01/app/oracle/product/11.2.0/db_1
chown -R oracle:oinstall /u01
chmod -R 775 /u01

Disable SELINUX and reboot VM.
********************************************
Create oracle’s .bash_profile per [2]
********************************************

TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_HOSTNAME=ServerASL6; export ORACLE_HOSTNAME
ORACLE_UNQNAME=data1231; export ORACLE_UNQNAME
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME
ORACLE_SID=data1231; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi

As oracle

unzip linux.x64_11gR2_database_1of2.zip
unzip linux.x64_11gR2_database_2of2.zip

cd database
$ ./runInstaller









References
1.https://bderzhavets.wordpress.com/2010/12/23/set-up-kvm-on-scientific-linux-6-server-alpha-3/
2.http://www.oracle-base.com/articles/11g/OracleDB11gR2InstallationOnFedora14.php

2 Responses to Install Oracle 11gR2 on SL6 KVM at KVM-QEMU Instance on SL 6 (alpha 3)

  1. […] Here is a good tutorial show you how to Install Oracle 11gR2 on SL6 KVM at KVM-QEMU Instance on SL 6: Setup KVM-QEMU instance per [1] on SL 6 alpha 3 and install SL6 KVM with ISO image SL-6-x86_64-2010-12-17-boot.iso to run installation via http://ftp.scientificlinux.org/linux/scientific/6rolling/x86_64/os/ source […]

  2. […] Install Oracle 11gR2 on SL6 KVM at KVM-QEMU Instance on SL 6 (alpha 3) […]

Leave a comment