gridSetup.sh Fails with “ERROR: The home is not clean”

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]$

How to Apply the Latest RU/RUR Patches onto 19c Gold Image Before Upgrading 18c GI to 19c GI

While upgrading GI from 18c to 19c, in order to minimize the downtime and reduce the impact on PROD environment, also minimize the risk of upgrading failure, Release Update(RU) or Release Update Reversion(RUR) patches can be applied onto new 19c GI image before upgrading 19c GI.

Subscribe to get access

Read more of this content when you subscribe today.

How to Upgrade Oracle Grid Infrastructure from 18c to 19c

This post illustrates step by step how to upgrade Oracle 18c GI to 19c GI.

Subscribe to get access

Read more of this content when you subscribe today.

How to Apply Grid Infrastructure RU/RUR Patches Before Upgrading GI from 12.2.0.1 to 18c

While upgrading GI from 12.2.0.1 to 18c, in order to minimize the downtime and reduce the impact on PROD environment,  Release Update(RU) or Release Update Reversion(RUR) patches can be applied onto new 18c GI image before setting up 18c GI.

Please note this way is different from what we normally do to apply RU/RUR patches according to patch README.html instruction.

  • RU/RUR can only be applied before 18c GI is configured (in other word, before root.sh or rootupgrade.sh is executed).
  • In this upgrade case, RU/RUR patches can only be applied onto the new 18c GI home,  patches are not to be applied to the existing (current) 12.2.0.1 GI home.
  • “opatchauto” and “opatch apply” must NOT be used as the new 18c GI home hasn’t been configured yet.

Here is the example of applying both RU/RUR patches sequentially against new 18c GI before starting to upgrade GI 12.2.0.1 to 18c.

Those following two patches will be applied on 18c GI gold imagine:

  • Patch 28828717 – GI Release Update 18.5.0.0.190115
  • Patch 29231062 – GI Release Update Revision 18.5.1.0.190416

Subscribe to get access

Read more of this content when you subscribe today.

Upgrade Oracle Grid Infrastructure from 12.2.0.1 to 18c

Contents

  • Pre-requisite checks
    • User ID for both oracle and grid user
    • Oracle ASM LIB configurations
    • Oracle Grid Infrastructure and Oracle RAC Packages
    • Stop Transparent HugePages
    • install cvuqdisk
    • grid/oracle profiles
    • Check and setup resource Limits
    • Run ORAchk utility to have pre-upgrading checks
    • run the command runcluvfy.sh stage -pre crsinst -upgrade to check the readiness of your Oracle Clusterware installation for upgrades
    • Download and apply the latest opatch utility onto GI home and DB homes
  • Upgrading Oracle Grid Infrastructure
  • Post Oracle Grid Infrastructure Upgrading
    • Check SCAN configuration
    • Post Upgrading Cluster Verification
    • Run Orachk -u -o post
    • Check all cluster resource status

Subscribe to get access

Read more of this content when you subscribe today.