When attempting to run adcfgclone.pl, the following error occurs :
ApplyAppsTier<<date>>.log shows:
START: Creating new WLS domain.
Running /U01/app/applmgr/UAT/fs2/FMW_Home/oracle_common/bin/pasteConfig.sh……
Script Executed in 30555 milliseconds, returning status 255
ERROR: Script failed, exit code 255
CLONE<<date>>.error shows:
SEVERE : Aug 3, 2016 2:36:49 PM – ERROR – CLONE-20365 Error in executing WebLogic script for configuring server, cluster , datasource and authenticator.
SEVERE : Aug 3, 2016 2:36:49 PM – CAUSE – CLONE-20365 Either the values specified in the move plan are not correct or some “READ_ONLY” properties in the move plans are modified or some internal error happened.
SEVERE : Aug 3, 2016 2:36:49 PM – ACTION – CLONE-20365 Check the t2p logs for more details. Make sure that values in the move plans are correct.
oracle.as.t2p.exceptions.FMWT2PPasteConfigException: PasteConfig failed. Make sure that the move plan and the values specified in moveplan are correct.
at oracle.as.clone.cloner.component.J2EEComponentApplyCloner.doClone(J2EEComponentApplyCloner.java:267)
at oracle.as.clone.cloner.Cloner.doFinalClone(Cloner.java:61)
at oracle.as.clone.request.ApplyCloneRequest.applyArchive(ApplyCloneRequest.java:188)
at oracle.as.clone.request.ApplyCloneRequest._clone(ApplyCloneRequest.java:69)
at oracle.as.clone.process.CloningExecutionProcess.execute(CloningExecutionProcess.java:131)
at oracle.as.clone.process.CloningExecutionProcess.execute(CloningExecutionProcess.java:114)
at oracle.as.clone.client.CloningClient.executeT2PCommand(CloningClient.java:238)
at oracle.as.clone.client.CloningClient.main(CloningClient.java:115)
SEVERE : Aug 3, 2016 2:36:49 PM – ERROR – CLONE-20237 Restoring the sourceid “J2EECOMPONENT@EBS_domain_MYPREPROD” has failed.
SEVERE : Aug 3, 2016 2:36:49 PM – CAUSE – CLONE-20237 An internal operation failed.
SEVERE : Aug 3, 2016 2:36:49 PM – ACTION – CLONE-20237 Check the clone log and error file for more details.
SEVERE : Aug 3, 2016 2:36:49 PM – ERROR – CLONE-20218 Cloning is not successful.
SEVERE : Aug 3, 2016 2:36:49 PM – CAUSE – CLONE-20218 An internal operation failed.
SEVERE : Aug 3, 2016 2:36:49 PM – ACTION – CLONE-20218 Provide the clone log and error file for investigation.
CAUSE :
The cause is identified as the issue was with Inventory on Source Instance. Please check the below Source Inventory.xml file which has the issue.
<HOME NAME=”UAT_TOOLS__u01_app_applmgr_UAT_fs2_EBSapps_10_1_2″ LOC=”/u01/app/applmgr/UAT/fs2/EBSap ps/10.1.2″ TYPE=”O” IDX=”8″/>
<HOME NAME=”OH1234567890″ LOC=”/u01/app/applmgr/UAT/fs2/FMW_Home/Oracle_EBS-app1″ TYPE=”O” IDX=”7″ REMOVED=”T”/>
</HOME_LIST>
As seen below FMW home entry was removed from the Inventory.xml file on the source.
This was leading to the error “Creating new WLS domain” while running adcfgclone.pl on the Target.
It could not create the FMW home as it was missing in the Inventory of the Source Instance.
<HOME NAME=”OH1234567890″ LOC=”/u01/app/applmgr/UAT/fs2/FMW_Home/Oracle_EBS-app1″ TYPE=”O” IDX=”7″ REMOVED =”T”/>
The string REMOVED=”T” means the ORACLE_HOME has been removed. Do not modify any files for the oraInventory manually.
SOLUTION:
To implement the solution, please execute the following steps:
1. Rebuild the Inventory of FMW home as per Note 1588609.1 on Source Instance.
2. Re-run the adpreclone.pl on Source and then copy the file system to target.
3. Run adcfgclone.pl on target.
This note Note 1588609.1 describes the process of creating, updating or rebuilding the Central Inventory for Oracle E-Business Suite version 12.2 to 12.2.2.
It also provides information about the Oracle Inventories and tools that use it, specific for Oracle Applications.