cloning 11510(all types)

28
Cloning Oracle Applications 11510 Cloning Oracle Applications 11510..........1 Why and What?..............................2 Prerequisites..............................2 SINGLE-TO-SINGLE NODE CLONING..............4 MULTI-TO-SINGLE NODE CLONING...............5 SINGLE-TO-MULTI NODE CLONING..............11 MULTI-TO-MULTI NODE CLONING...............17

Upload: api-3745837

Post on 11-Apr-2015

356 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Cloning 11510(all types)

Cloning Oracle Applications 11510

Cloning Oracle Applications 11510................................................1Why and What?...............................................................................2Prerequisites.....................................................................................2SINGLE-TO-SINGLE NODE CLONING......................................4MULTI-TO-SINGLE NODE CLONING.......................................5SINGLE-TO-MULTI NODE CLONING.....................................11MULTI-TO-MULTI NODE CLONING.......................................17

Prepared by: Nikhil RanagrajuORACLE NAIO

Page 2: Cloning 11510(all types)

Why and What?Cloning creates an identical copy of an existing Oracle Applications system. There are various reasons for cloning an Oracle Applications system such as:

Creating a copy of the production system for testing updates. Migrating an existing system to new hardware. Creating a stage area to reduce patching downtime.

Prerequisites

Verify Source and target nodes versionsOUI versionOUI version should be 2.2.0.19.0. To check OUI version of 9i ORACLE_HOME edit /u01/oraclone/clonedb/9.2.0/appsoui/oui/oraparam.ini

To check OUI version of IAS_ORACLE_HOME edit /u01/applclone/cloneora/iAS/appsoui/oui/oraparam.ini

If OUI version is not accurate then apply the following patch 5035661

PERL versionPerl version should be 5.005. To check the version, give perl –v at command prompt. JREJre should be 1.1.8.JDKJDK verison should be 1.3.ZipZip version should be 2.3.

Apply the latest AD MinipackApply patch 4712852 (AD.I.4) or higher.Why??It includes new features likea) The AD Check Digest utility checks the integrity of files downloaded from

Oracleb) AD Admin and AD controller support for Non-Interactive mode.c) AD Merge Patch Utilityd) Distributed AD.

Apply the latest AutoConfig Template patchUpdate the Oracle Applications file system with the latest AutoConfig template files by applying the TXK AutoConfig Template rollup patch to all application tier server nodes.

Page 3: Cloning 11510(all types)

What?AutoConfig is a tool that supports automated configuration of an Applications instance. When AutoConfig runs on the Application tier, it uses information from the Applications Context file to generate all configuration files and update database profiles. When AutoConfig runs on the Database tier, it uses information from the Database Context file to generate all configuration files used on the Database tier.

Apply the latest Rapid Clone patchesUpdate the Oracle Applications file system with the latest Rapid Clone files by applying the following patches to all application tier server nodes:

4709948 (TXK (FND) AUTOCONFIG TEMPLATE ROLLUP PATCH M)

It includes TXK AutoConfig template files to configure the Technology Stack for Oracle E-Business Suite 11i instances using AutoConfig. These template files have no effect on the E-Business Suite configuration until the AutoConfig utility is run.

Setup Rapid Clone on the Applications TierAlready 11.5.10 is AutoConfig enabled. Run Autoconfig on Application tier.

Setup Rapid Clone on the Database TierAlready 11.5.10 is AutoConfig enabled. Run Autoconfig on Database tier.

Maintain Snapshot informationThis task stores information about files, file versions, and bug fixes present in an APPL_TOP. Chose this option to record the current set of files and file versions in your APPL_TOP.

SINGLE-TO-SINGLE NODE CLONING

System Information

Source Machine info:Node1: ocvmrh2144.us.oracle.comSID: db01App User: appldb01DB user: oradb01

Target machine info:Node2: ocvmrh2149.us.oracle.comSID: cloneApp User: applcloneDB user: oraclone

Page 4: Cloning 11510(all types)

Using RapidCloneUse Rapid Clone to create template files for cloning on the source system. After the source system is copied to the target, Rapid Clone updates these templates to contain the new target system configuration settings. Rapid Clone will not change the source system configuration.

Three phases to clone:Prepare the source systema) Prepare the Source System DB tier for cloning

Log on to the source system as the oradb01 user and run the following commands:cd <RDBMSORACLE_HOME>/appsutil/scripts/db01_ovcmrh2144/         perl adpreclone.pl dbTier

b) Prepare the Source system App tier for cloning.Log on to the source system as the appldb01 user and run the following commands.cd <COMMON_TOP>/admin/scripts/ db01_ovcmrh2144/         perl adpreclone.pl appsTier

Copy the Source System to the Target SystemCopy the application tier file system from the source Applications system to the target node. Ensure that the target APPLCLONE user owns application tier files copied to the target system, and the ORACLONE user owns database tier files.

a) Log on to the source system application tier nodes as the APPLDB01 user. Shut down the application tier server processes Copy the following application tier directories from the source node to

the target application tier node: b) Copy the database tier file system

Log on to the source system database node as the ORDB01 user. Perform a normal shutdown of the source system database Copy the database (DBF) files from the source to the target system Copy the source database ORACLE_HOME to the target system Start up the source Applications system database and application tier

processes

Configure the Target SystemYou will be prompted for the target system specific values (SID, Paths, Ports, etc)a) Configure the target system database serverLog on to the target system as the ORACLONE user and type the following commands to configure and start the database:  cd <RDBMS ORACLE_HOME>/appsutil/clone/bin         perl adcfgclone.pl dbTier

Page 5: Cloning 11510(all types)

b) Configure the target system application tier server nodesLog on to the target system as the APPLCLONE user and type the following commands:         cd <COMMON_TOP>/clone/bin         perl adcfgclone.pl appsTier

Post Steps:o Change APPS and SYSADMin Password using FNDCPASS utility.o Relink Oracle Applications.o Update Snapshot.

MULTI-TO-SINGLE NODE CLONING

System Information

Source Machine info:Node1: ocvmrh2144.us.oracle.com (Primary Node)Servers: Database server, Concurrent server, admin server, Discoverer and Reports serverSID: db01App User: appldb01DB user: oradb01

Node2: ocvmrh2149.us.oracle.com (Secondary Node)Servers: Forms server, Web server.SID: db01App User: appldb01DB user: oradb01

Target machine info:Node1: ocvmrh2149.us.oracle.comSID: cloneApp User: applcloneDB user: oraclone

Prepare the Source System (Nodes: ovmrh2144 & ocvmrh2149, Sid=db01)

The Applications, Database and DBListener should be up and runningWhile running adpreclone.pl on the primary node it asks to run the secondary nodes adpreclone.pl script.On the Application Tier run the following scripts

On Primary Node (ocvmrh2144)perl adpreclone.pl appsTier merge

Page 6: Cloning 11510(all types)

Output when above Script is run:Running adgenhfver.pl with command... perl /u01/app/appldb01/db01appl/ad/11.5.0/bin/adgenhfver.pl isPrimary=y applsysusr=APPLSYS tempdir=/u01/app/appldb01/db01comn/tempPlease enter the APPS User [APPS]: appsPlease enter the APPS password: appsThis is the merge Primary node:PLATFORM: linuxCurrent APPL_TOP: ocvmrh2144APPL_TOPs belonging to db01 that can be merged with ocvmrh2144:ocvmrh2149(ADMIN, FORMS, CONCURRENT_PROCESSING)Do you want to include ocvmrh2149 in the merge ? [y]:Generating the high version files manifest. This will take some time, please wait...sqlplus -s apps/apps @/u01/app/appldb01/db01appl/ad/11.5.0/patch/115/sql/admsnlst.sql db01 ocvmrh2144 ocvmrh2149,ocvmrh2144 APPLSYS /u01/app/appldb01/db01appl/admin/db01/out/hfilever_appl_top.txt YManifest located in: /u01/app/appldb01/db01appl/admin/db01/out/hfilever_appl_top.txtYou can now go ahead and run the preparation on the subsequent node(s) while this process completes.Running Rapid Clone with command... perl /u01/app/apdb01/db01appl/ad/11.5.0/bin/adclone.pl java=/u01/app/appldb01/db01ora/iAS/appsoui/jre/1.3.1 mode=stage stage=/u01/app/appldb01/db01comn/clone component=appsTier method=CUSTOM appctx=/u01/app/appldb01/db01appl/admin/db01_ocvmrh2144.xml merge showProgress

Beginning application tier Stage - Tue Apr 24 08:09:22 2007Log file located at /u01/app/appldb01/db01appl/admin/db01_ocvmrh2144/log/StageAppsTier_04240809.log Completed Merge APPL_TOP preparation for current Node...Tue Apr 24 08:43:20 2007 [appldb01@ocvmrh2144 db01_ocvmrh2144]$

On Secondary Node (ocvmrh2149)/u01/app/appldb01/db01comn/admin/scripts/<contextname>/adpreclone.pl perl adpreclone.pl appltop mergeObservations when run:Running adgenhfver.pl with command... perl /u01/apps/appldb01/db01appl/ad/11.5.0/bin/adgenhfver.pl isPrimary=n applsysusr=APPLSYS tempdir=/u01/apps/appldb01/db01comn/tempPlease enter the APPS User [APPS]: appsPlease enter the APPS password: appsCurrent APPL_TOP: ocvmrh2149This is a subsequent node to be merged into the primary node.Downloading the high version files manifest from the database...

Page 7: Cloning 11510(all types)

Found the manifest for merging ocvmrh2149, ocvmrh2144-using ocvmrh2144 as the Primary node.sqlplus -s apps/apps @/u01/apps/appldb01/db01appl/ad/11.5.0/patch/115/sql/admsnlst.sql db01 ocvmrh2149 ocvmrh2149,ocvmrh2144 APPLSYS /u01/apps/appldb01/db01appl/admin/db01/out/hfilever_appl_top.txt NManifest located in: /u01/apps/appldb01/db01appl/admin/db01/out/hfilever_appl_top.txtRunning Rapid Clone with command... perl /u01/apps/appldb01/db01appl/ad/11.5.0/bin/adclone.pl java=/u01/apps/appldb01/db01ora/iAS/appsoui/jre/1.3.1 mode=stage stage=/u01/apps/appldb01/db01comn/clone component=appltop method=CUSTOM appctx=/u01/apps/appldb01/db01appl/admin/db01_ocvmrh2149.xml merge showProgressBeginning appltop Merge - Tue Apr 24 08:11:40 2007Log file located at /u01/apps/appldb01/db01appl/admin/db01_ocvmrh2149/log/MergeApplTop_04240811.logCompleted Merge APPL_TOP preparation for current Node...Tue Apr 24 08:34:56 2007

On Database Tier (ocvmrh2144) run the following sctipt/u01/app/oradb01/db01db/9.2.0/appsutil/scripts/<contextname>/adpreclone.plperl adpreclone.pl dbTier pwd=appsRunning Rapid Clone with command... perl /u01/app/oradb01/db01db/9.2.0/appsutil/bin/adclone.pl java=/u01/app/oradb01/db01db/9.2.0/jre/1.4.2 mode=stage stage=/u01/app/oradb01/db01db/9.2.0/appsutil/clone component=dbTier method=CUSTOM dbctx=/u01/app/oradb01/db01db/9.2.0/appsutil/db01_ocvmrh2144.xml showProgressBeginning database tier Stage - Tue Apr 24 08:45:50 2007APPS Password : appsLog file located at /u01/app/oradb01/db01db/9.2.0/appsutil/log/db01_ocvmrh2144/StageDBTier_04240845.log | 75% completed

Prepare the Target System (Node: ocvmrh2149):Create two users.Useradd –g oaa –d /u01/app/applclone –p applclone applcloneUseradd –g dba –d /u01/app/oraclone –p oraclone oraclone

Copy Source to Target:Copy dbTier to the ocvmrh2149 node.Scp –r * oraclone@ocvmrh2149:/u01/app/oraclone/Copy Primary node appsTier to the (ocvmrh2149) Scp –r * applclone@ocvmrh2149:/u01/app/applcloneCopy clone directory from secondary nodes to the target node

Page 8: Cloning 11510(all types)

Cp –Rf /u01/app/apdb01/db01comn/clone/appl /u01/app/applclone/clonecomn/clone/appl

Run the adcfgclone.pl on the Target System:On Database Tier:[oraclone@ocvmrh2149 bin]$ perl adcfgclone.pl dbTierEnter the APPS password [APPS]:appsFirst Creating a new context file for the cloned system.The program is going to ask you for information about the new system: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] ?:Target instance is a Real Application Cluster (RAC) instance (y/n) [n]:Target System database name [db01]: cloneTarget system RDBMS ORACLE_HOME directory [/u01/app/ordb01/db01db/9.2.0]:/u01/apps/oraclone/clonedb/9.2.0Target system utl_file accessible directories list [/usr/tmp]:Number of DATA_TOP's on the target system [1]:Target system DATA_TOP 1 [/u01/app/ordb01/db01data]:/u01/apps/oraclone/clonedataDo you want to preserve the Display set to ocvmrh2144:0.0 (y/n) [y] ?:nTarget system Display [ocvmrh2149:0.0]:Do you want to preserve the port values from the source system on the target system (y/n) [y] ?:nClone Context uses the same port pool mechanism as the Rapid InstallOnce you choose a port pool, Clone Context will validate the port availability.Enter the port pool number [0-99]:8Checking the port pool 8done: Port Pool 8 is freeDatabase port is 1529Backing up /u01/apps/oraclone/clonedb/9.2.0/appsutil/clone_ocvmrh2149.xml to /u01/apps/oraclone/clonedb/9.2.0/appsutil/clone_ocvmrh2149.xml3.bakCreating the new Database Context file from : /u01/apps/oraclone/clonedb/9.2.0/appsutil/template/adxdbctx.tmpThe new database context file has been created : /u01/apps/oraclone/clonedb/9.2.0/appsutil/clone_ocvmrh2149.xmlLog file located at /u01/apps/oraclone/clonedb/9.2.0/appsutil/clone/bin/CloneContext_04251205.logRunning Rapid Clone with command: perl /u01/apps/oraclone/clonedb/9.2.0/appsutil/clone/bin/adclone.pl java=/u01/apps/oraclone/clonedb/9.2.0/appsutil/clone/bin/../jre mode=apply stage=/u01/apps/oraclone/clonedb/9.2.0/appsutil/clone/bin/.. component=dbTier method=CUSTOM dbctxtg=/u01/apps/oraclone/clonedb/9.2.0/appsutil/clone_ocvmrh2149.xml showProgress contextValidated=true

Page 9: Cloning 11510(all types)

Beginning database tier Apply - Wed Apr 25 00:05:51 2007Log file located at /u01/apps/oraclone/clonedb/9.2.0/appsutil/log/clone_ocvmrh2149/ApplyDBTier_04251205.logCompleted Apply...Wed Apr 25 00:11:35 2007Beginning APPSDB_clone registration to central inventory...ORACLE_HOME NAME : APPSDB_cloneORACLE_HOME PATH : /u01/apps/oraclone/clonedb/9.2.0Using Inventory location in /etc/oraInst.locLog file located at /etc/oraInventory/logs/OracleHomeCloner_04251211.logORACLE_HOME /u01/apps/oraclone/clonedb/9.2.0 was registered successfully.Starting database listener for clone:Running: /u01/apps/oraclone/clonedb/9.2.0/appsutil/scripts/clone_ocvmrh2149/addlnctl.sh start cloneYou are running addlnctl.sh version 115.6Logfile: /u01/apps/oraclone/clonedb/9.2.0/appsutil/log/clone_ocvmrh2149/addlnctl.txtStarting listener process clone ...Listener clone has already been started.addlnctl.sh: exiting with status 0[oraclone@ocvmrh2149 bin]$

On Applications Tier[applclone@ocvmrh2149 bin]$ perl adcfgclone.pl appsTierEnter the APPS password [APPS]:appsFirst Creating a new context file for the cloned system.The program is going to ask you for information about the new system: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] ?:Target system database SID [db01]:cloneTarget system database server node [ocvmrh2144]:ocvmrh2149Target system database domain name [us.oracle.com]:Does the target system have more than one application tier server node (y/n) [y] ?:nIs the target system APPL_TOP divided into multiple mount points (y/n) [n] ?:Target system APPL_TOP mount point [/u01/app/apdb01/db01appl]:/u01/apps/applclone/cloneapplTarget system COMMON_TOP directory [/u01/app/apdb01/db01comn]:/u01/apps/applclone/clonecomnTarget system 8.0.6 ORACLE_HOME directory [/u01/app/apdb01/db01ora/8.0.6]:/u01/apps/applclone/cloneora/8.0.6Target system iAS ORACLE_HOME directory [/u01/app/apdb01/db01ora/iAS]:/u01/apps/applclone/cloneora/iAS

Page 10: Cloning 11510(all types)

Do you want to preserve the Display set to ocvmrh2144:0.0 (y/n) [y] ?:nTarget system Display [ocvmrh2149:0.0]:Enter the Database listener port [1527]:1529Database port is 1529Do you want the middle-tier services on the target system to have the same port values as the source system (y/n) [y] ?:nClone Context uses the same port pool mechanism as the Rapid Install.Once you choose a port pool, Clone Context will validate the port availability.Enter the port pool to be used for the target system middle-tier services [0-99]:8Checking the port pool 8done: Port Pool 8 is freeUTL_FILE_DIR on database tier consists of the following directories.1. /usr/tmp2. /usr/tmp3. /u01/apps/oraclone/clonedb/9.2.0/appsutil/outbound/clone_ocvmrh21494. /usr/tmpChoose a value which will be set as APPLPTMP value on the target node [1]:Creating the new APPL_TOP Context file from : /u01/apps/applclone/cloneappl/ad/11.5.0/admin/template/adxmlctx.tmpThe new APPL_TOP context file has been created : /u01/apps/applclone/cloneappl/admin/clone_ocvmrh2149.xmlLog file located at /u01/apps/applclone/clonecomn/clone/bin/CloneContext_04251215.logRunning Rapid Clone with command: perl /u01/apps/applclone/clonecomn/clone/bin/adclone.pl java=/u01/apps/applclone/clonecomn/clone/bin/../jre mode=apply stage=/u01/apps/applclone/clonecomn/clone/bin/.. component=appsTier method=CUSTOM appctxtg=/u01/apps/applclone/cloneappl/admin/clone_ocvmrh2149.xml merge showProgress contextValidated=trueBeginning application tier Apply - Wed Apr 25 00:17:55 2007Log file located at /u01/apps/applclone/cloneappl/admin/clone_ocvmrh2149/log/ApplyAppsTier_04251217.logCompleted Apply...Wed Apr 25 00:53:08 2007Beginning APPSIAS_clone registration to central inventory...ORACLE_HOME NAME : APPSIAS_cloneORACLE_HOME PATH : /u01/apps/applclone/cloneora/iASUsing Inventory location in /etc/oraInst.locLog file located at /etc/oraInventory/logs/OracleHomeCloner_04251253.logORACLE_HOME /u01/apps/applclone/cloneora/iAS was registered successfully.Executing merge appl top for JRI merge

merge jri files with command :

Page 11: Cloning 11510(all types)

JRI log file located at, /u01/apps/applclone/cloneappl/admin/clone/out/jri_logfile.txtJRI report file located at, /u01/apps/applclone/cloneappl/admin/clone/out/jri_report.txtCopying master archive from /u01/apps/applclone/clonecomn/clone/bin/../appl/ocvmrh2149/java/* to /u01/apps/applclone/clonecomn/javaCompleted copying master archive to /u01/apps/applclone/clonecomn/javaStarting application Services for clone:Running: /u01/apps/applclone/clonecomn/admin/scripts/clone_ocvmrh2149/adstrtal.sh APPS/<appspwd>

Post Steps:o Change APPS and SYSADMin Password using FNDCPASS utility.o Relink Oracle Applications.o Update Snapshot.

SINGLE-TO-MULTI NODE CLONING

System Information

Source Machine info:Node1: ocvmrh2144.us.oracle.comSID: db01App User: appldb01DB user: oradb01

Target machine info:Node1: ocvmrh2149 Node2: ocvmrh2144Sid: cloneAPP user: applcloneDB user: oracloneServers: Web & forms on ocvmrh2144 Concurrent, Admin and Database on ocvmrh2149

Prepare the Source System (Node: ocvmrh2144, Sid=db01):

On the Database Tier run the following script. /u01/app/oradb01/db01db/9.2.0/appsutil/scripts/<contextname>/adpreclone.pl

perl adpreclone.pl dbTier pwd=apps

Page 12: Cloning 11510(all types)

When we run this script it creates a Clone directory in /u01/app/oradb01/db01db/9.2.0/appsutil/clone

On the Application Tier run the following script./u01/app/appldb01/db01comn/admin/scripts/<contextname>/adpreclone.plPerl adpreclone.pl appsTier pwd=apps

When we run this script it creates a Clone directory in/u01/app/appldb01/db01comn/clonePrepare the Target System (Node: ocvmrh2149, ocvmrh2144):

Create two users in both nodes.Useradd –g oaa –d /u01/app/applclone –p applclone applcloneUseradd –g dba –d /u01/app/oraclone –p oraclone oraclone

Copy Source to Target:Copy dbTier to the ocvmrh2149 node.Scp –r * oraclone@ocvmrh2149:/u01/app/oraclone/Copy appsTier to the (ocvmrh2149, ocvmrh2144) both nodesScp –r * applclone@ocvmrh2149:/u01/app/applcloneCp –Rf /u01/app/appldb01/ /u01/app/applclone/

Run the adcfgclone.pl on the Target System:On Database Tier:[oraclone@ocvmrh2149 bin]$ perl adcfgclone.pl dbTierEnter the APPS password [APPS]:appsFirst Creating a new context file for the cloned system.The program is going to ask you for information about the new system:

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] ?:Target instance is a Real Application Cluster (RAC) instance (y/n) [n]:Target System database name [db01]: cloneTarget system RDBMS ORACLE_HOME directory [/u01/apps/oradb01/db01db/9.2.0]:/u01/app/oraclone/clonedb/9.2.0Target system utl_file accessible directories list [/usr/tmp]:Number of DATA_TOP's on the target system [1]:Target system DATA_TOP 1 [/u01/apps/oradb01/db01data]:/u01/app/oraclone/clonedataDo you want to preserve the Display set to ocvmrh2144:0.0 (y/n) [y] ?:nTarget system Display [ocvmrh2149:0.0]:Do you want to preserve the port values from the source system on the target system (y/n) [y] ?:nClone Context uses the same port pool mechanism as the Rapid InstallOnce you choose a port pool, Clone Context will validate the port availability.

Page 13: Cloning 11510(all types)

Enter the port pool number [0-99]:6Checking the port pool 6done: Port Pool 6 is freeDatabase port is 1527Creating the new Database Context file from : /u01/app/oraclone/clonedb/9.2.0/appsutil/template/adxdbctx.tmpThe new database context file has been created : /u01/app/oraclone/clonedb/9.2.0/appsutil/clone_ocvmrh2149.xmlLog file located at /u01/app/oraclone/clonedb/9.2.0/appsutil/clone/bin/CloneContext_04230929.logRunning Rapid Clone with command: perl /u01/app/oraclone/clonedb/9.2.0/appsutil/clone/bin/adclone.pl java=/u01/app/oraclone/clonedb/9.2.0/appsutil/clone/bin/../jre mode=apply stage=/u01/app/oraclone/clonedb/9.2.0/appsutil/clone/bin/.. component=dbTier method=CUSTOM dbctxtg=/u01/app/oraclone/clonedb/9.2.0/appsutil/clone_ocvmrh2149.xml showProgress contextValidated=trueBeginning database tier Apply - Mon Apr 23 09:32:25 2007Log file located at /u01/app/oraclone/clonedb/9.2.0/appsutil/log/clone_ocvmrh2149/ApplyDBTier_04230932.logCompleted Apply...Mon Apr 23 09:38:28 2007

Beginning APPSDB_clone registration to central inventory...ORACLE_HOME NAME : APPSDB_cloneORACLE_HOME PATH : /u01/app/oraclone/clonedb/9.2.0Using Inventory location in /etc/oraInst.locLog file located at /etc/oraInventory/logs/OracleHomeCloner_04230938.logORACLE_HOME /u01/app/oraclone/clonedb/9.2.0 was registered successfully.Starting database listener for clone:Running: /u01/app/oraclone/clonedb/9.2.0/appsutil/scripts/clone_ocvmrh2149/addlnctl.sh start cloneYou are running addlnctl.sh version 115.6Logfile: /u01/app/oraclone/clonedb/9.2.0/appsutil/log/clone_ocvmrh2149/addlnctl.txtStarting listener process clone ...Listener clone has already been started.addlnctl.sh: exiting with status 0

On Application Tier (2149):

[applclone@ocvmrh2149 bin]$ perl adcfgclone.pl appsTierEnter the APPS password [APPS]: appsFirst Creating a new context file for the cloned system.

Page 14: Cloning 11510(all types)

The program is going to ask you for information about the new system: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] ?:Target system database SID [db01]:cloneTarget system database server node [ocvmrh2144]:ocvmrh2149Target system database domain name [us.oracle.com]:Does the target system have more than one application tier server node (y/n) [n] ?:yDoes the target system application tier utilize multiple domain names (y/n) [n] ?:Target system concurrent processing node [ocvmrh2144]:ocvmrh2149Target system administration node [ocvmrh2144]:ocvmrh2149Target system forms server node [ocvmrh2144]:Target system web server node [ocvmrh2144]:Is the target system APPL_TOP divided into multiple mount points (y/n) [n] ?:Target system APPL_TOP mount point [/u01/apps/appldb01/db01appl]:/u01/app/applclone/cloneapplTarget system COMMON_TOP directory [/u01/apps/appldb01/db01comn]:/u01/app/applclone/clonecomnTarget system 8.0.6 ORACLE_HOME directory [/u01/apps/appldb01/db01ora/8.0.6]:/u01/app/applclone/cloneora/8.0.6Target system iAS ORACLE_HOME directory [/u01/apps/appldb01/db01ora/iAS]:/u01/app/applclone/cloneora/iASDo you want to preserve the Display set to ocvmrh2144:0.0 (y/n) [y] ?:nTarget system Display [ocvmrh2149:0.0]:Do you want to preserve the port values from the source system on the target system (y/n) [y] ?:nClone Context uses the same port pool mechanism as the Rapid InstallOnce you choose a port pool, Clone Context will validate the port availability.Enter the port pool number [0-99]:6Checking the port pool 6done: Port Pool 6 is freeWeb Listener port is 8006Complete port information available at /u01/app/applclone/cloneappl/admin/out/clone_ocvmrh2149/portpool.lstUTL_FILE_DIR on database tier consists of the following directories.1. /usr/tmp2. /usr/tmp3. /u01/app/oraclone/clonedb/9.2.0/appsutil/outbound/clone_ocvmrh21494. /usr/tmpChoose a value which will be set as APPLPTMP value on the target node [1]:Creating the new APPL_TOP Context file from : /u01/app/applclone/cloneappl/ad/11.5.0/admin/template/adxmlctx.tmpThe new APPL_TOP context file has been created : /u01/app/applclone/cloneappl/admin/clone_ocvmrh2149.xmlLog file located at /u01/app/applclone/clonecomn/clone/bin/CloneContext_04231150.logRunning Rapid Clone with command:

Page 15: Cloning 11510(all types)

perl /u01/app/applclone/clonecomn/clone/bin/adclone.pl java=/u01/app/applclone/clonecomn/clone/bin/../jre mode=apply stage=/u01/app/applclone/clonecomn/clone/bin/.. component=appsTier method=CUSTOM appctxtg=/u01/app/applclone/cloneappl/admin/clone_ocvmrh2149.xml showProgress contextValidated=trueBeginning application tier Apply - Mon Apr 23 23:53:29 2007Log file located at /u01/app/applclone/cloneappl/admin/clone_ocvmrh2149/log/ApplyAppsTier_04231153.logCompleted Apply...Tue Apr 24 00:04:42 2007Beginning APPSIAS_clone registration to central inventory...

ORACLE_HOME NAME : APPSIAS_cloneORACLE_HOME PATH : /u01/app/applclone/cloneora/iASUsing Inventory location in /etc/oraInst.locLog file located at /etc/oraInventory/logs/OracleHomeCloner_04241204.logORACLE_HOME /u01/app/applclone/cloneora/iAS was registered successfully.

Starting application Services for clone:Running: /u01/app/applclone/clonecomn/admin/scripts/clone_ocvmrh2149/adstrtal.sh APPS/<appspwd>

On Application Tier (2144):[applclone@ocvmrh2144 bin]$ perl adcfgclone.pl appsTierEnter the APPS password [APPS]: appsFirst Creating a new context file for the cloned system.The program is going to ask you for information about the new system:

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] ?:Target system database SID [db01]:cloneTarget system database server node [ocvmrh2144]:ocvmrh2149Target system database domain name [us.oracle.com]:Does the target system have more than one application tier server node (y/n) [n] ?:yDoes the target system application tier utilize multiple domain names (y/n) [n] ?:Target system concurrent processing node [ocvmrh2144]:ocvmrh2149Target system administration node [ocvmrh2144]:ocvmrh2149Target system forms server node [ocvmrh2144]:Target system web server node [ocvmrh2144]:Is the target system APPL_TOP divided into multiple mount points (y/n) [n] ?:Target system APPL_TOP mount point [/u01/apps/appldb01/db01appl]:/u01/apps/applclone/cloneappl

Page 16: Cloning 11510(all types)

Target system COMMON_TOP directory [/u01/apps/appldb01/db01comn]:/u01/apps/applclone/clonecomnTarget system 8.0.6 ORACLE_HOME directory [/u01/apps/appldb01/db01ora/8.0.6]:/u01/apps/applclone/cloneora/8.0.6Target system iAS ORACLE_HOME directory [/u01/apps/appldb01/db01ora/iAS]:/u01/apps/applclone/cloneora/iASDo you want to preserve the Display set to ocvmrh2144:0.0 (y/n) [y] ?:nTarget system Display [ocvmrh2144:0.0]:Clone Context uses the same port pool mechanism as the Rapid InstallOnce you choose a port pool, Clone Context will validate the port availability.Enter the port pool number [0-99]:6Checking the port pool 6done: Port Pool 6 is freeWeb Listener port is 8006Complete port information available at /u01/apps/applclone/cloneappl/admin/out/clone_ocvmrh2144/portpool.lstUTL_FILE_DIR on database tier consists of the following directories.1. /usr/tmp2. /usr/tmp3. /u01/app/oraclone/clonedb/9.2.0/appsutil/outbound/clone_ocvmrh21494. /usr/tmpChoose a value which will be set as APPLPTMP value on the target node [1]:Backing up /u01/apps/applclone/cloneappl/admin/clone_ocvmrh2144.xml to /u01/apps/applclone/cloneappl/admin/clone_ocvmrh2144.xml.bakCreating the new APPL_TOP Context file from : /u01/apps/appldb01/db01appl/ad/11.5.0/admin/template/adxmlctx.tmpThe new APPL_TOP context file has been created : /u01/apps/applclone/cloneappl/admin/clone_ocvmrh2144.xmlLog file located at /u01/apps/applclone/clonecomn/clone/bin/CloneContext_04241217.logRunning Rapid Clone with command: perl /u01/apps/applclone/clonecomn/clone/bin/adclone.pl java=/u01/apps/applclone/clonecomn/clone/bin/../jre mode=apply stage=/u01/apps/applclone/clonecomn/clone/bin/.. component=appsTier method=CUSTOM appctxtg=/u01/apps/applclone/cloneappl/admin/clone_ocvmrh2144.xml showProgress contextValidated=trueBeginning application tier Apply - Tue Apr 24 00:20:09 2007Log file located at /u01/apps/applclone/cloneappl/admin/clone_ocvmrh2144/log/ApplyAppsTier_04241220.log - 38% completed Completed Apply...Tue Apr 24 00:31:26 2007Beginning APPSIAS_clone registration to central inventory...

Page 17: Cloning 11510(all types)

ORACLE_HOME NAME : APPSIAS_cloneORACLE_HOME PATH : /u01/apps/applclone/cloneora/iASUsing Inventory location in /etc/oraInst.locLog file located at /u01/oracle9i/oraInventory/logs/OracleHomeCloner_04241231.logRC-00123: Warning: ORACLE_HOME APPSIAS_clone already exists inside the inventoryStarting application Services for clone:Running: /u01/apps/applclone/clonecomn/admin/scripts/clone_ocvmrh2144/adstrtal.sh APPS/<appspwd>

Problems & Solutions:

After cloning when we look at the OAM screen, we realized that concurrent processing server and admin server was running on both the nodes (ocvmrh2144, ocvmrh2149),According to the configuration db, cps, admin are supposed to be only in ocvmrh2149While web, forms are supposed to be in ocvmrh2144

To solve this We checked the fnd_nodes table and it shows cps and admin on both the nodes.We took a backup of fnd_nodes table and executed this command

EXEC FND_CONC_CLONE.SETUP_CLEAN;Commit;

This script clears the fnd_nodes table.after this we ran the autoconfig on both the nodes and bounced the db.Autoconfig would insert all the data into the fnd_nodes table.The rectified information can be seen in the OAM screen.

MULTI-TO-MULTI NODE CLONING

System Information

Source Machine info:Node1: ocvmrh2144.us.oracle.com (admin, db, concurrent server)Node2: ocvmrh2149.us.oracle.com (Form and web servers)SID: db01App User: appldb01DB user: oradb01

Target machine info:Node1: ocvmrh2149.us.oracle.com (admin, db and concurrent server)Node2: ocvmrh2144.us.oracle.com (Form and web servers)

Page 18: Cloning 11510(all types)

SID: cloneApp User: applcloneDB user: oraclone

Prepare the source systemc) Prepare the Source System DB tier for cloning

Log on to the source system as the oradb01 user and run the following commands:cd <RDBMSORACLE_HOME>/appsutil/scripts/db01_ovcmrh2144/         perl adpreclone.pl dbTier

d) Prepare the Source system App tier for cloning.Log on to the source system as the appldb01 user and run the following commands on both the nodes (ocvmrh2144 and ocvmrh2149)cd <COMMON_TOP>/admin/scripts/ db01_ovcmrh2144/         perl adpreclone.pl appsTier

Copy the Source System to the Target SystemCopy the application tier file system from the source Applications system to the target nodes. Ensure that the target APPLCLONE user owns application tier files copied to the target system, and the ORACLONE user owns database tier files.

b) Log on to the source system application tier nodes as the APPLDB01 user. Shut down the application tier server processes Copy the following application tier directories from the source node to

the target application tier nodes: b) Copy the database tier file system

Log on to the source system database node as the ORDB01 user. Perform a normal shutdown of the source system database Copy the database (DBF) files from the source to the target system Copy the source database ORACLE_HOME to the target system Start up the source Applications system database and application tier

processes

Configure the Target SystemYou will be prompted for the target system specific values (SID, Paths, Ports, etc)a) Configure the target system database serverLog on to the target system as the ORACLONE user and type the following commands to configure and start the database:  cd <RDBMS ORACLE_HOME>/appsutil/clone/bin         perl adcfgclone.pl dbTier b) Configure the target system application tier server nodes (ocvmrh2144 and ocvmrh2149)Log on to the target system as the APPLCLONE user and type the following commands:

Page 19: Cloning 11510(all types)

         cd <COMMON_TOP>/clone/bin         perl adcfgclone.pl appsTier

Post Steps:o Change APPS and SYSADMin Password using FNDCPASS utility.o Relink Oracle Applications.o Update Snapshot.