Install Grid Infrastructure for Standalone Server in Oracle 19c : In this article we will see how to Install Grid Infrastructure for Standalone Server in Oracle 19c on Linux.
Tables of contents for this Intallation :
- Install the prerequisites.
- Install the Oracle Grid Infrastructure Standalone.
- Check the Grid resource.
Install the prerequisites :
Install the package oracle-database-preinstall-19c :
[root@orakldba ~]# yum search preinstall
Loaded plugins: langpacks, ulninfo
======================================================================= N/S matched: preinstall ========================================================================
oracle-database-preinstall-19c.x86_64 : Oracle Database Preinstallation RPM
oracle-database-preinstall-21c.x86_64 : Oracle Database Preinstallation RPM
oracle-database-preinstall-18c.x86_64 : Sets the system for Oracle Database single instance and Real Application Cluster install for Oracle Linux 7
oracle-database-server-12cR2-preinstall.x86_64 : Sets the system for Oracle Database single instance and Real Application Cluster install for Oracle Linux 7
oracle-rdbms-server-11gR2-preinstall.x86_64 : Sets the system for Oracle single instance and Real Application Cluster install for Oracle Linux 7
oracle-rdbms-server-12cR1-preinstall.x86_64 : Sets the system for Oracle Database single instance and Real Application Cluster install for Oracle Linux 7
Name and summary matches only, use "search all" for everything.
[root@orakldba ~]#
[root@orakldba ~]# yum install oracle-database-preinstall-19c.x86_64 -y
[root@orakldba ~]#
Create and configure Oracle ASM disks :
Click Here for Create and Configure Oracle ASM Disk in Linux.
Create the Grid_home directory and unzip Oracle 19c Grid Database Software :
[root@orakldba ~]# mkdir -p /u01/app/grid
[root@orakldba ~]#
[root@orakldba ~]# chown -R oracle:oinstall /u01
[root@orakldba ~]#
[root@orakldba ~]# su - oracle
Last login: Sat Aug 28 23:32:52 IST 2021 on pts/1
[oracle@orakldba ~]$
[oracle@orakldba ~]$ cd /u02/
[oracle@orakldba u02]$ ls -ltrh
total 2.7G
-rwxrwxr-x. 1 oracle oinstall 2.7G Aug 28 22:27 LINUX.X64_193000_grid_home.zip
[oracle@orakldba u02]$
[oracle@orakldba u02]$ unzip LINUX.X64_193000_grid_home.zip -d /u01/app/grid/
Add some asm groups as given below :
[root@orakldba ~]# id oracle
uid=54321(oracle) gid=54321(oinstall) groups=54321(oinstall),54322(dba),54323(oper),54324(backupdba),54325(dgdba),54326(kmdba),54330(racdba)
[root@orakldba ~]#
[root@orakldba ~]# groupadd -g 54327 asmdba
[root@orakldba ~]# groupadd -g 54328 asmoper
[root@orakldba ~]# groupadd -g 54329 asmadmin
[root@orakldba ~]#
[root@orakldba ~]# usermod -g oinstall -G dba,oper,backupdba,dgdba,kmdba,asmdba,asmoper,asmadmin,racdba oracle
[root@orakldba ~]#
[root@orakldba ~]# id oracle
uid=54321(oracle) gid=54321(oinstall) groups=54321(oinstall),54322(dba),54323(oper),54324(backupdba),54325(dgdba),54326(kmdba),54330(racdba),54327(asmdba),54328(asmoper),54329(asmadmin)
[root@orakldba ~]#
If possible take restart the server after all prerequisites installation done.
Install the Oracle Grid Infrastructure Standalone :
Install the package cvudisk :
[root@orakldba ~]# rpm -ivh /u01/app/grid/cv/rpm/cvuqdisk-1.0.10-1.rpm
Preparing... ################################# [100%]
Using default group oinstall to install package
Updating / installing...
1:cvuqdisk-1.0.10-1 ################################# [100%]
[root@orakldba ~]#
Run gridSetup.sh :
[oracle@orakldba ~]$ cd /u01/app/grid/
[oracle@orakldba grid]$
[oracle@orakldba grid]$ ./gridSetup.sh
Launching Oracle Grid Infrastructure Setup Wizard...
The response file for this session can be found at:
/u01/app/grid/install/response/grid_2021-08-29_01-37-13AM.rsp
You can find the log of this install session at:
/tmp/GridSetupActions2021-08-29_01-37-13AM/gridSetupActions2021-08-29_01-37-13AM.log
You can find the log of this install session at:
/u01/app/oraInventory/logs/UpdateNodeList2021-08-29_01-37-13AM.log
Moved the install session logs to:
/u01/app/oraInventory/logs/GridSetupActions2021-08-29_01-37-13AM
[oracle@orakldba grid]$
Grid Setup Option :
To configure Oracle Grid Infrastructure for a Standalone Server you need to select as given below.
Create the diskgroup DATA :
Set up users password :
If you have an Oracle Enterprise Manager Cloud Control and want to configure it then you can specify the deatils :
Manage Groups :
Specify Installtion Locations for GRID_HOME and GRID_BASE directory :
Create Inventory :
Root script execution configuration :
For automatic root scripts install, set the Linux user root password or sudoers user. Here we run root scripts manually as root user.
Prerequisite Checks :
You should set up all the prerequisites.
Setup summary :
Installation started :
Need to run below two scripts as root user :
[root@orakldba ~]# /u01/app/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
[root@orakldba ~]#
[root@orakldba ~]# /u01/app/grid/root.sh
Performing root user operation.
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/grid
Enter the full pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /u01/app/grid/crs/install/crsconfig_params
The log of current session can be found at:
/u01/app/grid_base/crsdata/orakldba/crsconfig/roothas_2021-08-29_01-52-49AM.log
2021/08/29 01:53:04 CLSRSC-363: User ignored prerequisites during installation
LOCAL ADD MODE
Creating OCR keys for user 'oracle', privgrp 'oinstall'..
Operation successful.
LOCAL ONLY MODE
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4664: Node orakldba successfully pinned.
2021/08/29 01:53:41 CLSRSC-330: Adding Clusterware entries to file 'oracle-ohasd.service'
orakldba 2021/08/29 01:56:22 /u01/app/grid_base/crsdata/orakldba/olr/backup_20210829_015622.olr 724960844
2021/08/29 01:56:28 CLSRSC-327: Successfully configured Oracle Restart for a standalone server
[root@orakldba ~]#
Installation Finish :
Check The Grid Resources Status :
[oracle@orakldba ~]$ ps -ef | grep pmon
oracle 12259 1 0 01:59 ? 00:00:00 asm_pmon_+ASM
oracle 12607 11999 0 02:00 pts/1 00:00:00 grep --color=auto pmon
[oracle@orakldba ~]$
[oracle@orakldba ~]$ ps -ef | grep tns
root 15 2 0 01:34 ? 00:00:00 [netns]
oracle 11552 1 0 01:58 ? 00:00:00 /u01/app/grid/bin/tnslsnr LISTENER -no_crs_notify -inherit
oracle 12669 11999 0 02:00 pts/1 00:00:00 grep --color=auto tns
[oracle@orakldba ~]$
[oracle@orakldba ~]$
[oracle@orakldba ~]$ . oraenv
ORACLE_SID = [+ASM] ? +ASM
The Oracle base remains unchanged with value /u01/app/grid_base
[oracle@orakldba ~]$
[oracle@orakldba ~]$
[oracle@orakldba ~]$ crsctl stat res -t
--------------------------------------------------------------------------------
Name Target State Server State details
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
ONLINE ONLINE orakldba STABLE
ora.LISTENER.lsnr
ONLINE ONLINE orakldba STABLE
ora.asm
ONLINE ONLINE orakldba Started,STABLE
ora.ons
OFFLINE OFFLINE orakldba STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.cssd
1 ONLINE ONLINE orakldba STABLE
ora.diskmon
1 OFFLINE OFFLINE STABLE
ora.evmd
1 ONLINE ONLINE orakldba STABLE
--------------------------------------------------------------------------------
[oracle@orakldba ~]$
I hope my written content will helped you. Your suggestions/feedback are most welcome from orakldba.com.
Keep learning… Have a great day!!!
Please comment here for your any query related to above content. You can write to mail me through : orakldba@gmail.com.
1 thought on “Install Grid Infrastructure for Standalone Server in Oracle 19c”