R12.2 cloning process adcfgclone fails with error

 Error:
Below Oracle Homes are already registered in the global inventory:
/u01/oracle/R122/fs1/FMW_Home/oracle_common
/u01/oracle/R122/fs1/FMW_Home/webtier
/u01/oracle/R122/fs1/FMW_Home/Oracle_EBS-app1

Cause:
The above Oracle Homes are already registered from the global inventory

Solution:
Make sure that the above Oracle Homes are unregistered from the global inventory.
we should always clean the oraInventory directory by using the following commands.
           
  cd $ORACLE_HOME/oui/bin
./runInstaller -silent -deinstall REMOVE_HOMES={“/u01/oracle/R122/fs1/FMW_Home/Oracle_EBS-app1”}
./runInstaller -silent -deinstall REMOVE_HOMES={“/u01/oracle/R122/fs1/FMW_Home/oracle_common”}
./runInstaller -silent -deinstall REMOVE_HOMES={“/u01/oracle/R122/fs1/FMW_Home/webtier”}
                                        Then restart the adcfgclone.pl appsTier
Recent Posts