OPatch Failed with Error Code 19 – “The OPatch version is not applicable for current OUI version”
While trying to apply a patch on a Fusion Middleware or WebLogic Server Oracle home, the following error occurs:
$ ./opatch lsinventory -jre /usr/java/jdk1.8.0_141/jre
OPatch Version : 220.127.116.11.0
OUI Version : 18.104.22.168.0
The OPatch version is not applicable for current OUI version.
Since OUI Version starts with 12.1, Please go to ‘My Oracle Support’ and get right OPatch 12.1.*.*.* based on patch 6880880, release version 22.214.171.124.0 and appropriate platform.
OPatch failed with error code 19
As the error states, OUI and OPatch version do not match.
Upon further investigation, it is observed that the ORACLE_HOME is not set correctly and pulling a different OUI version from another environment.
1. Set ORACLE_HOME to the directory being patches. Also look at the PATH environment variable to ensure you don’t have the OPatch directory from another location. The following should always be set before running opatch commands:
ORACLE_HOME=$MW_HOME/Oracle_FRHome1; export ORACLE_HOME
PATH=$ORACLE_HOME/OPatch:$PATH; export PATH
2. Now you should be able to invoke the “opatch lsinventory” see the correct opatch version and intended Oracle home. Then run the “opatch apply” command to apply the patch.
Note: The error says, “get right OPatch 12.1.*.*.* based on patch 6880880”, this is actually referring to an Oracle Database version. For Oracle Fusion Middleware, it is very rare to need to update OPatch or use Patch 6880880 to obtain a new one. Always use the one installed in the Oracle home or a backup if accidental overwritten with another version. Problems will occur if the incorrect Opatch is installed
OPatch Failed with Error Code 19 – “The OPatch version is not applicable for current OUI version” (Doc ID 2364024.1)