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
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
If case you received Certificate error then, use following command
# wget https://public-yum.oracle.com/public-yum-ol6.repo –no-check-certificate
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
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
STEP-4 Setup HostName
# vi /etc/hosts
# vi /etc/sysconfig/network
STEP-5 Oracle User Settings
STEP-6 Modify entries in “90-nproc.conf” file
# vi /etc/security/limits.d/90-nproc.conf
STEP-7 Set selinux to “permissive” mode
# vi /etc/selinux/config
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
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
STEP-10 Create directories and set permissions
STEP-11 Download Oracle Database software
Visit the Oracle website and download the software matching your Operating System.
STEP-12 Install Oracle
Switch to “oracle” user and extract both the downloaded files one by one in /home/oracle directory.
A directory called “database” should be created, go inside the directory and launch the Oracle Universal Installer
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.
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.
Oracle Software installation progress.
Click the “Password Management” button
For now, set password for user “SYS” only and click on OK button.
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.
The installation of Oracle Database is now successful.
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.
Oracle Enterprise Manager is now ready for use.