Hi everyone, I talk about Oracle Grid infrastructure patching operation. Before we applied Oracle Database release patching. Steps is likely but Grid patching applying in this steps.
if your run this command in oracle user ,see same error.
Also, checking OPatch release version from 6880880 documents in Oracle Support.
You must run root user !
Note: You must run patch read me and check file backup!
[root@testhost ~]# yum install -y oracle-database-preinstall-19c
[root@testhost ~]# yum update -y
[root@testhost ~]# yum install oracleasm*
In OL.8 manuel updated this package
[root@testhost ~]# rpm -ivh oracleasm-support-3.0.0-6.el8.x86_64.rpm
[root@testhost ~]# rpm -ivh oracleasmlib-3.0.0-13.el9.x86_64.rpm
[root@testhost ~]# oracleasm configure -i
[root@testhost ~]# oracleasm init
[root@testhost ~]#oracleasm createdisk DATA1 /dev/mapper/disk1
[root@testhost ~]#oracleasm createdisk DATA2 /dev/mapper/disk2
[root@testhost ~]#oracleasm createdisk DATA3 /dev/mapper/disk3
[root@testhost ~]#oracleasm createdisk DATA4 /dev/mapper/disk4
[root@testhost ~]# oracleasm scandisks
[root@testhost ~]# oracleasm listdisks
[root@testhost ~]# cd /u01/product/19c/grid
[root@testhost ~]# unzip LINUX.X64_193000_grid_home
[root@testhost ~]#export CV_ASSUME_DISTID=OL8
[oracle@testhost grid_1]$ ./gridSetup.sh
if you apply to steps with success, 19.3 GI installed successfully.
Now 19.3.0.0 grid version upgrade to 19.23.0.0
Download Patch 36233126 from patching location in OS.
[root@testhost OPatch]# ./opatchauto apply /oracle/setup/36233126/ -oh /oracle/product/19c/grid/
OPatchauto session is initiated at Tue Dec 17 15:58:08 2024
System initialization log file is /oracle/product/19c/grid/cfgtoollogs/opatchautodb/systemconfig2024-12-17_03-58-15PM.log.
Session log file is /oracle/product/19c/grid/cfgtoollogs/opatchauto/opatchauto2024-12-17_03-58-20PM.log
The id for this session is VCVY
Executing OPatch prereq operations to verify patch applicability on home /oracle/product/19c/grid
Patch applicability verified successfully on home /oracle/product/19c/grid
Executing patch validation checks on home /oracle/product/19c/grid
Patch validation checks successfully completed on home /oracle/product/19c/grid
Performing prepatch operations on CRS - bringing down CRS service on home /oracle/product/19c/grid
Prepatch operation log file location: /oracle/crsdata/testhost/crsconfig/hapatch_2024-12-17_03-59-44PM.log
CRS service brought down successfully on home /oracle/product/19c/grid
Start applying binary patch on home /oracle/product/19c/grid
Binary patch applied successfully on home /oracle/product/19c/grid
Running rootadd_rdbms.sh on home /oracle/product/19c/grid
Successfully executed rootadd_rdbms.sh on home /oracle/product/19c/grid
Performing postpatch operations on CRS - starting CRS service on home /oracle/product/19c/grid
Postpatch operation log file location: /oracle/crsdata/testhost/crsconfig/hapatch_2024-12-17_04-05-39PM.log
CRS service started successfully on home /oracle/product/19c/grid
OPatchAuto successful.
--------------------------------Summary--------------------------------
Patching is completed successfully. Please find the summary as follows:
Host:testhost
SIHA Home:/oracle/product/19c/grid
Version:19.0.0.0.0
Summary:
==Following patches were SUCCESSFULLY applied:
Patch: /oracle/setup/36233126/36233263
Log: /oracle/product/19c/grid/cfgtoollogs/opatchauto/core/opatch/opatch2024-12-17_16-00-23PM_1.log
Patch: /oracle/setup/36233126/36233343
Log: /oracle/product/19c/grid/cfgtoollogs/opatchauto/core/opatch/opatch2024-12-17_16-00-23PM_1.log
Patch: /oracle/setup/36233126/36240578
Log: /oracle/product/19c/grid/cfgtoollogs/opatchauto/core/opatch/opatch2024-12-17_16-00-23PM_1.log
Patch: /oracle/setup/36233126/36383196
Log: /oracle/product/19c/grid/cfgtoollogs/opatchauto/core/opatch/opatch2024-12-17_16-00-23PM_1.log
Patch: /oracle/setup/36233126/36460248
Log: /oracle/product/19c/grid/cfgtoollogs/opatchauto/core/opatch/opatch2024-12-17_16-00-23PM_1.log
OPatchauto session completed at Tue Dec 17 16:09:23 2024
Time taken to complete the session 11 minutes, 8 seconds
[oracle@testhost ~]$ sqlplus / as sysdba
SQL*Plus: Release 19.0.0.0.0 - Production on Tue Dec 17 16:32:00 2024
Version 19.23.0.0.0
Copyright (c) 1982, 2023, Oracle. All rights reserved.
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.23.0.0.0