Clone 12.2

Below Oracle Homes are already registered in the global inventory:
/u02/ebs/applmgr/SID/fs2/FMW_Home/oracle_common
/u02/ebs/applmgr/SID/fs2/FMW_Home/webtier
/u02/ebs/applmgr/SID/fs2/FMW_Home/Oracle_EBS-app1

Exiting Cloning…

Ensure that the above Oracle Homes are unregistered from the global inventory “/
u02/ebs/oracle/oraInventory” and re-run adcfgclone.pl script

Unrecognized option: -e
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Failed to Instantiate tnsnames.ora independently
Checking if database connection descriptor present
Database connection desciptor context variable is NULL
Failed to enable EBS_LOGON trigger

Solution:

Execute the following command to de-register or detach that Oracle Home, Example:

cd /u02/ebs/applmgr/SID/fs1/FMW_Home/oracle_common/oui/bin
./runInstaller -detachhome ORACLE_HOME=/u02/ebs/applmgr/SID/fs2/FMW_Home/oracle_common

cd /u02/ebs/applmgr/SID/fs1/FMW_Home/webtier/oui/bin
./runInstaller -detachhome ORACLE_HOME=/u02/ebs/applmgr/SID/fs2/FMW_Home/webtier

cd /u02/ebs/applmgr/SID/fs1/FMW_Home/Oracle_EBS-app1/oui/bin
./runInstaller -detachhome ORACLE_HOME=/u02/ebs/applmgr/SID/fs2/FMW_Home/Oracle_EBS-app1

rm -rf FMW_HOME

Then restart the adcfgclone.pl appsTier