Rapidclone steps
http://www.freelists.org/archives/ora-apps...6/msg00036.htmlNote:230672.1 Subject: Cloning Oracle Applications Release 11i with Rapid Clone
in batch mode without any dialogs (prompting APPS password for example)?
====
A. Generate a context file:
====
You have to produce a Context file
($APPL_TOP/admin/${TWO_TASK}_`hostname -s`.xml) for the environment
you are going to clone first of all.
A.1. If you are cloning other an existing environment you can use an
original XML file.
A.2. If you are duing a fresh (new) target environment you can choose
to do the fist time clone using an interactive (original) mode then
use generated XML file for future clones.
A.3 You can copy XML file from source environment and adjust it
accordantly (it isn't error free process).
A.4 Run the following command to generate a new XML file.
$COMMON_TOP/clone/bin/../jre/bin/java -classpath
$COMMON_TOP/clone/bin/../jlib/java:$COMMON_TOP/clone/bin/../jlib/xmlparserv2.zip:$COMMON_TOP/clone/bin/../jlib/classes12.zip:$COMMON_TOP/clone/bin/../jre/lib/rt.jar
oracle.apps.ad.context.CloneContext -e
$COMMON_TOP/clone/bin/../context/apps/CTXORIG.xml -validate -stage
$COMMON_TOP/clone/bin/../ -perl "$ADPERLPRG" -perl5lib $PERL5LIB
-passwd APPS
Please notice that you need to specify a APPS password for your system
====
B. Run an unsupported cloning command:
====
perl $COMMON_TOP/clone/bin/adclone.pl
java=$COMMON_TOP/clone/bin/../jre mode=apply
stage=$COMMON_TOP/clone/bin/.. component=appsTier method=CUSTOM
appctxtg=$APPL_TOP/admin/${TWO_TASK}_`hostname -s`.xml
contextValidated=true pwd=APPS
Please notice that this is commend I have found from adcfgclone.pl
version 115.81. Oracle might change the command in later versions of
the script.
====
C. Run a half supported cloning command:
====
You can run the cloning command providing a XML file as a parameter.
This method described in mentioned earlier note
perl adcfgclone.pl appsTier <Appltop target context file>
Only problem with this method is that you will be prompted for a APPS password.
A small hack will help you

Comment the following lines in the adcfgclone.pl file:
--------------------------
#print("Enter the APPS password [APPS]:\n");
#my $key="";
my $PWD="";
#while ($key ne "\n") {
# $key = getc();
# $PWD = "$PWD" . "$key";
#}
#chomp ( $PWD );
#if ( $PWD eq "") {
$PWD ="APPS";
#}
--------------------------
The original version looks as follows
--------------------------
print("Enter the APPS password [APPS]:\n");
my $key="";
my $PWD="";
while ($key ne "\n") {
$key = getc();
$PWD = "$PWD" . "$key";
}
chomp ( $PWD );
if ( $PWD eq "") {
$PWD ="APPS";
}
--------------------------
Change APPS to apps user's password in your environment and this is
basically it. There is one thing to mention in addition. I had to change the
following line of code in the adcfgclone.pl:
--------------------------
else {
$CONTEXT_VALIDATED = "false";
# target system context is passed as an argument
--------------------------
to
--------------------------
else {
$CONTEXT_VALIDATED = "true";
# target system context is passed as an argument
--------------------------
Otherwise I had got the error listened below:
Cannot proceed with ApplyAppsTechStack - the paths/ports in the
context file are not valid.