Oracle Apps Cloning Ver 1 0
Oracle Apps Cloning Ver 1 0
Oracle Apps Cloning Ver 1 0
Sept 10 2007
_______________________________________________________________________
_
54313423.doc Page 1 of 11
Content:
1) Introduction 01
_______________________________________________________________________
_
54313423.doc Page 2 of 11
Introduction:
a. 4709948
b. 5225940
c. 3453499
Execute the following commands to prepare the source system for cloning.
Log on to the source system as the ORACLE user and run the following
commands: ( owner of the database user, for us it’s a applmgr)
cd <RDBMS ORACLE_HOME>/appsutil/scripts/<CONTEXT_NAME>
perl adpreclone.pl dbTier
_______________________________________________________________________
_
54313423.doc Page 3 of 11
Prepare the source system application tier for cloning
Log on to the source system as the APPLMGR user and run the following
commands on each node that contains an APPL_TOP:
cd <COMMON_TOP>/admin/scripts/<CONTEXT_NAME>
perl adpreclone.pl appsTier
Here apps password will ask and please put the apps password here.
E) Shutdown application i.e shutdown all the services of the source instance,
Change to the directory to the cd
$COMMON_TOP/admin/scripts/<CONTEXT_NAME> (
/preprod/u01/appstire/testcomn/admin/scripts/test_ka01axsd2)
F) Log on to the source system as applmgr and shutdown database (normal shutdown)
SQL> shutdown
Copy the application tier file system from the source Applications system to the
target node by executing the following steps in the order listed.
# cp -r /preprod/u01/appstier/testappl/testdb
H) Log on to the target system as root and change the owner of all the above dir
_______________________________________________________________________
_
54313423.doc Page 4 of 11
I)
Configure the Target System
Execute the following commands to configure the target system. You
will be prompted for the target system specific values (SID, Paths,
Ports, etc)
{e.g Log on to the target system as applmgrr and run the following
command
II) (DO FIRST at DB TIER) ,go to db tier's home i.e
ORACLE_HOME/appsutil/clone/bin and run the adcfgclone.pl dbTier
$ cd /crp1/devmgr/DEV/testdb/9.2.0/appsutil/clone/bin
# ls -l
total 432
-rwx--x--x 1 devmgr dba 36519 Dec 03 11:15 adcfgclone.pl
-rwxr-xr-x 1 devmgr dba 3273 Dec 03 11:15 adchkutl.sh
-rwxr-xr-x 1 devmgr dba 93301 Dec 03 11:15 adclone.pl
-rwxr-xr-x 1 devmgr dba 29104 Dec 03 11:15 adclonectx.pl }
J) Run adcfgclone.pl command at the DB TIER and answer all the question as
below
Provide the values required for creation of the new Database Context file.
Do you want to use a virtual hostname for the target node (y/n) [n] ?:
Clone Context uses the same port pool mechanism as the Rapid Install
Once you choose a port pool, Clone Context will validate the port availability.
Backing up /crp1/devmgr/DEV/devdb/9.2.0/appsutil/DEV_ka01axsd2.xml to
/crp1/devmgr/DEV/devdb/9.2.0/appsutil/DEV_ka01axsd2.xml.bak
java=/crp1/devmgr/DEV/devdb/9.2.0/appsutil/clone/bin/../jre/jre mode=apply
_______________________________________________________________________
_
54313423.doc Page 6 of 11
stage=/crp1/devmgr/DEV/devdb/9.2.0/appsutil/clone/bin/.. component=dbTier
method=CUSTOM
dbctxtg=/crp1/devmgr/DEV/devdb/9.2.0/appsutil/DEV_ka01axsd2.xml showProgress
contextValidated=true
/crp1/devmgr/DEV/devdb/9.2.0/appsutil/out/DEV_ka01axsd2/regOUI_APPSDB_D
EV.sh
/crp1/devmgr/DEV/testcomn/clone/bin/../jlib/classes111.zip: is missing
_______________________________________________________________________
_
54313423.doc Page 7 of 11
First Creating a new context file for the cloned system.
The program is going to ask you for information about the new system:
1.cd <RDBMS_HOME>/appsutil/clone/jre
2.move lib lib.old
3.move bin bin.old
4.ln -s jre/bin bin
5.ln -s jre/lib lib
6.Run perl adcfgclone.pl appsTier
After that there will be error like .. Beginning APPSDB_TEST registration to central
inventory...
_______________________________________________________________________
_
54313423.doc Page 8 of 11
=============== FROM APPS TIER =======================
Configure the target system application tier server nodes
Log on to the target system as the APPLMGR user and type the following
commands:
cd <COMMON_TOP>/clone/bin
perl adcfgclone.pl appsTier
e.g Go to the application tier common top dir and run the following command
$cd $COMMON_TOP/admin/scripts/CONTEXT_NAME
$ ls -l
total 360
-rwxr-xr-x 1 devmgr dba 7396 Dec 03 13:53 adaddnode.pl
-rwxr-xr-x 1 devmgr dba 36519 Dec 03 13:53 adcfgclone.pl
-rwxr-xr-x 1 devmgr dba 3273 Dec 03 13:53 adchkutl.sh
-rwxr-xr-x 1 devmgr dba 93301 Dec 03 13:53 adclone.pl
-rwxr-xr-x 1 devmgr dba 29104 Dec 03 13:53 adclonectx.pl
$ stty erase
$
$
$ perl adcfgclone.pl appsTier
Enter the APPS password [APPS]: apps
Provide the values required for creation of the new APPL_TOP Context file.
Do you want to use a virtual hostname for the target node (y/n) [n] ?:
Does the target system have more than one application tier server node (y/n) [n] ?:
Is the target system APPL_TOP divided into multiple mount points (y/n) [n] ?:
_______________________________________________________________________
_
54313423.doc Page 9 of 11
Target system APPL_TOP mount point
[/preprod/u01/appstire/testappl]:/crp1/devmgr/DEV/devappl
Clone Context uses the same port pool mechanism as the Rapid Install
Once you choose a port pool, Clone Context will validate the port availability.
1. /usr/tmp
2. /usr/tmp
3. /crp1/devmgr/DEV/devdb/9.2.0/appsutil/outbound/DEV_ka01axsd2
4. /usr/tmp
Choose a value which will be set as APPLPTMP value on the target node [1]:3
This will configure the apps tire and startup all the apps services.
Check the instance and fire a request.
_______________________________________________________________________
_
54313423.doc Page 10 of 11
_______________________________________________________________________
_
54313423.doc Page 11 of 11