• Arun Kumar

Oracle 12cR2 Installation on Oracle Linux 7

In this article, we will be looking at Oracle 12cR2 installation on Oracle Linux 7.7 version. The steps are exactly same for OEL 6 and all other versions of OEL 7.x

Note: I prefer silent mode installation as it is quick and fast. Read more about Oracle 12cR2 silent installation on Oracle Linux 7

Software Requirements

We are going to setup OEL 7.7 virtual machine and install Oracle 12cR2 via silent method

Install Oracle Linux 7

For this demonstration purpose, I have used virtualbox VM with 4 GB RAM and 120 GB hard disk. I have setup the virtual machine with exact same steps described in the following article

Install Oracle Linux on VirtualBox (OEL 7.7)

Oracle Prerequisites

Use the YUM repository to perform all the pre-install steps. Make sure your VM is able to ping google.com before executing below command

yum install -y oracle-database-server-12cR2-preinstall

Set password for the oracle user

passwd oracle

Create directories which will hold Oracle software installation

mkdir /u01
chown -R oracle:oinstall /u01
chmod -R 775 /u01

Copy the 12cR2 software files under /u01 and unzip it

su - oracle

cd /u01
unzip linuxx64_12201_database.zip

At this stage, you have two options to install Oracle software:

  • GUI Mode &

  • Silent Mode

I will be walking you through GUI method of Oracle software installation. As mentioned earlier, read oracle 12cR2 silent installation article in case you would like to go with silent installation.

Oracle 12cR2 GUI Install

Start the runInstaller and follow the below screens to install Oracle 12cR2 software

cd /u01/database

Uncheck to disable receiving security updates and click on next. You will get a warning, just click OK to proceed

Select installation option as Install Database Software Only

Select database installation option as Single Instance database installation

Go with Enterprise Edition

Specify the Oracle installation location which is also known as ORACLE_HOME

Go with default groups and just click on Next

Install will perform pre-requisites check. If everything is good, then you should be presented with installation summary

Once the installation is done, you will be prompted to run root scripts. Copy those scripts and run as root user on the same OEL machine.

Update bash_profile

At this stage, its a good idea to update Oracle user bash_profile to reflect ORACLE_HOME. Make sure you are at the Oracle user home location

as oracle user

cd             --> this command will take you to oracle user home location

Open .bash_profile

vi .bash_profile

Delete everything and put below contents. Make sure to change ORACLE_HOME location as per your installation

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
	. ~/.bashrc

# User specific environment and startup programs
export ORACLE_HOME=/u01/app/oracle/product/
export ORACLE_SID=testdb


export PATH

Notice I have already put the ORACLE_SID variable. You must change it to the name of the database that you are going to create further.

Recent Posts

See All

MySQL Installation on Linux

This article demonstrates MySQL installation on Oracle Enterprise Linux 6.5 version. Installation of MySQL Make sure you are able to connect internet via virtual machine. Try to ping google.com and pr

Add ISO image storage repository on XenServer

If you have used VMware ESXI, its very easy to upload ISO files to the data store and create VMs. With XenServer, you must create your own ISO repository to upload ISO files. Create ISO directory Acce

Automate RMAN Backup using Shell Script

In a real environment, off course you will not manually trigger all the Oracle database backups. You need an automated mechanism to trigger RMAN backups. In this article we will look at RMAN backup au

  • Facebook
  • Twitter
  • YouTube
  • Instagram

© 2020 by DBA Genesis