Steps to apply PSU patch in GRID Home,
1. Download the PSU patch from oracle support.
2. Check the opatch version before applying the patch. If you have older opatch version, then update to the latest version.
[oracle@test:+ASM] export ORACLE_HOME=/u01/app/oracle/product/19.3.0.0/grid
[oracle@test:+ASM] export PATH=$ORACLE_HOME/OPatch:$PATH
[oracle@test:+ASM] which opatch
/u01/app/oracle/product/19.3.0.0/grid/OPatch/opatch
[oracle@test:+ASM] opatch version
OPatch Version: 12.2.0.1.23OPatch succeeded.
[oracle@test:+ASM]
3. Check prerequisites
[oracle@test:+ASM] $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /u01/PSU_APR_2021/19c/GI_RELEASE_UPDATE_REVISION_19.9.2.0.0/32579970/31773437
Oracle Interim Patch Installer version 12.2.0.1.23
Copyright (c) 2021, Oracle Corporation. All rights reserved.PREREQ session
Oracle Home : /u01/app/oracle/product/19.3.0.0/grid
Central Inventory : /u01/oraInventory
from : /u01/app/oracle/product/19.3.0.0/grid/oraInst.loc
OPatch version : 12.2.0.1.23
OUI version : 12.2.0.7.0
Log file location : /u01/app/oracle/product/19.3.0.0/grid/cfgtoollogs/opatch/opatch2021-06-16_19-22-48PM_1.logInvoking prereq “checkconflictagainstohwithdetail”
Prereq “checkConflictAgainstOHWithDetail” passed.
OPatch succeeded.
[oracle@test:+ASM] $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /u01/PSU_APR_2021/19c/GI_RELEASE_UPDATE_REVISION_19.9.2.0.0/32579970/32421507
Oracle Interim Patch Installer version 12.2.0.1.23
Copyright (c) 2021, Oracle Corporation. All rights reserved.PREREQ session
Oracle Home : /u01/app/oracle/product/19.3.0.0/grid
Central Inventory : /u01/oraInventory
from : /u01/app/oracle/product/19.3.0.0/grid/oraInst.loc
OPatch version : 12.2.0.1.23
OUI version : 12.2.0.7.0
Log file location : /u01/app/oracle/product/19.3.0.0/grid/cfgtoollogs/opatch/opatch2021-06-16_19-23-09PM_1.logInvoking prereq “checkconflictagainstohwithdetail”
Prereq “checkConflictAgainstOHWithDetail” passed.
OPatch succeeded.
[oracle@test:+ASM] $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /u01/PSU_APR_2021/19c/GI_RELEASE_UPDATE_REVISION_19.9.2.0.0/32579970/32584670
Oracle Interim Patch Installer version 12.2.0.1.23
Copyright (c) 2021, Oracle Corporation. All rights reserved.PREREQ session
Oracle Home : /u01/app/oracle/product/19.3.0.0/grid
Central Inventory : /u01/oraInventory
from : /u01/app/oracle/product/19.3.0.0/grid/oraInst.loc
OPatch version : 12.2.0.1.23
OUI version : 12.2.0.7.0
Log file location : /u01/app/oracle/product/19.3.0.0/grid/cfgtoollogs/opatch/opatch2021-06-16_19-23-32PM_1.logInvoking prereq “checkconflictagainstohwithdetail”
Prereq “checkConflictAgainstOHWithDetail” passed.
OPatch succeeded.
[oracle@test:+ASM] $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /u01/PSU_APR_2021/19c/GI_RELEASE_UPDATE_REVISION_19.9.2.0.0/32579970/32618524
Oracle Interim Patch Installer version 12.2.0.1.23
Copyright (c) 2021, Oracle Corporation. All rights reserved.PREREQ session
Oracle Home : /u01/app/oracle/product/19.3.0.0/grid
Central Inventory : /u01/oraInventory
from : /u01/app/oracle/product/19.3.0.0/grid/oraInst.loc
OPatch version : 12.2.0.1.23
OUI version : 12.2.0.7.0
Log file location : /u01/app/oracle/product/19.3.0.0/grid/cfgtoollogs/opatch/opatch2021-06-16_19-23-53PM_1.logInvoking prereq “checkconflictagainstohwithdetail”
Prereq “checkConflictAgainstOHWithDetail” passed.
OPatch succeeded.
[oracle@test:+ASM]
4. Create patch list file,
[oracle@test:+ASM] cat > /tmp/patch_list_gihome.txt
/u01/PSU_APR_2021/19c/GI_RELEASE_UPDATE_REVISION_19.9.2.0.0/32579970/32584670
/u01/PSU_APR_2021/19c/GI_RELEASE_UPDATE_REVISION_19.9.2.0.0/32579970/32618524
/u01/PSU_APR_2021/19c/GI_RELEASE_UPDATE_REVISION_19.9.2.0.0/32579970/32584670
/u01/PSU_APR_2021/19c/GI_RELEASE_UPDATE_REVISION_19.9.2.0.0/32579970/32618524
[oracle@test:+ASM] cat /tmp/patch_list_gihome.txt
/u01/PSU_APR_2021/19c/GI_RELEASE_UPDATE_REVISION_19.9.2.0.0/32579970/32584670
/u01/PSU_APR_2021/19c/GI_RELEASE_UPDATE_REVISION_19.9.2.0.0/32579970/32618524
/u01/PSU_APR_2021/19c/GI_RELEASE_UPDATE_REVISION_19.9.2.0.0/32579970/32584670
/u01/PSU_APR_2021/19c/GI_RELEASE_UPDATE_REVISION_19.9.2.0.0/32579970/32618524
5. Run the opatch command to check if enough free space is available in the Grid Infrastructure Home:
[oracle@test:+ASM] $ORACLE_HOME/OPatch/opatch prereq CheckSystemSpace -phBaseFile /tmp/patch_list_gihome.txt
Oracle Interim Patch Installer version 12.2.0.1.23
Copyright (c) 2021, Oracle Corporation. All rights reserved.PREREQ session
Oracle Home : /u01/app/oracle/product/19.3.0.0/grid
Central Inventory : /u01/oraInventory
from : /u01/app/oracle/product/19.3.0.0/grid/oraInst.loc
OPatch version : 12.2.0.1.23
OUI version : 12.2.0.7.0
Log file location : /u01/app/oracle/product/19.3.0.0/grid/cfgtoollogs/opatch/opatch2021-06-16_19-25-32PM_1.logInvoking prereq “checksystemspace”
Prereq “checkSystemSpace” passed.
OPatch succeeded.
6. Analyze if there are any conflicts
[oracle@test:+ASM] sudo $ORACLE_HOME/OPatch/opatchauto apply /u01/PSU_APR_2021/19c/GI_RELEASE_UPDATE_REVISION_19.9.2.0.0/32579970/ -oh /u01/app/oracle/product/19.3.0.0/grid -analyzeOPatchauto session is initiated at Wed Jun 16 19:26:08 2021
System initialization log file is /u01/app/oracle/product/19.3.0.0/grid/cfgtoollogs/opatchautodb/systemconfig2021-06-16_07-26-16PM.log.
Session log file is /u01/app/oracle/product/19.3.0.0/grid/cfgtoollogs/opatchauto/opatchauto2021-06-16_07-26-22PM.log
The id for this session is W1BIExecuting OPatch prereq operations to verify patch applicability on home /u01/app/oracle/product/19.3.0.0/grid
Patch applicability verified successfully on home /u01/app/oracle/product/19.3.0.0/gridExecuting patch validation checks on home /u01/app/oracle/product/19.3.0.0/grid
Patch validation checks successfully completed on home /u01/app/oracle/product/19.3.0.0/gridOPatchAuto successful.
——————————–Summary——————————–
Analysis for applying patches has completed successfully:
Host:test
SIHA Home:/u01/app/oracle/product/19.3.0.0/grid
Version:19.0.0.0.0==Following patches were SKIPPED:
Patch: /u01/PSU_APR_2021/19c/GI_RELEASE_UPDATE_REVISION_19.9.2.0.0/32579970/31773437
Log: /u01/app/oracle/product/19.3.0.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2021-06-16_19-26-37PM_1.log
Reason: /u01/PSU_APR_2021/19c/GI_RELEASE_UPDATE_REVISION_19.9.2.0.0/32579970/31773437 is not required to be applied to oracle home /u01/app/oracle/product/19.3.0.0/grid==Following patches were SUCCESSFULLY analyzed to be applied:
Patch: /u01/PSU_APR_2021/19c/GI_RELEASE_UPDATE_REVISION_19.9.2.0.0/32579970/32618524
Log: /u01/app/oracle/product/19.3.0.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2021-06-16_19-26-37PM_1.logPatch: /u01/PSU_APR_2021/19c/GI_RELEASE_UPDATE_REVISION_19.9.2.0.0/32579970/32584670
Log: /u01/app/oracle/product/19.3.0.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2021-06-16_19-26-37PM_1.logPatch: /u01/PSU_APR_2021/19c/GI_RELEASE_UPDATE_REVISION_19.9.2.0.0/32579970/32421507
Log: /u01/app/oracle/product/19.3.0.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2021-06-16_19-26-37PM_1.log
OPatchauto session completed at Wed Jun 16 19:27:23 2021
Time taken to complete the session 1 minute, 16 seconds
7. Apply Grid Patch
[oracle@test:+ASM] sudo $ORACLE_HOME/OPatch/opatchauto apply /u01/PSU_APR_2021/19c/GI_RELEASE_UPDATE_REVISION_19.9.2.0.0/32579970/ -oh /u01/app/oracle/product/19.3.0.0/gridOPatchauto session is initiated at Wed Jun 16 19:27:42 2021
System initialization log file is /u01/app/oracle/product/19.3.0.0/grid/cfgtoollogs/opatchautodb/systemconfig2021-06-16_07-27-49PM.log.
Session log file is /u01/app/oracle/product/19.3.0.0/grid/cfgtoollogs/opatchauto/opatchauto2021-06-16_07-27-54PM.log
The id for this session is QY8BExecuting OPatch prereq operations to verify patch applicability on home /u01/app/oracle/product/19.3.0.0/grid
Patch applicability verified successfully on home /u01/app/oracle/product/19.3.0.0/gridExecuting patch validation checks on home /u01/app/oracle/product/19.3.0.0/grid
Patch validation checks successfully completed on home /u01/app/oracle/product/19.3.0.0/gridBringing down CRS service on home /u01/app/oracle/product/19.3.0.0/grid
Prepatch operation log file location: /u01/app/oracle/crsdata/test/crsconfig/hapatch_2021-06-16_07-28-57PM.log
CRS service brought down successfully on home /u01/app/oracle/product/19.3.0.0/gridStart applying binary patch on home /u01/app/oracle/product/19.3.0.0/grid
Binary patch applied successfully on home /u01/app/oracle/product/19.3.0.0/gridStarting CRS service on home /u01/app/oracle/product/19.3.0.0/grid
Postpatch operation log file location: /u01/app/oracle/crsdata/test/crsconfig/hapatch_2021-06-16_07-42-16PM.log
CRS service started successfully on home /u01/app/oracle/product/19.3.0.0/gridOPatchAuto successful.
——————————–Summary——————————–
Patching is completed successfully. Please find the summary as follows:
Host:test
SIHA Home:/u01/app/oracle/product/19.3.0.0/grid
Version:19.0.0.0.0
Summary:==Following patches were SKIPPED:
Patch: /u01/PSU_APR_2021/19c/GI_RELEASE_UPDATE_REVISION_19.9.2.0.0/32579970/31773437
Log: /u01/app/oracle/product/19.3.0.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2021-06-16_19-28-09PM_1.log
Reason: /u01/PSU_APR_2021/19c/GI_RELEASE_UPDATE_REVISION_19.9.2.0.0/32579970/31773437 is not required to be applied to oracle home /u01/app/oracle/product/19.3.0.0/grid==Following patches were SUCCESSFULLY applied:
Patch: /u01/PSU_APR_2021/19c/GI_RELEASE_UPDATE_REVISION_19.9.2.0.0/32579970/32421507
Log: /u01/app/oracle/product/19.3.0.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2021-06-16_19-29-39PM_1.logPatch: /u01/PSU_APR_2021/19c/GI_RELEASE_UPDATE_REVISION_19.9.2.0.0/32579970/32584670
Log: /u01/app/oracle/product/19.3.0.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2021-06-16_19-29-39PM_1.logPatch: /u01/PSU_APR_2021/19c/GI_RELEASE_UPDATE_REVISION_19.9.2.0.0/32579970/32618524
Log: /u01/app/oracle/product/19.3.0.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2021-06-16_19-29-39PM_1.log
OPatchauto session completed at Wed Jun 16 19:44:33 2021
Time taken to complete the session 16 minutes, 52 seconds