Sunday, April 5, 2020

Solved: Oracle Homes are already registered in the global inventory:


CAUSE: The script was trying to register the oracle home in inventory but its failing to update it.
SOLUTION: Please delete existing files under oraInventory folder and retry the adcfgclone.

ERROR :

Below Oracle Homes are already registered in the global inventory:
/opt/silprod/fs2/FMW_Home/oracle_common
/opt/silprod/fs2/FMW_Home/webtier
/opt/silprod/fs2/FMW_Home/Oracle_EBS-app1

1.. First check central and or local oraInventory location

[oracle@silperp ~]$ cat /etc/oraInst.loc
inventory_loc=inventory_loc=/opt/silprod/db/tech_st/11.2.0//admin/oui/SILP25_silperp/oraInventory
inst_group=oracle[oracle@silperp ~]$


Solution

2. call run environment
   
   . [oracle@silperp ~]$ . /opt/silprod/EBSapps.env

  E-Business Suite Environment Information
  ----------------------------------------
  RUN File System           : /opt/silprod/fs1/EBSapps/appl
  PATCH File System         : /opt/silprod/fs2/EBSapps/appl
  Non-Editioned File System : /opt/silprod/fs_ne


  DB Host: silperp.silhon.com  Service/SID: SILP25


  E-Business Suite Environment Setting
  ------------------------------------
  - Enter [R/r] for sourcing Run File System Environment file, or
  - Enter [P/p] for sourcing Patch File System Environment file, or
  - Enter anything else to exit

  Please choose the environment file you wish to source [R/P]:R

  Sourcing the RUN File System ...

[oracle@silperp ~]$


2.  Before deinstalling  don't remove any direcotry i.e. FMW_Home and inst
   
     Deinstall registered Oracle Homes in oraInventory

     cd  /opt/silprod/fs1/EBSapps/10.1.2/oui/bin

    ./runInstaller -silent -deinstall REMOVE_HOMES={"/opt/silprod/fs2/FMW_Home/Oracle_EBS-app1"}
    ./runInstaller -silent -deinstall REMOVE_HOMES={"/opt/silprod/fs2/FMW_Home/webtier"}
    ./runInstaller -silent -deinstall REMOVE_HOMES={"/opt/silprod/fs2/FMW_Home/oracle_common"}

Note: if above commands not successes then:

     cd  /opt/silprod/fs1/EBSapps
    $> find -name deinstall and execute

3. Backup or remove exiting oraInventory directory

cd /opt/silprod/db/tech_st/11.2.0//admin/oui/SILP25_silperp/

Backup: $> mv oraInventory oraInventory_backup
Remove: $> rm -rf oraInventory
$> mkdir oraInventory

4. After completing deinstalling and re-creating directy try adcfgclone.pl script.