Oracle Home is not registered with the Central Inventory.

Oracle home is not registered with the central inventory. We are facing the error during the patch installation as below:

Oracle home is not registered with the central inventory.

Error:-

The Oracle Home <your ORACLE_HOME> is not registered with the Central Inventory.  OPatch was not able to get details of the home from the inventory.

How to attach oracle home to central inventory.

In order to register oracle home in orainventory , first of all we need to check the location of inventory file.

$cat /etc/oraInst.loc

#Oracle Installer Location File Location
inst_group=oinstall
inventory_loc=/u01/app/oracle/oraInventory

We have to go under inventory location and verify that oracle home is existing or not. Sometime our inventory file is corrupt. No worry we will re-register using below steps.

In R12.2.5:
Verify Inventory Against Filesystem

ERROR:   $FMW_Home/Oracle_EBS-app1 is not registered in the inventory

        
Corrective Action: Provide the location of a valid inventory file. If you believe the inventory is valid,
 
you may want to attach the fs2/FMW_Home/Oracle_EBS-app1.


Run ./opatch lsinventory -all to check if you ORACLE_HOME is defined.
 

If not :

 
cd $FMW_HOME/Oracle_EBS-app1/oui/bin
 
Simply execute the attachHome.sh as below.
 
 
$sh attachHome.sh
 
 
You can just check the attachHome.sh. Make sure OHOME is correct.
 
 
$cat attachHome.sh
 
#!/bin/sh
OHOME=/prdapps/app/fs2/FMW_Home/Oracle_EBS-app1
 
OHOMENAME=OH1383404475
 
CUR_DIR=`pwd`
 
cd $OHOME/oui/bin
 
./runInstaller -detachhome ORACLE_HOME=$OHOME ORACLE_HOME_NAME=$OHOMENAME $* >
 
/dev/null 2>&1
 
./runInstaller -attachhome ORACLE_HOME=$OHOME ORACLE_HOME_NAME=$OHOMENAME $*
 
cd $CUR_DIR
 
 
 
or
 
cd $ORACLE_HOME/oui/bin
 
./runInstaller -silent -invPtrLoc /etc/oraInst.loc -attachHome ORACLE_HOME=< Enter ORACLE_HOME path >” ORACLE_HOME_NAME=”<Oracle_Home_name>”
 
Re-run the patch installation.
 
 

How to detach oracle home from inventory

 
 
If you want to detach-oracle-home for any $FMW_HOME/ (oracle_common, Oracle_EBS-app1 and webtier) . just use detachHome.sh to detach the home
 
 
cd $ORACLE_HOME/oui/bin —>Execute detachHome.sh from respective /***_Home/oui/bin
 
 
$sh detachHome.sh
 

1 thought on “Oracle Home is not registered with the Central Inventory.”

Leave a Comment