Oracle 12c 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 12c 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 -p /u01/app/oracle/product/12.2.0.1
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
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
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.
Further Read
Related Posts
Heading 2
Add paragraph text. Click “Edit Text” to customize this theme across your site. You can update and reuse text themes.