Home » , » Prepare Linux virtual machine for 11gR2 installation on Linux 5.x

Prepare Linux virtual machine for 11gR2 installation on Linux 5.x

Written By Srikrishna Murthy Annam on Tuesday, September 21, 2010 | 4:31 AM

There are some OS preparation steps to be performed before installing database on linux.

Pls refer the Master Note ID : 851598.1 and complete all the steps specified in the note as per your OS.

In the present article, i am using the OEL 5.4 (32-bit) as OS and following the note id : 880936.1 to complete all the preparatory steps for 11gR2 database creation.

Create the required user and groups for the installation


  1. groupadd -g 1000 oinstall

  2. groupadd -g 1200 dba

  3. useradd -u 1100 -g oinstall -G dba oracle

  4. mkdir -p /u01/app/oracle

  5. chown -R oracle:oinstall /u01/app

  6. chmod -R 775 /u01/app


Required RPMs installation :

Make sure that the following RPMs are installed,


  1. binutils-2.17.50.0.6-2.el5

  2. compat-libstdc++-33-3.2.3-61

  3. elfutils-libelf-0.125-3.el5

  4. glibc-2.5-24

  5. glibc-common-2.5-12

  6. ksh-20060214-1.7

  7. libaio-0.3.106

  8. libgcc-4.1.2-42.el5

  9. libstdc++-4.1.2-42

  10. make-3.81-1.1


  1. elfutils-libelf-devel-0.125-3.el5.i386.rpm

  2. a.requires elfutils-libelf-devel-static-0.125-3.el5.i386.rpm as a prerequisite.

  3. b.elfutils-libelf-devel and elfutils-libelf-devel-static each depend upon the other. Therefore, they must be installed together, in one (1"rpm -ivh" command as follows:

  4. rpm -ivh elfutils-libelf-devel-0.125-3.el5.i386.rpm elfutils-libelf-devel-static-0.125-3.el5.i386.rpm

  5. kernel-headers-2.6.18-92.el5.i386.rpm

  6. glibc-headers-2.5-24.i386.rpm

  7. glibc-devel-2.5-24.i386.rpm

  8. libstdc++-devel-4.1.2-42.el5.i386.rpm

  9. libgomp-4.1.2-42.el5.i386.rpm

  10. gcc-4.1.2-42.el5.i386.rpm

  11. gcc-c++-4.1.2-42.el5.i386.rpm

  12. libaio-devel-0.3.106-3.2.i386.rpm

  13. sysstat-7.0.2-1.el5.i386.rpm

  14. unixODBC-2.2.11-7.1.i386.rpm

  15. unixODBC-devel-2.2.11-7.1.i386.rpm

NOTE :
rpm -qa | grep -i <rpm name>  ==> to check if the rpm is installed or not
rpm -ivh <rpm name>    ==> to install rpm
rpm -e <rpm name>  ==> to remove package from the OS


In my OS following four RPMs are not installed.

libaio-devel-0.3.106-3.2.i386.rpm
sysstat-7.0.2-1.el5.i386.rpm
unixODBC-2.2.11-7.1.i386.rpm
unixODBC-devel-2.2.11-7.1.i386.rpm

Session Log :
[root@localhost ~]# rpm -qa | grep -i  binutils-
binutils-2.17.50.0.6-12.el5
[root@localhost ~]# rpm -qa | grep -i  compat-libstdc
compat-libstdc++-296-2.96-138
compat-libstdc++-33-3.2.3-61
[root@localhost ~]# rpm -qa | grep -i  elfutils-libelf
elfutils-libelf-0.137-3.el5
elfutils-libelf-devel-static-0.137-3.el5
elfutils-libelf-devel-0.137-3.el5
[root@localhost ~]# rpm -qa | grep -i  glibc-
glibc-headers-2.5-42
glibc-common-2.5-42
glibc-devel-2.5-42
glibc-2.5-42
[root@localhost ~]# rpm -qa | grep -i  glibc-common-
glibc-common-2.5-42
[root@localhost ~]# rpm -qa | grep -i  ksh-
ksh-20080202-14.el5
[root@localhost ~]# rpm -qa | grep -i  libaio-
libaio-0.3.106-3.2
[root@localhost ~]# rpm -qa | grep -i  libgcc-
libgcc-4.1.2-46.el5
compat-libgcc-296-2.96-138
[root@localhost ~]# rpm -qa | grep -i  libstdc++
compat-libstdc++-296-2.96-138
libstdc++-4.1.2-46.el5
libstdc++-devel-4.1.2-46.el5
compat-libstdc++-33-3.2.3-61
[root@localhost ~]# rpm -qa | grep -i  make-
imake-1.0.2-3
make-3.81-3.el5
automake-1.9.6-2.1
[root@localhost ~]# rpm -qa | grep -i  elfutils-libelf-devel
elfutils-libelf-devel-static-0.137-3.el5
elfutils-libelf-devel-0.137-3.el5
[root@localhost ~]# rpm -qa | grep -i  kernel-headers-
kernel-headers-2.6.18-164.el5
[root@localhost ~]# rpm -qa | grep -i  glibc-headers-
glibc-headers-2.5-42
[root@localhost ~]# rpm -qa | grep -i  glibc-devel-
glibc-devel-2.5-42
[root@localhost ~]# rpm -qa | grep -i  libstdc++-devel-
libstdc++-devel-4.1.2-46.el5
[root@localhost ~]# rpm -qa | grep -i  libgomp-
libgomp-4.4.0-6.el5
[root@localhost ~]# rpm -qa | grep -i  gcc-
libgcc-4.1.2-46.el5
gcc-c++-4.1.2-46.el5
compat-libgcc-296-2.96-138
gcc-4.1.2-46.el5
gcc-gfortran-4.1.2-46.el5
[root@localhost ~]# rpm -qa | grep -i  libaio-devel
[root@localhost ~]# rpm -qa | grep -i  sysstat-
[root@localhost ~]# rpm -qa | grep -i  unixODBC
[root@localhost ~]#

[root@localhost Server]# rpm -ivh unixODBC-2.2.11-7.1.i386.rpm
warning: unixODBC-2.2.11-7.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing...                ########################################### [100%]
1:unixODBC               ########################################### [100%]
[root@localhost Server]#

[root@localhost Server]# rpm -ivh libaio-devel-0.3.106-3.2.i386.rpm
warning: libaio-devel-0.3.106-3.2.i386.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing...                ########################################### [100%]
1:libaio-devel           ########################################### [100%]
[root@localhost Server]# rpm -ivh unixODBC-devel-2.2.11-7.1.i386.rpm
warning: unixODBC-devel-2.2.11-7.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing...                ########################################### [100%]
1:unixODBC-devel         ########################################### [100%]
[root@localhost Server]# rpm -ivh sysstat-7.0.2-3.el5.i386.rpm
warning: sysstat-7.0.2-3.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing...                ########################################### [100%]
1:sysstat                ########################################### [100%]
[root@localhost Server]#


Following files should be modified as per the following session log:
/etc/security/limits.conf
/etc/pam.d/login
/etc/profile
/etc/sysctl.conf  ==> Can be modified while installing using OUI.

Session Log
[root@localhost ~]# diff /etc/security/limits.conf  /etc/security/limits.conf_bak
49,52c49
< oracle soft nproc 2047
< oracle hard nproc 16384
< oracle soft nofile 1024
< oracle hard nofile 65536
---
>
[root@localhost ~]#

[root@localhost ~]# diff /etc/pam.d/login /etc/pam.d/login_bak
15d14
< session required pam_limits.so
[root@localhost ~]#

[root@localhost ~]# diff /etc/profile /etc/profile_bak
57,65d56
< if [ $USER = "oracle" ]; then
<     if [ $SHELL = "/bin/ksh" ]; then
<        ulimit -u 16384
<        ulimit -n 65536
<     else
<        ulimit -u 16384 -n 65536
<     fi
< fi
<
[root@localhost ~]#


Make sure the following versions are verified.
[root@localhost ~]# gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-46)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[root@localhost ~]# g++ --version
g++ (GCC) 4.1.2 20080704 (Red Hat 4.1.2-46)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[root@localhost ~]#


Finally add the following entries in the oracle user profile ( .bash_profile )
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/oracle/11.2.0/db_1
ORACLE_SID=TESTDB
PATH=$ORACLE_HOME/bin:$PATH
export ORACLE_BASE
export ORACLE_HOME
export ORACLE_SID
export PATH

Now the OS is ready for installing 11gR2 database.

Hope it helps
SRI
Share this article :

Related Articles By Category



+ comments + 2 comments

[...] the linux machine ( Linux 5.4 ) for the OEM grid control 11g installation. Please use the article Prepare Linux virtual machine for 11gR2 installation on Linux 5.x. Though this is to prepare the linux machine for 11gR2 database, it hold good for OEM 11g [...]

[...] linux machine ( Linux 5.4 ) for the OEM grid control 10201 installation. Please use the article  Prepare Linux virtual machine for OEM Grid Control Installation. Though this is to prepare the linux machine for 11gR2 database, it holds good for OEM 10201 [...]

Post a Comment

Thank you for visiting our site and leaving your valuable comment.

 
Support :
Copyright © 2013. askMLabs - All Rights Reserved
Proudly powered by Blogger