Tuesday, December 2, 2025

Why and How to install Grid 19c on RHEL 8?

 Why ?

Simply we will be requested to install Oracle Grid RAC DB on Redhat RHEL 8, below is my note for this installation.

How ?

1-  OS installed + asm disks by servers admin

Done By OS and VM team
Ensure: secure boot not working for grid


# mokutil --sb-state

2- Install packages:

3- setup ASMLIB:

## linux disks for redhat :

https://access.redhat.com/solutions/315643

https://labmice.in/oraclerac/RHEL8.10/Prerequsites_OS_Oracle_RAC_RHEL8.10/

OL8/RHEL8: ASMLib: root.sh is failing with CRS-1705: Found 0 Configured Voting Files But 1 Voting Files Are Required (Doc ID 2789052.1)

 

yum install kmod-oracleasm

yum localinstall libbpf-0.6.0-6.el8.x86_64.rpm

yum localinstall oracleasmlib-2.0.12-1.el7.x86_64.rpm

yum localinstall oracleasm-support-2.1.11-2.el7.x86_64.rpm

 

https://docs.oracle.com/en/operating-systems/oracle-linux/asmlib/asmlib-ConfiguringASMLib.html#querying_asm_disk_information

 

lsblk

parted /dev/sde --script mklabel gpt mkpart primary 0% 100%

sudo oracleasm configure -i

sudo systemctl enable --now oracleasm

sudo oracleasm createdisk data1 /dev/sde1

sudo oracleasm scandisks

oracleasm listdisks

4- setup DNS records

**3 IPs for scan

** 2 IPs for vir ( added to hosts )

** hosts in DNS

5- creat directories and user for Grid

create user/groups

  groupadd -g 54321 oinstall

  groupadd -g 54329 asmadmin

  groupadd -g 54327 asmdba

  groupadd -g 54328 asmoper

  groupadd -g 54322 dba

  groupadd -g 54323 oper

  groupadd -g 54324 backupdba

  groupadd -g 54325 dgdba

  groupadd -g 54326 kmdba

  groupadd -g 54330 racdba

useradd -u 54321 -g oinstall -G dba,asmdba,backupdba,dgdba,kmdba,racdba,racdba grid

useradd -u 54331 -g oinstall -G dba,asmdba,backupdba,dgdba,kmdba,racdba,asmadmin,asmoper,oper oracle

echo "oracle123" | passwd --stdin oracle

echo "grid123" | passwd --stdin grid

 

## create directories

mkdir -p /u01/app/19.0.0/grid

mkdir -p /u01/app/grid

chown -R grid:oinstall /u01

chmod -R 775 /u01/

 

## etc hosts on both nodes

#Virtual IPs:

x.x.x.x  <hostname1>-vip   <hostname1>-vip.<domain>

x.x.x.x  <hostname2>-vip   <hostname2>-vip.<domain>

6- unzip home and apply patch during the instllation:

## patch GRID_HOME with latest page during the installation ** make sure to update OPatch version

./gridSetup.sh -applyRU /u01/patches/34762026

/u01/app/19.0.0/grid/gridSetup.sh -applyRU /u01/files/34762026 (GI Patch)

 


No comments:

Post a Comment

Why and How to install Grid 19c on RHEL 8?

  Why ? Simply we will be requested to install Oracle Grid RAC DB on Redhat RHEL 8, below is my note for this installation . How ? 1-  OS in...