12cR2 GRID installation on Linux – In this article I have shared the 12cR2 Grid Installation steps on standalone server. Hopefully after reading this blog you will be able to install the grid software on your local machine and steps are same in case of real-time environments.
Before 11g GRID will be part of DB software there is no separate software. In today life Oracle provided the GRID and DB setup separately to mange the services conventionally.
You can easily apply PSU on individual GRID in that case there are some other benefits oracle provided.
In this article we will discuss on GRID Installation on Oracle Linux Server 7.9 64-bit. The minimum of 2G swap space required for installing the binaries and secure Linux set to permissive.
To Download the Software
Unzip Files
Oracle Installation Prerequisites
Automatic Setup Configuration
Manual Setup Configuration
Additional task
GRID Installation
Oracle Database Software Downloads :
You can download the Oracle software from OTN or MOS as per your environment.
OTN: Oracle Universal Installations (OUI) Software download
Make the following directories to hold the 12C R2 GRID ASM binaries.:
[test1@testserver01.com ~]$ hostname
testserver01.com
[test1@testserver01.com ~]$ sudo -iu grid
[grid@testserver01.com ~]$
[grid@testserver01.com gi]$ pwd
/grid/gi
[grid@testserver01.com gi]$ mkdir -p 12.2.0
[grid@testserver01.com 12.2.0]$ pwd
/grid/gi/12.2.0
[grid@testserver01.com 12.2.0]$ chmod -R 777 /grid/gi/12.2.0
Software Location
[grid@testserver01.com dumpfile]$ pwd
/u01/backup/dumpfile
[grid@testserver01.com dumpfile]$ ls -ltr linuxx64_12201_grid_home.zip
-rwxrwxrwx 1 grid dba 2994687209 Jul 11 06:09 linuxx64_12201_grid_home.zip
Unzip the linuxx64_12201_grid_home.zip file under GRID OS user.
unzip linuxx64_12201_grid_home.zip -d /grid/gi/12.2.0
Prerequisites for GRID Installation :
To the Automatic Setup Configuration or the Automatic Setup Configuration there are some basic prerequisites which must be completed.
Automatic Setup Configuration:
We can use the Yum repository in Linux server to install any RPM (Redhat Package Manager). To use the Yum we must have installed Yum Repos. in the server.
yum search preinstall
yum install oracle-database-server-12cR2-preinstall.x86_64
Also Install the oracleasm-support package via yum server.
yum install oracleasm-support.x86_64
Install cvuqdisk-1.0.10-1.rpm on grid.
rpm -ivh cvuqdisk-1.0.10-1.rpm
Additional Setup Configuration:
Whether you did the manual or automatic setup we must check the below parameter during the database installation and set it disabled.
Set secure Linux disabled by editing the “/etc/selinux/config” file.
SELINUX=permissive
Save the above changes and restart the server.
setenforce Permissive
If the Linux firewall is enabled, we need to stop the service and disable it.
Run this below commands via root owner to stop the firewall :
systemctl stop firewalld
systemctl disable firewalld
If you have VNC serve so take the login of your machine and run the installation. In case if there is any issue while getting the GUI screen you can also run the below command.
xhost + <machine-name>
Add the following lines at the end of the “.bash_profile” file.
[grid@mytestserver1 ]$ cat .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
export HISTSIZE=20000
HISTTIMEFORMAT='%F %T %t'
export HISTFILE
export ORACLE_SID=+ASM
export ORACLE_HOME=/grid/gi/12.2.0
PATH=$ORACLE_HOME/bin:$PATH; export PATH
export TMP=$HOME/tmp
ESC:wq
After set the above parameter you need to re-login again to same OS user to apply the bash parameter changes in effect.
or you can use the below command to set it immediately.
. ./.bash_profile
12cR2 GRID installation on Linux
As grid user, execute installation script
Run – gridSetup.sh
cd /grid/gi/12.2.0
./gridSetup.sh
Setup configuration – select the software only

Cluster information

Set the Operating system group – dba

Click next and the click on YES button.

Specify software installation location

Inventory location

Root script execution configuration – click next

Check the prerequisite check

Click yes

Summary of configuration path.

Install Product

See the script that need to be run via root owner.

Run it on root.

Click on Finish

NOTE – Again we need to run the setup file to create the ASM disk group and re-configure the HAS services on ASM instance.
cd /grid/gi/12.2.0
./gridSetup.sh
Choose Configure grid Infrastructure for standalone server.

Create ASM DISK group.

Use the same password for for SYS and ASMSNMP.

Click YES

Uncheck Enterprise manager (EM)

Click Next

Perquisite Check

Summary

Install Product

Run the below script on root owner.

Click Next

Finish

GRID software installation is completed successfully and we have configured the ASM instance.
Please share this Blog with your colleagues or friends. Your suggestions and feedback are very helpful for everyone who come to this site and learn it from oracleocpworld.com.
Please comment here for your any query related to above post. You can email me on : oracleocpworld@gmail.com.
Pingback: Oracle Database 12c installation