• 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
./runinstaller


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


oracle-12c-install-security-updates

Select installation option as Install Database Software Only


Select database installation option as Single Instance database installation


oracle-12c-install-single-instance-database

Go with Enterprise Edition


oracle-12c-install-enterprise-edition

Specify the Oracle installation location which is also known as ORACLE_HOME


oracle-12c-install-oracle-home-location

Go with default groups and just click on Next


oracle-12c-install-operating-system-groups

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


oracle-12c-install-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
fi

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

PATH=$PATH:$HOME/.local/bin:$ORACLE_HOME/bin

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.

760 views

Recent Posts

See All

Oracle 12c to 19c Database Upgrade

In this article we will be looking at two most commonly used methods of upgrading Oracle database from 12c to 19c Pre-upgrade tasks Upgrade using DBUA Upgrade using Manual Method You can perform a dir