INSTALLATION OF ORACLE 11g Release 2 on CentOS 6.5

By -
Share:

INSTALLATION OF ORACLE 11g Release 2 on CentOS 6.5

Operating System: CentOS 6.5 (64-bit)

Database: Oracle 11g Release2 (64-bit)

Machine: VM Ware VM

RAM: 2GB

Processor count: 01

Hard Disk: 40 GB

This blog describes the installation of Oracle 11g Release 2 on CentOS 6.5. It is expected that the reader has sufficient knowledge of installation and configuration of Linux Operating system.

STEP-1 Configure YUM repository to download Oracle dependencies

# cd /etc/yum.repos.d

# wget https://public-yum.oracle.com/public-yum-ol6.repo

If case you received Certificate error then, use following command

# wget https://public-yum.oracle.com/public-yum-ol6.repo –no-check-certificate

clip_image002

STEP-2 Import GPG Keys

wget https://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6 -O /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle

If case you received Certificate error, then use following command

wget https://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6 -O /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle –no-check-certificate

clip_image004

STEP-3 Install Oracle Dependencies

Oracle maintains an “Oracle Public Yum” repository which provides all the dependencies through YUM command. The package name is “oracle-rdbms-server-11gR2-preinstall”

# yum install oracle-rdbms-server-11gR2-preinstall

clip_image006

clip_image008

STEP-4 Setup HostName

# vi /etc/hosts

clip_image010

# vi /etc/sysconfig/network

clip_image012

STEP-5 Oracle User Settings

clip_image013

STEP-6 Modify entries in “90-nproc.conf” file

# vi /etc/security/limits.d/90-nproc.conf

clip_image015

STEP-7 Set selinux to “permissive” mode

# vi /etc/selinux/config

clip_image016

REBOOT the machine

After rebooting the machine, login as “oracle”. You can also login as “root” and later “su – oracle” in terminal to continue configuration.

STEP-8 Modify “.bash_profile” for oracle user

$ vi .bash_profile

clip_image018

STEP-9 Configure X Server access for oracle user

Switch to “root” user and issue following command to allow “oracle” user to use X Server

clip_image019

STEP-10 Create directories and set permissions

clip_image021

STEP-11 Download Oracle Database software

Visit the Oracle website and download the software matching your Operating System.

clip_image023

clip_image025

STEP-12 Install Oracle

Switch to “oracle” user and extract both the downloaded files one by one in /home/oracle directory.

clip_image027

A directory called “database” should be created, go inside the directory and launch the Oracle Universal Installer

clip_image029

clip_image031

clip_image033clip_image035

clip_image037clip_image039

Important: The prerequisite check box displayed below help simplify the process by “Fix and Check Again” button, by pressing it, the installer itself install the missing prerequisites. If this button is not highlighted, you need to use YUM or manually download the RPMS to settle the prerequisites. Moreover, if you have the higher version of same packages already installed on machines, choose “Ignore All” to continue with install process. In many cases, only the “pdksh” package has to be downloaded and installed manually as it is not in the Oracle repository.

clip_image041

clip_image043

If you encounter conflict error of “ksh” package. Remove existing package forcefully and install the pdksh package.

# rpm -e ksh-20100621-19.el6_4.4.i686 –nodeps

# rpm -ivh pdksh-5.2.14-2.i386.rpm

Press the “Save Response File” button if you want to keep a copy of installation steps on the system.

clip_image045

clip_image047

Oracle Software installation progress.

 

clip_image049

Click the “Password Management” button

clip_image051

 

For now, set password for user “SYS” only and click on OK button.

clip_image053

clip_image055

These scripts need to be executed as the “root” user. Switch to terminal window, go to the path shown in the dialog box and execute the scripts one by one. Click on “OK” button when scripts execution is completed.

clip_image057

The installation of Oracle Database is now successful.

clip_image059

Open the browser and type https://ipofserver:1158/em/ to navigate to the Oracle Enterprise Manager 11g page. Type “SYS” in the “User Name” box and type password in the “Password” box.

clip_image061

Oracle Enterprise Manager is now ready for use.

clip_image063

Share: