Know How

OPatch could not find OUI based inventory in the Oracle Home. But, OUI location is provided using ‘oui_loc’ option

I encountered the following issue when I was applying a patch on one of the Oracle HTTP Server (OHS) installations.

Error:

OPatch could not find OUI based inventory in the Oracle Home. But, OUI location is provided using ‘oui_loc’ option. Please check the inventory of the Oracle Home and run OPatch again.

OPatch failed with error code 255

Solution:

 Navigate to <MW_HOME>/web_tier/ohs_111/oui/bin

/u01/app/oracle/product/fmw/web_tier/ohs_111/oui/bin

[oracle@test bin]$ ls
addLangs.sh  addNode.sh  attachHome.sh  detachHome.sh  lsnodes  ouica.bat  ouica.sh  resource  runConfig.sh  runInstaller  runInstaller.sh  runSSHSetup.sh


[oracle@test bin]$ ./attachHome.sh
Starting Oracle Universal Installer…

Checking swap space: must be greater than 500 MB.   Actual 25599 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2020-09-21_12-04-59AM. Please wait …[oracle@test bin]$ The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /u01/install/APPS/oraInventory
‘AttachHome’ was successful.

Let's make something intelligent together