i am performing an upgrade of 11.0.7 database to 12C. (Doc ID 1524398.1)
In section 8, I need to apply https://support.oracle.com/rs?type=patch&id= 19382851. In the README, when I do opatch lsinventory it says
Java could not be located. OPatch cannot proceed!
OPatch returns with error code = 1
I have java on my AIX.
It is reason beacuse of path of ORACLE_HOME and oraInventory Location. Please check path for both and set it correctly .
Mostly you have find path of oraInvetory from /etc/oraInst.loc
1.. Take backup of ORACLE_HOME or oraInv directory
2.. unzip the patch
3.. Go to The patch directory
4.. export PATH=$ORACLE_HOME/OPatch:$PATH
There after you can apply patch. Hope so it will help you. Cheers