Before upgrading Oracle 18c GI to 19c GI, trying to apply the latest GI RU patches onto 19c gold image, it fails like following:
[grid@racnode1 grid]$ ./gridSetup.sh -silent -applyRU /media/sf_Software/Patches/19c/30463609 Preparing the home to patch... Applying the patch /media/sf_Software/Patches/19c/30463609... OPatch command failed while applying the patch. For details look at the logs from /u01/app/19.0.0/grid/cfgtoollogs/opatchauto/
It is because the patch path is not correct, patch 30463609 is Combo of OJVM and GI. The correct path should be the sub-directory one.
[grid@racnode1 grid]$ ./gridSetup.sh -silent -applyRU /media/sf_Software/Patches/19c/30463609/30501910 ERROR: The home is not clean. This home cannot be used since there was a failed OPatch execution in this home. Use a different home to proceed.
When the command gridSetup.sh fails, it makes the NEW_HOME unusable.
The only way to get around this issue currently is to clean the contents out of that HOME , and unzip the gold image again.
[grid@racnode1 ~]$ cd /u01/app/19.0.0/grid/ [grid@racnode1 grid]$ rm -fr * [grid@racnode1 grid]$ unzip <SW-LOCATION>/LINUX.X64_193000_grid_home.zip -d ./
[grid@racnode1 grid]$ ./gridSetup.sh -silent -applyRU /media/sf_Software/Patches/19c/30463609/30501910 Preparing the home to patch... Applying the patch /media/sf_Software/Patches/19c/30463609/30501910... Successfully applied the patch. The log can be found at: /u01/app/oraInventory/logs/GridSetupActions2020-04-11_10-53-32PM/installerPatchActions_2020-04-11_10-53-32PM.log Launching Oracle Grid Infrastructure Setup Wizard... [FATAL] [INS-40426] Grid installation option has not been specified. ACTION: Specify the valid installation option. [grid@racnode1 grid]$