Sunday, March 16, 2014

Cloning in Oracle Apps (EBS) Different Methods like Offline / Online


EBS Cloning:
---------------

- Rapid clone
|
|-> adpreclone.pl (source) : It is to prepare the source Application
| -System for cloning.
|
|-> adcfgclone.pl (target) : It is to configure(clone) the target Application System.

- adpreclone.pl

db-tier: $ORACLE_HOME/appsutil/scripts/


apps-tier: $ADMIN_SCRIPTS_HOME

- adcfgclone.pl

db-tier: $ORACLE_HOME/appsutil/clone/bin

apps-tier: $COMMON_TOP/clone/bin

Offline Cloning:(S-S)
------------------

source: node1

target: node3

- Check the pre-req & apply required patches on source

- Run adpreclone.pl on source

db-tier:

Logfile: $ORACLE_HOME/appsutil/log//StageDBTier_.log

Stage dir "clone" : $ORACLE_HOME/appsutil


apps-tier:


Logfile: $INST_TOP/admin/log/StageAppsTier_.log

Stage dir "clone" : $COMMON_TOP


- copy the source node files & dirs to target (stop all the services)

db-tier:

scp -r * node3:/u01


apps-tier:

SCP -r * node3:/u02


- Run adcfgclone.pl on target

db- tier:

Context file logfile: $ORACLE_HOME/appsutil/clone/bin/CloneContext_.log

adclone logfile: $ORACLE_HOME/appsutil/log//ApplyDBTier_.log

apps-tier:

Context file logfile: $COMMON_TOP/clone/bin/CloneContext_.log

adclone logfile: $INST_TOP/admin/log//ApplyAppsTier_.log


- Perform post cloning steps


Single to Multi node Cloning:
---------------------------------

source : node1
Target : node3 :(db,cms) node2 :(Apache,OC4J..)



- Check the pre-req & apply the required patches on source

- Prepare the target nodes

node3:


node2:

- Run adpreclone.pl on source

db-tier:
apps-tier:


- Stop all the services & copy the source node files & dirs to target

db-tier:
apps-tier:

- Run adcfgclone.pl on target node

db-tier:

oracle $cd /u01/db/tech_st/11.1.0/appsutil/clone/bin

$perl adcfgclone.pl dbTier

apps-tier:

node3:

applmgr $cd /u02/apps/apps_st/comn/clone/bin

$perl adcfgclone.pl appsTier

node2:

applmgr $cd /u02/apps/apps_st/comn/clone/bin

$perl adcfgclone.pl appsTier


Perform Post-cloning tasks:


1. Update profile options

Rapid Clone updates only site level profile options.
If any other profile options are set to instance specific values,
you must update them manually


2. Update printer settings

If the new cloned system needs to utilize different printers,
update the target system with the new printer settings now

3. Update Workflow configuration settings

Cloning an Oracle Applications instance will not update the host
and instance-specific information used by Oracle Workflow.
Review the tables and columns listed in Table 4 to check for any
instance-specific data in the Workflow configuration on the target system

4. Verify the APPLCSF variable setting

Source the APPS environment and review that the variable APPLCSF
(identifying the top-level directory for concurrent manager log and output files)
points to a suitable directory. To modify it, change the value of the
s_applcsf variable in the context file and then run AutoConfig.

5. Update the SESSION_COOKIE_DOMAIN value in ICX_PARAMETERS

If the target system is in a different domain name than the source system
and SESSION_COOKIE_DOMAIN was not null in the source system,
update that value to reflect the new domain name







Online Cloning(s-s):
------------------------

source : node8

target : node53 (db ,cms)

node54 (Apache, oc4j ...)

Note: DB must be in archive log mode.

- Check the pre-requisites & apply required patches

* Latest AD patch

* Patches for Rapid clone


- Prepare the target node


- Run adpreclone.pl on source

db-tier:

apps-tier:


- Enable backup mode for db & copy all source node files & dirs to target:

db-tier:
scp -r db node53:/u01

(or)

tar zcvf - db | ssh node53:('cd /u01;tar zxvf -)


apps-tier:

scp -r apps inst node53:/u02

(or)
tar zcvf - apps inst | ssh node53:('cd /u02;tar zxvf -)


- End backup & take backup of control file:

- Copy the backup controlfile & archives to target


- Configure the target node

- Run adcfgclone.pl on db-tier

Logfile: $ORACLE_HOME/appsutil/clone/bin/cloneContext_.log

$ORACLE_HOME/appsutil/log//ApplyDBTier_.log

- Create control file & recover database

- Add tempfile to TEMPORARY Table Space

- Run adcfglcone.pl to configure database.

- Run adcfgclone.pl on apps-tier

Logfile: $COMMON_TOP/clone/bin/cloneContext_.log

$INST_TOP/admin/log/ApplyAppsTier_.log

- Set the env

- Perform post_cloning Tasks.

No comments: