opatch prereq CheckConflictAgainstOHWithDetail Shows multiple HOME

When i got a request to apply a patch, i did a prereq check and faced the below error.

SDBT1:oracle$ opatch prereq CheckConflictAgainstOHWithDetail -ph ./
Oracle Interim Patch Installer version 12.2.0.1.16
Copyright (c) 2018, Oracle Corporation. All rights reserved.

PREREQ session

Oracle Home : /u01/app/oracle/product/12.2.0
Central Inventory : /home/oracle/oraInventory
from : /u01/app/oracle/product/12.2.0/oraInst.loc
OPatch version : 12.2.0.1.16
OUI version : 12.2.0.1.4
Log file location : /u01/app/oracle/product/12.2.0/cfgtoollogs/opatch/opatch2018-12-21_04-09-14AM_1.log

Invoking prereq "checkconflictagainstohwithdetail"
List of Homes on this system:

Home name= OraDb12c_home3, Location= "/u01/app/oracle/product/12.2.0"
Home name= OraDb12c_home1, Location= "/u011/app/oracle/product/12.2.0"
Home name= OraDb12c_home4, Location= "/u012/app/oracle/product/12.2.0"
Home name= OraDb12c_home2, Location= "/u013/app/oracle/product/12.2.0"
Home name= OraDb12cR2_home1, Location= "/u014/app/oracle/product/12.2.0"
List of Homes on this system:

Home name= OraDb12c_home3, Location= "/u01/app/oracle/product/12.2.0"
Home name= OraDb12c_home1, Location= "/u011/app/oracle/product/12.2.0"
Home name= OraDb12c_home4, Location= "/u012/app/oracle/product/12.2.0"
Home name= OraDb12c_home2, Location= "/u013/app/oracle/product/12.2.0"
Home name= OraDb12cR2_home1, Location= "/u014/app/oracle/product/12.2.0"
List of Homes on this system:

Home name= OraDb12c_home3, Location= "/u01/app/oracle/product/12.2.0"
Home name= OraDb12c_home1, Location= "/u011/app/oracle/product/12.2.0"
Home name= OraDb12c_home4, Location= "/u012/app/oracle/product/12.2.0"
Home name= OraDb12c_home2, Location= "/u013/app/oracle/product/12.2.0"
Home name= OraDb12cR2_home1, Location= "/u014/app/oracle/product/12.2.0"

Prereq "checkConflictAgainstOHWithDetail" is not executed.
List of Homes on this system:

Home name= OraDb12c_home3, Location= "/u01/app/oracle/product/12.2.0"
Home name= OraDb12c_home1, Location= "/u011/app/oracle/product/12.2.0"
Home name= OraDb12c_home4, Location= "/u012/app/oracle/product/12.2.0"
Home name= OraDb12c_home2, Location= "/u013/app/oracle/product/12.2.0"
Home name= OraDb12cR2_home1, Location= "/u014/app/oracle/product/12.2.0"
PrereqSession failed: RawInventory gets null OracleHomeInfo

OPatch failed with error code 2

 

Gave the below command to attache the HOME

LinuxServer:sdbt1:/u001/app/oracle/product/12.2.0/oui/bin: 1061>./runInstaller -silent -ignoreSysPrereqs -attachHome ORACLE_HOME="/u001/app/oracle/product/12.2.0" ORACLE_HOME_NAME="sdbt1"
Starting Oracle Universal Installer...

Checking swap space: must be greater than 500 MB. Actual 32767 MB Passed
The inventory pointer is located at /etc/oraInst.loc
'AttachHome' was successful.

 

Now it works.

LinuxServer:sdbt1:/home/oracle/Patch/28662603: 1068>opatch prereq CheckConflictAgainstOHWithDetail -ph ./
Oracle Interim Patch Installer version 12.2.0.1.16
Copyright (c) 2018, Oracle Corporation.  All rights reserved.

PREREQ session

Oracle Home       : /u001/app/oracle/product/12.2.0
Central Inventory : /u001/app/oraInventory
   from           : /u001/app/oracle/product/12.2.0/oraInst.loc
OPatch version    : 12.2.0.1.16
OUI version       : 12.2.0.1.4
Log file location : /u001/app/oracle/product/12.2.0/cfgtoollogs/opatch/opatch2018-12-21_04-50-56AM_1.log

Invoking prereq "checkconflictagainstohwithdetail"

Prereq "checkConflictAgainstOHWithDetail" passed.

OPatch succeeded.

 

Leave a Reply

Your email address will not be published. Required fields are marked *