You are on page 1of 23

Install Oracle 11G Release 2

(11.2) on Oracle Linux 7


(OEL7)
Posted on May 3, 2014

This article presents how to install Oracle 11G on Oracle Enterprise Linux 7
(OEL7).
Read following article how to install Oracle Enterprise Linux 7: Install Oracle
Linux 7 (OEL7) (for comfort set 2G memory for your virtual machine before
proceeding with Oracle software installation).
Installation software is available on OTN version 11.2.0.1 or metalink 11.2.0.4. In
this installation Im presenting installation for 11.2.0.4 but for previous version
11.2.0.X it shouldnt be different.
Oracle software which I verified
release 11.2.0.4
p13390677_112040_Linuxx8664_1of7.zip
p13390677_112040_Linuxx8664_2of7.zip

OS configuration and preparation


OS configuration is executed as root. To login as root just execute following
command in terminal.
suroot

Add groups
requiredgroups
/usr/sbin/groupaddg501oinstall
/usr/sbin/groupaddg502dba
/usr/sbin/groupaddg503oper

Add user Oracle


/usr/sbin/useraddu502goinstallGdba,operoracle

Change password for user


passwdoracle

Add kernel parameters to /etc/sysctl.conf


kernel.shmmni=4096
kernel.shmmax=4398046511104
kernel.shmall=1073741824
kernel.sem=25032000100128

fs.aiomaxnr=1048576
fs.filemax=6815744
net.ipv4.ip_local_port_range=900065500
net.core.rmem_default=262144
net.core.rmem_max=4194304
net.core.wmem_default=262144
net.core.wmem_max=1048586

Apply kernel parameters


/sbin/sysctlp

Add following lines to set shell limits for user oracle in file
/etc/security/limits.conf
oraclesoftnproc131072

oraclehardnproc131072
oraclesoftnofile131072
oraclehardnofile131072
oraclesoftcoreunlimited
oraclehardcoreunlimited
oraclesoftmemlock50000000
oraclehardmemlock50000000

The /etc/hosts file must contain a fully qualified name for the server.
<IPaddress><fullyqualifiedmachinename><machinename>

For example.
127.0.0.1oel7oel7.dbaora.comlocalhostlocalhost.localdomain

Modify .bash_profile for user oracle in his home directory


#OracleSettings
exportTMP=/tmp

exportORACLE_HOSTNAME=oel7.dbaora.com
exportORACLE_UNQNAME=ORA11G
exportORACLE_BASE=/ora01/app/oracle
exportORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1
exportORACLE_SID=ORA11G

PATH=/usr/sbin:$PATH:$ORACLE_HOME/bin

exportLD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib;
exportCLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib;

aliascdob='cd$ORACLE_BASE'
aliascdoh='cd$ORACLE_HOME'
aliastns='cd$ORACLE_HOME/network/admin'
aliasenvo='env|grepORACLE'

umask022

Check which packages are installed and which are missing


rpmqqf'%{NAME}%{VERSION}%{RELEASE}(%{ARCH})\n'binutils\
elfutilslibelf\
elfutilslibelfdevel\
gcc\
gccc++\
glibc\
glibccommon\
glibcdevel\
glibcheaders\

ksh\
libaio\
libaiodevel\
libgcc\
libstdc++\
libstdc++devel\
make\
sysstat\
unixODBC\
unixODBCdevel

In my case it returns following


binutils2.23.52.0.112.el7(x86_64)
elfutilslibelf0.1572.el7(x86_64)
packageelfutilslibelfdevelisnotinstalled
gcc4.8.23.el7(x86_64)
gccc++4.8.23.el7(x86_64)
glibc2.1736.el7(x86_64)
glibccommon2.1736.el7(x86_64)
glibcdevel2.1736.el7(x86_64)
glibcheaders2.1736.el7(x86_64)
packagekshisnotinstalled

libaio0.3.1099.el7(x86_64)
packagelibaiodevelisnotinstalled
libgcc4.8.23.el7(x86_64)
libstdc++4.8.23.el7(x86_64)
libstdc++devel4.8.23.el7(x86_64)
make3.8219.el7(x86_64)
sysstat10.1.51.el7(x86_64)
packageunixODBCisnotinstalled
packageunixODBCdevelisnotinstalled

There are two options to install missing packages


You need to install missing from dvd. Just mount it and install missing
packages using rpm -Uvh command from directory <mount
dvd>/Packages.
NOTE Im using x86_64 version of packages

rpmUvhelfutilslibelfdevel*.x86_64.rpm
rpmUvhlibaiodevel*.x86_64.rpm
rpmUvhunixODBC*.x86_64.rpm
rpmUvhksh*.x86_64.rpm

Run yum install command for missing packages

examplehowtoinstallmanypackages
yuminstallelfutilslibelfdevel\
ksh\
libaiodevel\

unixODBC*

Create directory structure for database software

ORACLE_BASE /ora01/app/oracle
ORACLE_HOME /ora01/app/oracle/product/11.2.0/db_1

mkdirp/ora01/app/oracle/product/11.2.0/db_1
chownoracle:oinstallR/ora01

Disable secure linux by editing the /etc/selinux/config file, making sure the
SELINUX flag is set as follows. It requires REBOOT to be effective !!!
SELINUX=permissive

In Oracle Enterprise Linux 7 /tmp data is stored on tmpfs which consumes


memory and is too small. To revert it back to storage just run following
command and REBOOT machine to be effective.
systemctlmasktmp.mount

Install database software


Lets start with database software installation as oracle user.
suoracle

unzipsoftware11.2.0.4
unzipp13390677_112040_Linuxx8664_1of7.zip
unzipp13390677_112040_Linuxx8664_2of7.zip
Idefined4aliasesin.bash_profileofuseroracletomake
administrationheaven:)

[oracle@oel7~]$aliasenvocdobcdohtns

aliasenvo='env|grepORACLE'
aliascdob='cd$ORACLE_BASE'
aliascdoh='cd$ORACLE_HOME'
aliastns='cd$ORACLE_HOME/network/admin'

runaliascommandenvotodisplayenvironmentsettings
envo
ORACLE_UNQNAME=ORA11G
ORACLE_SID=ORA11G
ORACLE_BASE=/ora01/app/oracle
ORACLE_HOSTNAME=oel7.dbaora.com
ORACLE_HOME=/ora01/app/oracle/product/11.2.0/db_1

runaliascommandcdobandcdohtocheckORACLE_BASE,ORACLE_HOME
[oracle@oel7~]$cdob
[oracle@oel7oracle]$pwd
/ora01/app/oracle

[oracle@oel7db_1]$cdoh
[oracle@oel7db_1]$pwd
/ora01/app/oracle/product/11.2.0/db_1

runinstallation
./runInstall

1. Uncheck checkbox I wish to receive security updates via My Oracle Support


and then click Next button.

2. Ignore following message and click Yes button.

3. Select Skip software updates and click Next button.

4. Select Create and configure a database then click Next button.

5. Select Server Class then click Next button.

6. Select Single instance database installation and click Next button.

7. Select Typical Install and click Next button.

8. Enter database name, administration password for user and click Next
button.

9. Just click Next button.

10. Check checkbox Ignore All to ignore this error. Then click Next button.

11. Just click Yes button to continue with installation.

12. Summary screen just before installation. Click Install button.

13. Boring installation

14. I received following error during linking binaries

To fix this error edit $ORACLE_HOME/sysman/lib/ins_emagent.mk, search for the


line
$(MK_EMAGENT_NMECTL)

and replace the line with


$(MK_EMAGENT_NMECTL)lnnz11

then click Retry button


15. Database Configuration will start and create database for you.

16. You should see summary screen for your new database. Click OK button to
continue with installation.

17. In the middle of installation you will be asked to run 2 scripts as user root.
when scripts are executed just click OK button. Installation will proceed.

executescripts
/ora01/app/oraInventory/orainstRoot.sh
/ora01/app/oracle/product/11.2.0/db_1/root.sh

18. Installation completed. Just click Close button.

Post installation steps


Edit the /etc/oratab file to set restart flag for ORA11G to Y.
ORA11G:/u01/app/oracle/product/11.2.0/db_1:Y

Have a fun

Tomasz
LIKE THIS:

This entry was posted in Installations by joda3008. Bookmark the permalink.


19 THOUGHTS ON INSTALL ORACLE 11G RELEASE 2 (11.2) ON ORACLE LINUX 7 (OEL7)

You might also like