The current GI home is in /opt/codegen/app/oracle/product/21.x.0/grid and release patch is
crsctl query has releasepatch Oracle Clusterware release patch level is [3414221900] and the complete list of patches [35132583 35134934 35134943 35149778 35222143 35226235 ] have been applied on the local node. The release patch string is [21.10.0.0.0].
Run the gridsetup with -switchGridHome option and any RU and one-off patches. This step doesn't result in downtime.
./gridSetup.sh -silent -switchGridHome -applyRU /opt/installs/patches/35427907 Preparing the home to patch... Applying the patch /opt/installs/patches/35427907... Successfully applied the patch. The log can be found at: /opt/codegen/app/oraInventory/logs/GridSetupActions2023-07-21_01-55-36PM/installerPatchActions_2023-07-21_01-55-36PM.log Launching Oracle Grid Infrastructure Setup Wizard... You can find the log of this install session at: /opt/codegen/app/oraInventory/logs/GridSetupActions2023-07-21_01-55-36PM/gridSetupActions2023-07-21_01-55-36PM.log As a root user, execute the following script(s): 1. /opt/codegen/app/oracle/product/21.11.0/grid/root.sh Execute /opt/codegen/app/oracle/product/21.11.0/grid/root.sh on the following nodes: [ip-172-31-10-193]When prompted run the root.sh. This is where the grid home switching happens and results in down time. In the course of running root.sh the HAS stack is brought down in the old GI home and started in the new GI home.
/opt/codegen/app/oracle/product/21.11.0/grid/root.sh Check /opt/codegen/app/oracle/product/21.11.0/grid/install/root_ip-172-31-10-193.eu-west-1.compute.internal_2023-07-21_14-06-15-742998108.log for the output of root scriptThe output on the log files shows prepatch and postpatch steps run on the new GI home.
Performing root user operation. The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /opt/codegen/app/oracle/product/21.11.0/grid Copying dbhome to /usr/local/bin ... Copying oraenv to /usr/local/bin ... Copying coraenv to /usr/local/bin ... 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: /opt/codegen/app/oracle/product/21.11.0/grid/crs/install/crsconfig_params The log of current session can be found at: /opt/codegen/app/oracle/crsdata/ip-172-31-10-193/crsconfig/hapatch_2023-07-21_02-06-16PM.log 2023/07/21 14:06:18 CLSRSC-347: Successfully unlock /opt/codegen/app/oracle/product/21.11.0/grid 2023/07/21 14:06:18 CLSRSC-671: Pre-patch steps for patching GI home successfully completed. Using configuration parameter file: /opt/codegen/app/oracle/product/21.11.0/grid/crs/install/crsconfig_params The log of current session can be found at: /opt/codegen/app/oracle/crsdata/ip-172-31-10-193/crsconfig/hapatch_2023-07-21_02-06-18PM.log 2023/07/21 14:07:16 CLSRSC-329: Replacing Clusterware entries in file 'oracle-ohasd.service' 2023/07/21 14:08:01 CLSRSC-672: Post-patch steps for patching GI home successfully completed.
Looking at the currently running processes will show the GI related processes running out of new GI home.
32070 ? Ssl 0:02 /opt/codegen/app/oracle/product/21.11.0/grid/bin/ohasd.bin reboot _ORA_BLOCKING_STACK_LOCALE=AMERICAN_AMERICA.AL32UTF8 32281 ? Ssl 0:00 /opt/codegen/app/oracle/product/21.11.0/grid/bin/oraagent.bin 32308 ? Ssl 0:00 /opt/codegen/app/oracle/product/21.11.0/grid/bin/evmd.bin 32312 ? Ss 0:00 /opt/codegen/app/oracle/product/21.11.0/grid/bin/tnslsnr LISTENER -no_crs_notify -inherit 32368 ? Ssl 0:00 /opt/codegen/app/oracle/product/21.11.0/grid/bin/evmlogger.bin -o /opt/codegen/app/oracle/product/21.11.0/grid/log/[HOSTNAME]/evmd/evmlogger.info -l /opt/codegen/app/oracle/product/21.11.0/grid/log/[HOSTNAME] 32384 ? Ssl 0:00 /opt/codegen/app/oracle/product/21.11.0/grid/bin/cssdagent 32423 ? Ssl 0:00 /opt/codegen/app/oracle/product/21.11.0/grid/bin/onmd.bin 32425 ? Ssl 0:00 /opt/codegen/app/oracle/product/21.11.0/grid/bin/ocssd.binRelease patch is 21.11
crsctl query has releasepatch Oracle Clusterware release patch level is [1435465441] and the complete list of patches [35428978 35442014 35442022 35442029 35550598 35589155 ] have been applied on the local node. The release patch string is [21.11.0.0.0].
Unlike in 19c no manual work is needed for updating the oracle inventory. New GI home is auto added with crs=true and crs=true is removed from old home during the GI home switch processes.
<HOME NAME="OraGI21Home1" LOC="/opt/codegen/app/oracle/product/21.x.0/grid" TYPE="O" IDX="1"/> <HOME NAME="OraGI21Home2" LOC="/opt/codegen/app/oracle/product/21.11.0/grid" TYPE="O" IDX="4" CRS="true"/>
Related Posts
Out of Place (OOP) Patching of Oracle Restart