Run adpreclone for apps & db tier – Oracle EBS 12.2

For APPS Tier:

cd ${INST_TOP}/admin/scripts
perl adpreclone.pl appsTier<<!
apps
welcome1
!
STATUS=$?
if [ $STATUS -gt 0 ];then
	printf "Failed to execute adpreclone on Apps Tier  \n";
	exit 1;
fi

printf "Done. \n";
exit 0;

For DB Tier:

cd $ORACLE_HOME/appsutil/scripts/$CONTEXT_NAME

perl adpreclone.pl dbTier<<!
apps
!
STATUS=$?
if [ $STATUS -gt 0 ];then
	printf "Failed to execute adpreclone on DB Tier  \n";
	exit 1;
fi

printf "Done. \n";
exit 0;