This content has been marked as final. Show 6 replies
Please run this command in a DOS window: "set ORACLE_HOME=E:\Oracle\Middleware\Oracle_BI"
This changes your Oracle Home to you BI installation folder. Change the above mentioned path according to your installation. To see if this worked run the following command in the Opatch folder: "opatch version"
If it shows something like this:
"Invoking OPatch 22.214.171.124.0
OPatch Version: 126.96.36.199.0
...it means you are ready to start patching. :)
Yes, the error message is misleading. It should say something like "Environment variable ORALCE_HOME has not been set or set incorrectly".
Here is how I solved the problem on a Windows Oracle Fusion Middleware SOA installation. The SOA installation already comes with OPatch installed. In my case it is located in D:\Oracle\Middleware\Oracle_SOA1\OPatch. On a command prompt, I set the environment variable ORACLE_HOME like this
and the CLASSPATH variable like this
The latter prevents opatch from loading classes it does not need and throwing java.lang.ClassNotFoundException. Also notice ORACLE_HOME does not point to D:\Oracle\Middleware but D:\Oracle\Middleware\Oracle_SOA1. I made a mistake by setting ORACLE_HOME to D:\Oracle\Middleware kept getting:
"Recommended actions: Please make sure no other OPatch or OUI processes is running. Try to run $ORACLE_HOME/oui/bin/runInstsaller.
OPatch failed with error code = 20"
I wasted a lot of time trying to figure out what went wrong.