11i cloning using Rapid Clone

(Clonning of VCRP from VERP Production)

By

: Rahul Gupta (Path InfoTech Limited) Client: L.G.Electronics, Greater Noida

Hi Team, Kindly find the doc containing the steps performed by us, during the Clonning Of VCRP from VERP using Oracle Recommended RAPID Clone. Any changes/suggestions regarding this doc will be highly appreciated.

References used: Metalink Note : 230672.1 VBASE CLONING from VERP PRODUCTION , By NITIN Sir

2

Table of Contents

1. 2. 3. 4. 5. 6.

Pre Clonning Information Prepare the Source System Copy the Source System to the Target System Configure the Target System Post Clonning Steps Errors & Troubleshooting

4 5 6 7 19 22 22 22 24 25

a) Unable to locate 'cc' utility in path b) Checking for AIX 64-bit kernel extension failed c) ERROR : Unable to set CLASSPATH d) FNDLIBR are not getting up (Only 1 FNDLIBR is up)

3

Pre-Clonning Information
A) Source and Target location :
Source (VERP : 192.168.20.233)
Datafiles Location ORACLE_HOME AP Location (Concurrent + Admin Node) /u05/,/u06/ /u07 /u11

Destination (VCRP : 192.168.20.146 ) /u23/,/u24/
/u22 /u21

Source ( VERP : 192.168.20.233)
AP Location (Form + Web Node )

Destination ( VCRP : 192.168.20.133 )

/u02/

/crp02

Application Version: 11.5.10.2 Operating system : AIX 5.3 (64 bit )

4

Step 1: Prepare the source system
a ) Login to the source system VERP ( 192.168.20.233 ) through profile 2 (for the DB node) and run the adpreclone .

cd <RDBMS ORACLE_HOME>/appsutil/scripts/<CONTEXT_NAME> perl adpreclone.pl dbTier

[DB:oraprod] /u07/oracle/verpdb/9.2.0/appsutil/scripts/verp_db> [DB:oraprod] /u07/oracle/verpdb/9.2.0/appsutil/scripts/verp_db> perl adpreclone.pl dbTier Running Rapid Clone with command... perl /u07/oracle/verpdb/9.2.0/appsutil/bin/adclone.pl java=/u07/oracle/verpdb/9.2.0/jre/1.4.2 mode=stage stage=/u07/oracle/verpdb/9.2.0/appsutil/clone component=dbTier method=CUSTOM dbctx=/u07/oracle/verpdb/9.2.0/appsutil/verp_db.xml showProgress Beginning database tier Stage - Sat Sep 22 13:00:20 2007 APPS Password : blu50c51n Log file located at /u07/oracle/verpdb/9.2.0/appsutil/log/verp_db/StageDBTier_09221300.log Completed Stage... Sat Sep 22 13:00:57 2007 Completed running perl /u07/oracle/verpdb/9.2.0/appsutil/bin/adclone.pl java=/u07/oracle/verpdb/9.2.0/jre/1.4.2 mode=stage stage=/u07/oracle/verpdb/9.2.0/appsutil/clone component=dbTier method=CUSTOM dbctx=/u07/oracle/verpdb/9.2.0/appsutil/verp_db.xml showProgress ...

b) Login to the source system VERP (192.168.20.233) through profile 1 (for the AP node) and run the adpreclone . cd <COMMON_TOP>/admin/scripts/<CONTEXT_NAME>
perl adpreclone.pl appsTier

[DB:oraprod] /u11/app/verpcomn/admin/scripts/verp_db> perl adpreclone.pl appsTier Running Rapid Clone with command... perl /u11/app/verpappl/ad/11.5.0/bin/adclone.pl java=/usr/java14_64 mode=stage stage=/u11/app/verpcomn/clone component=appsTier method=CUSTOM appctx=/u11/app/verpappl/admin/verp_db.xml showProgress Beginning application tier Stage - Sat Sep 22 13:11:41 2007 Log file located at /u11/app/verpappl/admin/verp_db/log/StageAppsTier_09221311.log Completed Stage... Sat Sep 22 13:14:27 2007 Completed running perl /u11/app/verpappl/ad/11.5.0/bin/adclone.pl java=/usr/java14_64 mode=stage stage=/u11/app/verpcomn/clone component=appsTier method=CUSTOM

5

appctx=/u11/app/verpappl/admin/verp_db.xml showProgress ...

c) Login to the source system VERP (192.168.20.231) through profile 1 (for the AP node) and run the adpreclone cd <COMMON_TOP>/admin/scripts/<CONTEXT_NAME>
perl adpreclone.pl appsTier

[app2:oraprod] /u02/app/verpcomn/admin/scripts/verp_app2 # perl adpreclone.pl appsTier Running Rapid Clone with command... perl /u02/app/verpappl/ad/11.5.0/bin/adclone.pl java=/usr/java14_64 mode=stage stage=/u02/app/verpcomn/clone component=appsTier method=CUSTOM appctx=/u02/app/verpappl/admin/verp_app2.xml showProgress Beginning application tier Stage - Sat Sep 22 12:45:57 2007 Log file located at /u02/app/verpappl/admin/verp_app2/log/StageAppsTier_09221245.log Completed Stage... Sat Sep 22 12:49:05 2007 Completed running perl /u02/app/verpappl/ad/11.5.0/bin/adclone.pl java=/usr/java14_64 mode=stage stage=/u02/app/verpcomn/clone component=appsTier method=CUSTOM appctx=/u02/app/verpappl/admin/verp_app2.xml showProgress ...

Step 2: Copy the Source System to the Target System
Copy the application tier file system from the source Applications system to the target node by executing the following steps in the order listed. Ensure the application tier files copied to the target system are owned by the target APPLMGR user, and that the database tier files are owned by the ORACLE user. Note: in our case ORAPROD is the owner for both the Application & DB Tier

a) Copy the application tier file system

Log on to the source system application tier nodes as the ORAPROD user.
• •

Shut down the application tier server processes Copy the application tier directories from the source node to the target application tier node: Copy the backup of /u11 (192.168.20.233) to /u21 (192.168.20.146) Copy the backup of /u02 (192.168.20.233) to /crp02 (192.168.20.133) 6

b) Copy the database tier file system Log on to the source system database node as the ORAPROD user.
• • • •

Perform a normal shutdown of the source system database Copy the database (DBF) files from the source to the target system. Copy the backup of /u05 , /u06 (192.168.20.233) to /u23/,/u24/ (192.168.20.146) Copy the source database ORACLE_HOME to the target system. Copy the backup of /u07 (192.168.20.233) to /u22 (192.168.20.146) Start up the source Applications system database and application tier processes

Step 3: Configure the Target System
Check correct oraInst.loc is there in your Target environment and change the location in it accordingly. Now , there is no need to up the database and listener . Execute the following commands to configure the target system. You will be prompted for the target system specific values (SID, Paths, Ports, etc) A) Configure the target system database server ( 192.168.20.146 ) Log on to the target system as the ORAPROD user and type the following commands to configure and start the database: cd <RDBMS ORACLE_HOME>/appsutil/clone/bin perl adcfgclone.pl dbTier
[bkpsvr:oracrp] /u22/oracle/verpdb/9.2.0/appsutil/clone/bin # perl adcfgclone.pl dbTier Enter the APPS password [APPS]:blu50c51n First 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 [verp]:VCRP Target system RDBMS ORACLE_HOME directory [/u07/oracle/verpdb/9.2.0]:/u22/oracle/verpdb/9.2.0 Target system utl_file accessible directories list [/usr/tmp]: Number of DATA_TOP's on the target system [2]:

7

Target system DATA_TOP 1 [/u05/oradata/verpdata]:/u24/oradata/vcrpdata Target system DATA_TOP 2 [/u06/oradata/verpdata]:/u23/oradata/vcrpdata Do you want to preserve the Display set to db:0.0 (y/n) [y] ?:n Target system Display [bkpsvr:0.0]: Do you want to preserve the port values from the source system on the target system (y/n) [y] ?: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. Enter the port pool number [0-99]: 8 Checking the port pool 8 done: Port Pool 8 is free Database port is 1529

Backing up /u22/oracle/verpdb/9.2.0/appsutil/VCRP_bkpsvr.xml to /u22/oracle/verpdb/9.2.0/appsutil/VCRP_bkpsvr.xml Creating the new Database Context file from : /u22/oracle/verpdb/9.2.0/appsutil/template/adxdbctx.tmp The new database context file has been created : /u22/oracle/verpdb/9.2.0/appsutil/VCRP_bkpsvr.xml Log file located at /tmp/CloneContext_09080506.log Running Rapid Clone with command: perl /u22/oracle/verpdb/9.2.0/appsutil/clone/bin/adclone.pl java=/u22/oracle/verpdb/9.2.0/appsutil/clone/bin/.. /jre/jre mode=apply stage=/u22/oracle/verpdb/9.2.0/appsutil/clone/bin/.. component=dbTier method=CUSTOM dbctxtg=/u22/oracle/verpdb/9.2.0/appsutil/VCRP_bkpsvr.xml showProgress contextValidated=true Beginning database tier Apply - Mon Sep 8 17:11:10 2008 Log file located at /u22/oracle/verpdb/9.2.0/appsutil/log/VCRP_bkpsvr/ApplyDBTier_09081711.log

Completed Apply... Mon Sep 8 17:18:36 2008 Beginning APPSDB_VCRP registration to central inventory... ORACLE_HOME NAME : APPSDB_VCRP ORACLE_HOME PATH : /u22/oracle/verpdb/9.2.0 Using Inventory location in /etc/oraInst.loc Log file located at /home/oracrp/oraInventory/logs/OracleHomeCloner_09080518.log ORACLE_HOME /u22/oracle/verpdb/9.2.0 was registered successfully. Starting database listener for VCRP: Running: /u22/oracle/verpdb/9.2.0/appsutil/scripts/VCRP_bkpsvr/addlnctl.sh start VCRP

8

You are running addlnctl.sh version 115.7 Logfile: /u22/oracle/verpdb/9.2.0/appsutil/log/VCRP_bkpsvr/addlnctl.txt Starting listener process VCRP ... Listener VCRP has already been started. addlnctl.sh: exiting with status 0

Adcfgclone.pl will create the control file, init<SID>.ora, <CONTEXT_NAME>.xml file. It’ll also up the database and listener. It also relinks the ORACLE_HOME.

B) Configure the target system Application server (192.168.20.146 ; Concurrent & Admin Node ) Log on to the target system as the ORAPROD user and type the following commands: cd <COMMON_TOP>/clone/bin perl adcfgclone.pl appsTier
[bkpsvr:oracrp] /u21/app/verpcomn/clone/bin # perl adcfgclone.pl appsTier Enter the APPS password [APPS]:h34b1bb4 First 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 [verp]:VCRP Target system database server node [DB]:bkpsvr Target system database domain name [hverp.com]:lgeil.com Does the target system have more than one application tier server node (y/n) [y] ?: Does the target system application tier utilize multiple domain names (y/n) [n] ?: Target system concurrent processing node [DB]:bkpsvr Target system administration node [DB]:bkpsvr Target system forms server node [APP2]:iltest Target system web server node [APP2]:iltest

9

Is the target system APPL_TOP divided into multiple mount points (y/n) [n] ?: Target system APPL_TOP mount point [/u11/app/verpappl]:/u21/app/verpappl Target system COMMON_TOP directory [/u11/app/verpcomn]:/u21/app/verpcomn Target system 8.0.6 ORACLE_HOME directory [/u11/app/verpora/8.0.6]:/u21/app/verpora/8.0.6 Target system iAS ORACLE_HOME directory [/u11/app/verpora/iAS]:/u21/app/verpora/iAS Do you want to preserve the Display set to db:0.0 (y/n) [y] ?:n Target system Display [bkpsvr:0.0]: Location of the JDK on the target system [/usr/java14_64]:/usr/java14 Do you want to preserve the port values from the source system on the target system (y/n) [y] ?: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. Enter the port pool number [0-99]: 8 Checking the port pool 8 done: Port Pool 8 is free Complete port information available at /u21/app/verpappl/admin/out/VCRP_bkpsvr/portpool.lst Verifying Database Connection... Database Connection on Port 1529: Successful UTL_FILE_DIR on database tier consists of the following directories. 1. /usr/tmp 2. /usr/tmp 3. /u22/oracle/verpdb/9.2.0/appsutil/outbound/VCRP_bkpsvr 4. /usr/tmp Choose a value which will be set as APPLPTMP value on the target node [1]: Creating the new APPL_TOP Context file from : /u21/app/verpappl/ad/11.5.0/admin/template/adxmlctx.tmp The new APPL_TOP context file has been created : /u21/app/verpappl/admin/VCRP_bkpsvr.xml Log file located at /tmp/CloneContext_09080530.log Running Rapid Clone with command: perl /u21/app/verpcomn/clone/bin/adclone.pl java=/u21/app/verpcomn/clone/bin/../jre/jre mode=apply stage=/u21/app/verpcomn/clone/bin/.. component=appsTier method=CUSTOM appctxtg=/u21/app/verpappl/admin/VCRP_bkpsvr.xml showProgress contextValidated=true

10

Beginning application tier Apply - Mon Sep 8 17:34:09 2008 Log file located at /u21/app/verpappl/admin/VCRP_bkpsvr/log/ApplyAppsTier_09081734.log

Completed Apply... Mon Sep 8 17:41:47 2008 Beginning APPSIAS_VCRP registration to central inventory... ORACLE_HOME NAME : APPSIAS_VCRP ORACLE_HOME PATH : /u21/app/verpora/iAS Using Inventory location in /etc/oraInst.loc Log file located at /home/oracrp/oraInventory/logs/OracleHomeCloner_09080541.log ORACLE_HOME /u21/app/verpora/iAS was registered successfully. Starting application Services for VCRP: Running: /u21/app/verpcomn/admin/scripts/VCRP_bkpsvr/adstrtal.sh APPS/<appspwd> You are running adstrtal.sh version 115.16 Executing service control script: /u21/app/verpcomn/admin/scripts/VCRP_bkpsvr/adalnctl.sh start script returned: **************************************************** adalnctl.sh version Checking for FNDFS executable. Starting listener process APPS_VCRP. adalnctl.sh: exiting with status 0

.end std out. .end err out. ****************************************************

Executing service control script: /u21/app/verpcomn/admin/scripts/VCRP_bkpsvr/adcmctl.sh start script returned: **************************************************** You are running adcmctl.sh version 115.28 Starting concurrent manager for VCRP ... Starting VCRP_0908@VCRP Internal Concurrent Manager Default printer is noprint adcmctl.sh: exiting with status 0

11

.end std out. .end err out. ****************************************************

Executing service control script: /u21/app/verpcomn/admin/scripts/VCRP_bkpsvr/adrepctl.sh start script returned: **************************************************** You are running adrepctl.sh version 115.32 starting Reports Server for VCRP on port 7008. adrepctl.sh: exiting with status 0

.end std out. .end err out. ****************************************************

All enabled services for this node are started. Check logfile /u21/app/verpcomn/admin/log/VCRP_bkpsvr/09081742.log for details Exiting with status 0

C ) Configure the target system Application server (192.168.20.133; Apache & Web Node) Log on to the target system as the ORAPROD user and type the following commands: cd <COMMON_TOP>/clone/bin perl adcfgclone.pl appsTier
[iltest:oracrp] /crp02/app/verpcomn/clone/bin> perl adcfgclone.pl appsTier Enter the APPS password [APPS]: h34b1bb4 First 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.

12

Do you want to use a virtual hostname for the target node (y/n) [n] ?: Target system database SID [verp]:VCRP Target system domain name [hverp.com]:lgeil.com Target system database server node [DB]:bkpsvr Target system database domain name [hverp.com]:lgeil.com Does the target system have more than one application tier server node (y/n) [y] ?: Does the target system application tier utilize multiple domain names (y/n) [n] ?: Target system concurrent processing node [DB]:bkpsvr Target system administration node [DB]:bkpsvr Target system forms server node [APP2]:iltest Target system web server node [APP2]:iltest Is the target system APPL_TOP divided into multiple mount points (y/n) [n] ?: Target system APPL_TOP mount point [/u02/app/verpappl]:/crp02/app/verpappl Target system COMMON_TOP directory [/u02/app/verpcomn]:/crp02/app/verpcomn Target system 8.0.6 ORACLE_HOME directory [/u02/app/verpora/8.0.6]:/crp02/app/verpora/8.0.6 Target system iAS ORACLE_HOME directory [/u02/app/verpora/iAS]:/crp02/app/verpora/iAS Do you want to preserve the Display set to app2:0.0 (y/n) [y] ?:n Target system Display [iltest:0.0]: Location of the JDK on the target system [/usr/java14_64]: Do you want to preserve the port values from the source system on the target system (y/n) [y] ?: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. Enter the port pool number [0-99]: 8 Checking the port pool 8 done: Port Pool 8 is free Complete port information available at /crp02/app/verpappl/admin/out/VCRP_iltest/portpool.lst Verifying Database Connection... Database Connection on Port 1529: Successful

13

UTL_FILE_DIR on database tier consists of the following directories. 1. /usr/tmp 2. /usr/tmp 3. /u22/oracle/verpdb/9.2.0/appsutil/outbound/VCRP_bkpsvr 4. /usr/tmp Choose a value which will be set as APPLPTMP value on the target node [1]:3 Backing up /crp02/app/verpappl/admin/VCRP_iltest.xml to /crp02/app/verpappl/admin/VCRP_iltest.xml.bak Creating the new APPL_TOP Context file from : /crp02/app/verpappl/ad/11.5.0/admin/template/adxmlctx.tmp The new APPL_TOP context file has been created : /crp02/app/verpappl/admin/VCRP_iltest.xml Log file located at /tmp/CloneContext_09080616.log Running Rapid Clone with command: perl /crp02/app/verpcomn/clone/bin/adclone.pl java=/crp02/app/verpcomn/clone/bin/../jre/jre mode=apply stage=/crp02/app/verpcomn/clone/bin/.. component=appsTier method=CUSTOM appctxtg=/crp02/app/verpappl/admin/VCRP_iltest.xml showProgress contextValidated=true rm: 0653-603 Cannot remove directory /crp02/app/verpora/iAS/Apache/jdk. Beginning application tier Apply - Mon Sep 8 18:19:02 2008 Log file located at /crp02/app/verpappl/admin/VCRP_iltest/log/ApplyAppsTier_09081819.log

Completed Apply... Mon Sep 8 18:28:28 2008 Beginning APPSIAS_VCRP registration to central inventory... ORACLE_HOME NAME : APPSIAS_VCRP ORACLE_HOME PATH : /crp02/app/verpora/iAS Using Inventory location in /etc/oraInst.loc Log file located at /crp02/app/verpora/iAS/logs/OracleHomeCloner_09080628.log ORACLE_HOME /crp02/app/verpora/iAS was registered successfully. Skipping the starting of services INFO : Rapid Clone completed successfully , but the AutoConfig run recorded some errors. Please review the AutoConfig section in the logfile. If required, you can re-run AutoConfig from command line after fixing the problem Once Autoconfig issue is fixed , you can start services -------------------------------------------------------------------

Now , check the autoconfig log for errors ..

[iltest:oracrp] /crp02/app/verpappl/admin/VCRP_iltest/log> more ApplyAppsTier_09081819.log [PROFILE PHASE]

14

AutoConfig could not successfully execute the following scripts: Directory: /crp02/app/verpcomn/admin/install/VCRP_iltest afadmprf.sh INSTE8_PRF 255 afcpctx.sh INSTE8_PRF 255

AutoConfig is exiting with status 2 RC-50014: Fatal: Execution of AutoConfig was failed Raised by oracle.apps.ad.clone.ApplyApplTop Completed ApplyApplTop. ERROR: AutoConfig completed with errors. Check logfile at /crp02/app/verpappl/admin/VCRP_iltest/log/ApplyAppsTier_09081819.log for details. # Checking the status of AutoConfig run of ApplyApplTop Warning : AutoConfig has completed with errors . Please review the AutoConfig section in the logfile. If required, you can re-run AutoConfig from command line after fixing the problem

-----

--------------

---------------

-----------------------

----------------------------------------

For the solution of this problem add /crp02/app/verpappl/APPSORA.env in .profile and the after this do the relink of “ad” and then “fnd” [iltest:oracrp] /crp02/app/verpappl/ad/11.5.0/bin> sh adrelink.sh force=y 'ad all'
********************************************************** You are running adrelink, version 115.14.11586.3 Start of adrelink session Date/time is Mon Sep 8 18:57:19 IST 2008 Log file is /crp02/app/verpappl/admin/log/adrelink.log Command line arguments are "force=y" "ad all"

Operating System Information (output of 'uname -a'): /crp02/app/verpappl/ad/11.5.0/bin/adsplice.bak ……………………………. …………………………………………………………… …………………………… ………………………………………………………….. . …………………………………………………………………………… …… ……… …………………………………………………………………………………………… Successfully copied /crp02/app/verpappl/ad/11.5.0/bin/adsplice_wrapper to /crp02/app/verpappl/ad/11.5.0/bin/adsplice adrelink is exiting with status 0 End of adrelink session Date/time is Mon Sep 8 18:57:48 IST 2008 ********************************************************** Line-wrapping log file for readability ... Done line-wrapping log file. Original copy is /crp02/app/verpappl/admin/log/adrelink.lsv New copy is /crp02/app/verpappl/admin/log/adrelink.log

15

*****************************************************************************************************************

After the succesfull completion of “fnd” relink . Run the relink for “ad “ using ADADMIN utility
[iltest:oracrp] /crp02/app/verpappl/ad/11.5.0/bin> adadmin
Copyright (c) 2002 Oracle Corporation Redwood Shores, California, USA Oracle Applications AD Administration Version 11.5.0 NOTE: You may not use this utility for custom development unless you have written permission from Oracle Corporation. Your default directory is '/crp02/app/verpappl'. Is this the correct APPL_TOP [Yes] ? AD Administration records your AD Administration session in a text file you specify. Enter your AD Administration log file name or press [Return] to accept the default file name shown in brackets. Filename [adadmin.log] : relink_fnd.log ************* Start of AD Administration session ************* AD Administration version: 11.5.0 AD Administration started at: Mon Sep 08 2008 18:58:15 APPL_TOP is set to /crp02/app/verpappl You can be notified by email if a failure occurs. Do you wish to activate this feature [No] ? Please enter the batchsize [1000] :

Please enter the name of the Oracle Applications System that this APPL_TOP belongs to.The Applications System name must be unique across all Oracle Applications Systems at your site, must be from 1 to 30 characters long, may only contain alphanumeric and underscore characters, and must start with a letter. Sample Applications System names are: "prod", "test", "demo" and "Development_2". Applications System Name [VCRP] : VCRP *

NOTE: If you do not currently have certain types of files installed in this APPL_TOP, you may not be able to perform certain tasks. Example 1: If you don't have files used for installing or upgrading the database installed in this area, you cannot install or upgrade the database from this APPL_TOP. Example 2: If you don't have forms files installed in this area, you cannot generate them or run them from this APPL_TOP. Example 3: If you don't have concurrent program files installed in this area,you cannot relink concurrent programs or generate reports from this APPL_TOP.

Do you currently have files used for installing or upgrading the database installed in this APPL_TOP [YES] ? YES * Do you currently have Java and HTML files for HTML-based functionality installed in this APPL_TOP [YES] ? YES * Do you currently have Oracle Applications forms files installed in this APPL_TOP [YES] ? YES *

Do you currently have concurrent program files installed in this APPL_TOP [YES] ? YES * Please enter the name Oracle Applications will use to identify this APPL_TOP.

16

The APPL_TOP name you select must be unique within an Oracle Applications System, must be from 1 to 30 characters long, may only contain alphanumeric and underscore characters, and must start with a letter. Sample APPL_TOP Names are: "prod_all", "demo3_forms2", and "forms1". APPL_TOP Name [iltest] : iltest * You are about to use or modify Oracle Applications product tables in your ORACLE database 'VCRP' using ORACLE executables in '/crp02/app/verpora/8.0.6'. Is this the correct database [Yes] ? AD Administration needs the password for your 'SYSTEM' ORACLE schema in order to determine your installation configuration. Enter the password for your 'SYSTEM' ORACLE schema: The ORACLE username specified below for Application Object Library uniquely identifies your existing product group: APPLSYS Enter the ORACLE password of Application Object Library [APPS] : AD Administration is verifying your username/password. The status of various features in this run of AD Administration is: <-Feature version in-> Feature Active? -----------------------------------CHECKFILE Yes PREREQ Yes CONCURRENT_SESSIONS No PATCH_TIMING Yes PATCH_HIST_IN_DB Yes SCHEMA_SWAP Yes

APPLTOP -------1 6 2 2 6 1

Data model ----------1 6 2 2 6 1

Flags ----------Y N N Y N Y Y N N Y N Y Y Y N Y Y N Y N N Y N Y Y N N Y N Y Y N N Y Y Y

Identifier for the current session is 13973 Reading product information from file... Reading language and territory information from file... Reading language information from applUS.txt ... Reading database to see what industry is currently installed. Reading FND_LANGUAGES to see what is currently installed. Currently, the following language is installed: Code Language Status ---- --------------------------------------- --------US American English Base Your base language will be AMERICAN. Setting up module information. Reading database for information about the modules. Saving module information. Reading database for information about the products. Reading database for information about how products depend on each other. Reading topfile.txt ... Saving product information. AD code level : [11i.AD.I.5] AD Administration Main Menu --------------------------------------------------

17

1. 2. 3. 4. 5. 6.

Generate Applications Files menu Maintain Applications Files menu Compile/Reload Applications Database Entities menu Maintain Applications Database Entities menu Change Maintenance Mode Exit AD Administration

Enter your choice [6] : 2 Maintain Applications Files ---------------------------------------1. 2. 3. 4. 5. 6. 7. Relink Applications programs Create Applications environment file Copy files to destinations Convert character set Maintain snapshot information Check for missing files Return to Main Menu

Enter your choice [7] : 1 AD Administration uses your Oracle Applications environment file to set up the environment for relinking Applications. Before proceeding with the relink, you may optionally want to: - Go back to the menu by answering No below. - Use an option on the Maintain Files menu to generate your Applications environment file. - Edit the file to add any customizations. - Verify the list of executables in adlinkbk.txt which are saved before relinking and add any additional executables as desired. - Choose this option again, and proceed with the relink. Do you wish to proceed with the relink [Yes] ? Enter the name of your Oracle Applications environment file below. File name [VCRP_iltest.env] : Reading product executable information... Enter list of products to link ('all' for all products) [all] : fnd Generate specific executables for each selected product [No] ? AD Administration can relink your Oracle Applications programs with debug information. Oracle recommends that you do not relink your programs with debug information unless asked to do so by Oracle Support Services. Relink with debug information [No] ? Relinking selected modules in Application Object Library. **********************************************************

18

You are running adrelink, version 115.14.11586.3 Start of adrelink session Date/time is Mon Sep 8 19:00:54 IST 2008 Log file is /crp02/app/verpappl/admin/VCRP/log/adrelink.log Command line arguments are …………………………………………………………………………………………………………………………………………………………….. ………………………………………………………………………………………………………………………………………………………. ………… …………… ………………………………………………………………………………….

Errors and warnings are listed in the log file /crp02/app/verpappl/admin/VCRP/log/relink_fnd.log and in other log files in the same directory. **********************************************************

----------------

-----------------------------

------------------------------

---------------------------------------

After this run the autoconfig , It’ run successfully cd $COMMON_TOP/admin/ scripts /$CONTEXT_NAME ./adautocg.sh
/crp02/app/verpcomn/admin/scripts/VCRP_iltest> ./adautocfg.sh Enter the APPS user password: AutoConfig is configuring the Applications environment... AutoConfig will consider the custom templates if present. Using APPL_TOP location : /crp02/app/verpappl Classpath : :/usr/java14_64/jre/lib/charsets.jar:/usr/

…………….. ………………………………. ……………………………………………. …………………………………………….
Configuring IES_TOP.......COMPLETED Configuring CSD_TOP.......COMPLETED Configuring IGC_TOP.......COMPLETED AutoConfig completed successfully. The log file for this session is located at: /crp02/app/verpappl/admin/VCRP_iltest/log/09081902/adconfig.log

19

Step 4: Post Clonning Steps
A ) Update fnd_concurrent_requests.. Means cancel all existing requests. (change these status of concurrent requests to completed) B) Stop all the services of Application Node using adstpall.sh . login to 192.168.20.133 as ORAPROD [bkpsvr:iltest] /crp02/app/verpcomn/admin/scripts/VCRP_iltest> ./adstpall.sh apps/h34b1bb4 login to 192.168.20.146 as ORAPROD [bkpsvr:oracrp] /u21/app/verpcomn/admin/scripts/VCRP_bkpsvr>./adstpall.sh apps/h34b1bb4 C) Now , Change the APPS Password FNDCPASS APPS/<apps password of prod> 0 Y system/manager SYSTEM APPLSYS welcome D) Goto database drop production database links and create the database links needed in the test env E) Change the passwords of some users which can be used in test environment F) Goto $APPL_TOP , update APPSORA.env with test database SID, test server name both in small letters and capital letters G) Delete all production logfiles came while refresh H) Delete all data from system tables ( FND_NODES, FND_OAM_CONTEXT_FILES etc. )
$sqlplus ‘apps/<apps_password>’ SQL> Exec fnd_conc_clone.setup_clean;

I) Now, Run the autoconfig on both the application node cd $COMMON_TOP/admin/scripts /$CONTEXT_NAME ./adautocfg.sh login to 192.168.20.133 as ORAPROD [bkpsvr: iltest] /crp02/app/verpcomn/admin/scripts/VCRP_iltest> ./adautocfg.sh

login to 192.168.20.146 as ORAPROD [bkpsvr:oracrp] /u21/app/verpcomn/admin/scripts/VCRP_bkpsvr>./adautocfg.sh J) Now, up the services on both the Application Node using adstrtal.sh

20

K) Now , Change the site level value Login to application as User with System Adminstrator Responsibility. Goto Profile=> System=> In Profile tab search and change values given below. 1. Change the Site level profile: “Site Name” value from 'VERP' to 'VCRP Refreshed on <Date>’. 2. Change Site level profile: “Java Color Scheme” to some new colour.

Now, submit request “ ACTIVE USER “ through responsibility “System Adminstrator” to check the successful completion of cloning .

ERRORS & TROUBLESHOOTING
21

ERR 1: Unable to locate 'cc' utility in path
I got this problem, When I run the “adcfgclone.pl” for the first time. This error occurred because the exported was not having the location of “cc’ utility . Ask UNIX ADMIN, about the location of “cc” utility and then export that with the current PATH.. -------------------------------------------------------------------------------------------------------------------[bkpsvr:oracrp] /u22/oracle/verpdb/9.2.0/appsutil/clone/bin # perl adcfgclone.pl dbTier Enter the APPS password [APPS]:blu50c51n Checking for make... found - /usr/bin/make Checking for ld... found - /usr/bin/ld Checking for cc... Unable to locate 'cc' utility in path Checking for ar... found - /usr/bin/ar Unable to locate all utilities with system path. PATH = /usr/bin:/etc:/usr/sbin:/usr/ucb:/home/oracrp/bin:/usr/bin/X11:/sbin:.

WARNING: Could not find all the required OS utilities in the $PATH. Please review the checks above Now , export PATH [bkpsvr:oracrp] /u22/oracle/verpdb/9.2.0/appsutil/clone/bin # export PATH=$PATH:/usr/vac/bin Here , /usr/vac/bin contain “cc” utility

ERR 2: Checking for AIX 64-bit kernel extension failed
---------------------------------------------------------------------------------------

[bkpsvr:oracrp] /u22/oracle/verpdb/9.2.0/appsutil/clone/bin # perl adcfgclone.pl dbTier Enter the APPS password [APPS]: blu50c51n Checking for make... found - /usr/bin/make Checking for ld... found - /usr/bin/ld Checking for cc... found - /usr/vac/bin/cc Checking for ar... found - /usr/bin/ar Checking for AIX 64-bit kernel extension for Oracle...... FAILURE: Please apply the patch 2896876

WARNING: Could not find all the required OS utilities in the $PATH. Please review the checks above

22

Cause: This error occurred because there was no oratab and oraInst.loc on the new server. Solution: Download the patch 2896876 (p2896876_8174_AIX.zip) from the Metalink and then apply this patch .

[bkpsvr:oracrp] /home/oracrp # unzip p2896876_8174_AIX.zip
Archive: p2896876_8174_AIX.zip inflating: README.txt inflating: loadext inflating: pw-syscall inflating: pw-syscall32 inflating: pw-syscall64 inflating: rootpre.sh [bkpsvr:oracrp] /home/oracrp # ls -ltr total 504 -rw-rw-r-1 oracrp dba -rw-rw-r-1 oracrp dba -rw-rw-r-1 oracrp dba -rwxrwxr-x 1 oracrp dba -rwxrw-r-1 oracrp dba -rw-rw-r-1 oracrp dba -rw-r--r-1 oracrp dba -rw-r--r-1 oracrp dba -rw-r--r-1 oracrp dba -rw-r--r-1 oracrp dba -rwxr-xr-x 1 oracrp dba drwxr-xr-x 2 oracrp dba -rw-r--r-1 oracrp dba -rw-r--r-1 oracrp dba -rwxrwxr-x 1 oracrp dba -rw-r--r-1 oracrp dba -rw-r--r-1 oracrp dba

12632 13285 13821 15850 18594 1377 6954 20607 1647 81250 6982 256 2223 2223 1759 2484 23327

Feb Feb Feb Feb Feb Apr Sep Sep Sep Sep Sep Sep Sep Sep Sep Sep Sep

14 14 18 20 20 12 08 08 08 08 08 08 08 08 08 08 08

2003 2003 2003 2003 2003 2003 09:42 09:50 10:00 10:07 11:46 12:19 13:11 13:11 13:14 13:24 15:03

pw-syscall pw-syscall32 pw-syscall64 loadext rootpre.sh README.txt vcrp_ctl.txt initVCRP.ora vcrp_prof.txt VCRP_iltest.xml root.sh patch vcrp_ctl.sql_old vcrp_ctl.sql file_chk.sh sqlnet.log p2896876_8174_AIX.zip

[bkpsvr:oracrp] /home/oracrp # su – root [bkpsvr:root] /home/oracrp # ./rootpre.sh
./rootpre.sh output will be logged in ./rootpre.out_08-09-08.15:08:01 Saving the original files in /etc/ora_save_08-09-08.15:08:01.... Copying new kernel extension to /etc.... Loading the kernel extension from /etc Oracle Kernel Extension Loader for AIX Copyright (c) 1998,1999 Oracle Corporation

Successfully loaded /etc/pw-syscall.64bit_kernel with kmid: 0x4423300 Successfully configured /etc/pw-syscall.64bit_kernel with kmid: 0x4423300 The kernel extension was successfuly loaded. Configuring Asynchronous I/O.... Asynchronous I/O is already defined Configuring POSIX Asynchronous I/O.... Checking if group services should be configured.... Nothing to configure.

23

It will create a file orainstRoot.sh in /tmp folder .. Then execute that file using “ROOT” as user ..

[bkpsvr:oracrp] su - root [bkpsvr:root] /tmp # sh orainstRoot.sh

ERR 3: ERROR : Unable to set CLASSPATH

[iltest:oracrp] /crp02/app/verpcomn/clone/bin> perl adcfgclone.pl appsTier Enter the APPS password [APPS]: h34b1bb4 ERROR : Unable to set CLASSPATH /crp02/app/verpcomn/clone/bin/../jlib/classes111.zip: is missing First Creating a new context file for the cloned system. The program is going to ask you for information about the new system: sh: 2757882 Illegal instruction(coredump) ERROR: context creation not completed successfully. Please check /tmp/adcfgclone.err file for errors [iltest:oracrp] /crp02/app/verpcomn/clone/bin> echo $PATH /usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java14_64/jre/bin:/usr/java14_64/bin:/usr/vac/bin:/usr/vacp p/bin:/usr/local/bin [iltest:oracrp] /crp02/app/verpcomn/clone/bin> more /tmp/adcfgclone.err stackpointer=2ff20850 JVMXM004: JVM is performing abort shutdown sequence JVMDG217: Dump Handler is Processing a Signal - Please Wait. JVMDG303: JVM Requesting Java core file JVMDG304: Java core file written to /crp02/app/verpcomn/clone/bin/javacore2757882.1220915807.txt

For this solution refer to the metalink doc id : 393723.1
Soution : [iltest:oracrp] /crp02/app/verpora/8.0.6> cd /crp02/app/verpcomn/clone/bin [iltest:oracrp] /crp02/app/verpcomn/clone/jre> ls -ltr total 16 drwxr-xr-x 9 oracrp dba 4096 Jul 24 2007 lib/ drwxr-xr-x 3 oracrp dba 4096 Jul 24 2007 bin/ drwxr-xr-x 4 oracrp dba 256 Jul 24 2007 jre/

24

[iltest:oracrp] /crp02/app/verpcomn/clone/jre> mv lib lib.old [iltest:oracrp] /crp02/app/verpcomn/clone/jre> mv bin bin.old [iltest:oracrp] /crp02/app/verpcomn/clone/jre> ln -s jre/bin bin [iltest:oracrp] /crp02/app/verpcomn/clone/jre> ln -s jre/lib lib [iltest:oracrp] /crp02/app/verpcomn/clone/jre> ls -ltr total 16 drwxr-xr-x 9 oracrp dba 4096 Jul 24 2007 lib.old/ drwxr-xr-x 3 oracrp dba 4096 Jul 24 2007 bin.old/ drwxr-xr-x 4 oracrp dba 256 Jul 24 2007 jre/ lrwxrwxrwx 1 oracrp dba 7 Sep 08 17:54 bin@ -> jre/bin/ lrwxrwxrwx 1 oracrp dba 7 Sep 08 17:54 lib@ -> jre/lib/ [iltest:oracrp] /crp02/app/verpcomn/clone/jre> cd /crp02/app [iltest:oracrp] /crp02/app> cd verpora [iltest:oracrp] /crp02/app/verpora> cd iAS [iltest:oracrp] /crp02/app/verpora/iAS> cd appsoui [iltest:oracrp] /crp02/app/verpora/iAS/appsoui> cd jre [iltest:oracrp] /crp02/app/verpora/iAS/appsoui/jre> cd 1.3.1 [iltest:oracrp] /crp02/app/verpora/iAS/appsoui/jre/1.3.1> ls -tlr total 16 drwxr-xr-x 9 oracrp dba 4096 Jul 24 2007 lib/ drwxr-xr-x 3 oracrp dba 4096 Jul 24 2007 bin/ drwxr-xr-x 4 oracrp dba 256 Jul 24 2007 jre/ [iltest:oracrp] /crp02/app/verpora/iAS/appsoui/jre/1.3.1> mv lib lib.old [iltest:oracrp] /crp02/app/verpora/iAS/appsoui/jre/1.3.1> mv bin bin.old [iltest:oracrp] /crp02/app/verpora/iAS/appsoui/jre/1.3.1> ln -s jre/bin bin [iltest:oracrp] /crp02/app/verpora/iAS/appsoui/jre/1.3.1> ln -s jre/lib lib [iltest:oracrp] /crp02/app/verpora/iAS/appsoui/jre/1.3.1> cd /crp02/app/

---------------------------------------------------------------------------------------------------------

ERR 4: FNDLIBR are not getting up (Only 1 FNDLIBR is getting up)
Check that your system has enough resources to start a concurrent manager process. Contact your system administrator to ob : 08-SEP-2008 19:36:46 Starting INVMGR Concurrent Manager : 08-SEP-2008 19:36:46 Could not initialize the Service Manager FNDSM_BKPSVR_VCRP. Verify that BKPSVR has been registered for concurrent processing. Routine AFPEIM encountered an error while starting concurrent manager INVMGR with library /u21/app/verpappl/inv/11.5.0/bin/INVLIBR.

Solution : There are two solution for this probem .. Sol 1 :

25

Delete all data from system tables ( FND_NODES, FND_OAM_CONTEXT_FILES etc. )
$sqlplus ‘apps/<apps_password>’ SQL> Exec fnd_conc_clone.setup_clean;

Now, Run the autoconfig on both the application node cd $COMMON_TOP/admin/scripts /$CONTEXT_NAME ./adautocfg.sh login to 192.168.20.133 as ORAPROD [bkpsvr: iltest] /crp02/app/verpcomn/admin/scripts/VCRP_iltest> ./adautocfg.sh login to 192.168.20.146 as ORAPROD [bkpsvr:oracrp] /u21/app/verpcomn/admin/scripts/VCRP_bkpsvr>./adautocfg.sh After this up the services using “adstrtal.sh” and the check the FNDLIBR

OR
Sol 2 : If this solution doesn’work for you . Then check for the output of the following query
SQL> select profile_option_value from FND_PROFILE_OPTION_VALUES where profile_option_id in ( select profile_option_id from FND_PROFILE_OPTIONS where profile_option_name='CONC_GSM_ENABLED'); PROFILE_OPTION_VALUE -------------------------------------------------------------------------------Y

26

If the output is ‘Y‘ . Then change the value of profile “ Concurrent : GSM enabled “ to N , using front end of EBS Now , restart the services of AP-Node --------------------------------------------------------------------------------------------------------------------------------------------

27

Sign up to vote on this title
UsefulNot useful