11i Cloning Procedure - Non-RAC

34
document.doc Doc ref: 300136301/PS/SVR/001 DOMINO 11i Cloning Procedure – non-RAC Clone Version History Versio n Description Editor Date 1.0 Initial creation. Karen Jones 2 nd July 2007 1.1 Modified Rishi Upadhyay 18-Oct-2007 1.2 Modified Restore Process to Enable Clone to start sooner. Added Disco cancel of scheduled workbooks Added Password Section Karen Jones 30 th May 2008 1.3 Amended for relocation of TEST Karen Jones 2 nd June 2008 2.0 Amend clone document to instruct on copying file permissions. Amend document to reflect the new merged filesystem structure Karen Jones 22 nd July 08 2.1 Add additional Customisation Changes. Finalise and Tidy Up all Changes after CU2 Karen Jones 3 rd September 208 File ref: document.doc Company Confidential Page 2

Transcript of 11i Cloning Procedure - Non-RAC

Page 1: 11i Cloning Procedure - Non-RAC

document.doc Doc ref: 300136301/PS/SVR/001

DOMINO

11i Cloning Procedure – non-RAC Clone

Version History

Version Description Editor Date

1.0 Initial creation. Karen Jones 2nd July 20071.1 Modified Rishi Upadhyay 18-Oct-20071.2 Modified Restore Process to Enable

Clone to start sooner. Added Disco cancel of scheduled workbooksAdded Password Section

Karen Jones 30th May 2008

1.3 Amended for relocation of TEST Karen Jones 2nd June 20082.0 Amend clone document to instruct

on copying file permissions.Amend document to reflect the new merged filesystem structure

Karen Jones 22nd July 08

2.1 Add additional Customisation Changes.Finalise and Tidy Up all Changes after CU2

Karen Jones 3rd September 208

File ref: document.docCompany Confidential

Page 2

Page 2: 11i Cloning Procedure - Non-RAC

document.doc Doc ref: 300136301/PS/SVR/001

Contents

1 Introduction 2

1.1 Purpose 21.2 Assumptions 21.3 Scope and Application 21.4 Related Documents 2

2 Cloning Procedure 52.1 Prepare the Source System for cloning 52.2 Copy the Source System to the Target System 72.3 Configure the target System 72.4 Finishing Tasks 24

File ref: document.docCompany Confidential

Page 3

Page 3: 11i Cloning Procedure - Non-RAC

document.doc Doc ref: 300136301/PS/SVR/001

1 Introduction

1.1 Purpose

This document provides the steps necessary to clone 11i Oracle eBusiness Suite Production environment to a development / test environment.

1.2 Assumptions

The term ‘Applications tier’ refers to any server that contains an $APPL_TOP directory structure.

This clone has been based around the TEST environment (non-RAC) clone and will need amending for a differently named environment.

Please do not copy and paste commands with the – in but formulate the commands manually, as the MS word – is completely different to the Linux -, and treated differently.

1.3 Scope & Application

This document is suitable for cloning the production Oracle eBusiness Suite environment to a single instance dual tier environment.

1.4 Related Documents

Oracle Metalink note Cloning Oracle Applications Release 11i with Rapid Clone (230672.1)

File ref: document.docCompany Confidential

Page 4

Page 4: 11i Cloning Procedure - Non-RAC

document.doc Doc ref: 300136301/PS/SVR/001

2 Cloning ProcedureThis section provides the steps necessary to clone the production Oracle eBusiness Suite environment to the TEST.

Single Instance Clone - TEST

Source DestinationDatabase Tier 1 Oraproddb3 Oradevdb1Database Tier 2 Oraproddb4Applications Tier 1 Oraprodapps5 Oradevapps1Applications Tier 2 Oraprodapps6Applications Tier 3 Oraprodapps4

NOTE: In a number of the steps, the user is requested to issue the command ‘perl –v’. The purpose of this activity is to check that the Perl executable is in the PATH of the user issuing the particular clone activity.

2.1 Prepare the Source System

Arrange a full cold backup of the PROD database files.

2.1.1 Prepare the source system application tiers for cloningThis process should be completed the day before the clone takes place, prior to the overnight backup.

1. Login to oraprodapps5 as the applprod user and run adpreclone for the application tier:perl –versionThis is perl, version 5.005_03 built for i686-linuxCopyright 1987-1999, Larry Wallcd $OAD_TOP/admin/scripts/PROD_oraprodapps5perl adpreclone.pl appsTierRunning Rapid Clone with command...

perl /u02/oracle/prod/appl/ad/11.5.0/bin/adclone.pl java=/usr/java/j2sdk1.4.2_12 mode=stage stage=/u02/oracle/prod/comn/clone component=appsTier method=CUSTOM appctx=/u02/oracle/prod/appl/admin/PROD_oraprodapps5.xml showProgress

Beginning application tier Stage - Fri Jun 15 11:14:59 2007Log file located at /u02/oracle/prod/appl/admin/PROD_oraprodapps5/log/StageAppsTier_06151114.log

Completed Stage...Fri Jun 15 11:17:31 2007

Completed running perl /u02/oracle/prod/appl/ad/11.5.0/bin/adclone.pl java=/usr/java/j2sdk1.4.2_12 mode=stage stage=/u02/oracle/prod/comn/clone component=appsTier method=CUSTOM appctx=/u02/oracle/prod/appl/admin/PROD_oraprodapps5.xml showProgress ...

This step should take about 5 minutes.

2. Login to oraprodapps4 as the applprod user and run adpreclone for the application

tier:cd $OAD_TOP/admin/scripts/PROD_oraprodapps4

File ref: document.docCompany Confidential

Page 5

Page 5: 11i Cloning Procedure - Non-RAC

document.doc Doc ref: 300136301/PS/SVR/001

perl adpreclone.pl appsTier

2.1.2 Prepare the source system database tier for cloningThis process should be completed the day before the clone takes place, prior to the overnight backup.

1. Login to oraproddb3 as the oraprod user and run adpreclone for database tier.cd $ORACLE_HOME/appsutil/scripts/PROD1_oraproddb3perl adpreclone.pl dbTieroraproddb3.dps.local:PROD1:oraprod>perl adpreclone.pl dbTierRunning Rapid Clone with command... perl /u02/oracle/prod/9.2.0.5/appsutil/bin/adclone.pl java=/u02/oracle/prod/9.2.0.5/jre/1.4.2 mode=stage stage=/u02/oracle/prod/9.2.0.5/appsutil/clone component=dbTier method=CUSTOM dbctx=/u02/oracle/prod/9.2.0.5/appsutil/PROD1_oraproddb3.xml showProgress

Beginning database tier Stage - Fri Jun 15 12:16:10 2007APPS Password : <apps_password>Log file located at /u02/oracle/prod/9.2.0.5/appsutil/log/PROD1_oraproddb3/StageDBTier_06151216.log

Completed Stage...Fri Jun 15 12:16:35 2007

Completed running perl /u02/oracle/prod/9.2.0.5/appsutil/bin/adclone.pl java=/u02/oracle/prod/9.2.0.5/jre/1.4.2 mode=stage stage=/u02/oracle/prod/9.2.0.5/appsutil/clone component=dbTier method=CUSTOM dbctx=/u02/oracle/prod/9.2.0.5/appsutil/PROD1_oraproddb3.xml showProgress ...

2.2 Copy the Source System to the Target System

The copying process should be done through Commvault, however this can be done manually and the Domino DBA will advise on the most appropriate method at the time of the clone request.

If the files are copied manually, please ensure the original directory and file permissions are retained by using either of the following. Please do not copy and paste the below as the - (hyphen) is usually converted in word to a:-

scp –rp xxx yyy - for copying remotely across servers – Do NOT COPY & PASTE THIS COMMAND. The MS word – is different to the Linux command line –

cp –rp xxx yyy - for copying locally on the same server servers – Do NOT COPY & PASTE THIS COMMAND. The MS word – is different to the Linux command line –

It is imperative that the user and group permissions are the same on the target system as the source system, as there a number of files and directories that are written to by the oracle user (which is a member of the dba group).

The copying process should take around 6+ hours.

1. The following restore must be the first restore to be run and has to be done outside of Domino Working hours (weekdays between 00:01 and 06:00, or weekends). Copy the oracle database files from oraproddb3 to

File ref: document.docCompany Confidential

Page 6

Page 6: 11i Cloning Procedure - Non-RAC

document.doc Doc ref: 300136301/PS/SVR/001

oradevdb1 to the corresponding directory structure for the target environment database servers, for TEST oradevdb1 /u04 data: /u04/oradata/prod

On completion of the above file system restores, please change the ownership of the directories as the root owner:-chown -R oratest:dba /u04/oradata/test

2. Copy the 9i oracle home from oraproddb3 to the corresponding server and directory structure for the target environment database server, for TEST oradevdb1 /u02 9i oracle home : /u01/oracle/prod/9.2.0.5

On completion of the above file system restores, please change the ownership of the directories as the root owner:-chown -R oratest:dba /u02/oracle/test/9.2.0.5

NOTE:- As soon as the above files have been successfully restored, please start the following restores and at the same time start section 2.3.1 of the cloning process “Configure target database tier – Oradevdb1”

3. Copy the following directories from oraprodapps5 to the corresponding applications server and directory structure for the target environment, for TEST oradevapps1 /u02

/u01/oracle/prod/ora /u01/oracle/prod/comn /u02/oracle/prod/appl

On completion of the above file system restores, please change the ownership of the directories as the root owner:-chown -R appltest:dba ora /u02/oracle/test/orachown -R appltest:dba ora /u02/oracle/test/comnchown -R appltest:dba ora /u02/oracle/test/appl

NOTE:- Now all files have been restored, please continue the clone process as normal.

2.3 Configure the Target System

2.3.1 Configure target database tier – Oradevdb1

1. Ensure the file permissions are set so that the oratest user is the owner of the 920 ORACLE_HOME (Oradevdb1) and /u04/oradata/test directory

2. Login to Oradevdb1 as the oratest user and run the adcdgclone script for the database tier:

3. Recreate Symbolic Linkscd /u02/oracle/test/9.2.0.5ls -l JRElrwxrwxrwx 1 503 dba 34 May 17 14:55 JRE -> /u02/oracle/prod/9.2.0.5/jre/1.1.8rm JREln -s /u02/oracle/test/9.2.0.5/jre/1.1.8 JREls -l JRElrwxrwxrwx 1 oratest dba 34 May 17 23:59 JRE -> /u02/oracle/test/9.2.0.5/jre/1.1.8

File ref: document.docCompany Confidential

Page 7

Page 7: 11i Cloning Procedure - Non-RAC

document.doc Doc ref: 300136301/PS/SVR/001

cd /u02/oracle/test/9.2.0.5/jre/1.3.1/binrm java keytool policytool rmid rmiregistry tnameservln -s /u02/oracle/test/9.2.0.5/jre/1.3.1/bin/.java_wrapper javaln -s /u02/oracle/test/9.2.0.5/jre/1.3.1/bin/.java_wrapper keytoolln -s /u02/oracle/test/9.2.0.5/jre/1.3.1/bin/.java_wrapper policytoolln -s /u02/oracle/test/9.2.0.5/jre/1.3.1/bin/.java_wrapper rmidln -s /u02/oracle/test/9.2.0.5/jre/1.3.1/bin/.java_wrapper rmiregistryln -s /u02/oracle/test/9.2.0.5/jre/1.3.1/bin/.java_wrapper tnameservcd /u02/oracle/test/9.2.0.5/jre/1.3.1/binrm jre javakey rmiregistryln -s /u02/oracle/test/9.2.0.5/jre/1.1.8/bin/.java_wrapper jreln -s /u02/oracle/test/9.2.0.5/jre/1.1.8/bin/.java_wrapper rmiregistryln -s /u02/oracle/test/9.2.0.5/jre/1.1.8/bin/.java_wrapper javakeycd /u02/oracle/test/9.2.0.5/ctx/librm libctxx9.soln -s /u02/oracle/test/9.2.0.5/lib/libctxx9.so libctxx9.socd /u02/oracle/test/9.2.0.5/librm libobk.soln -s /opt/galaxy/Base/libobk.so libobk.so

4. cd /u02/oracle/test/9.2.0.5/appsutil/clone/binperl adcfgclone.pl dbTier

Parameter Value

Enter the APPS password [APPS]: <password>Do you want to use a virtual hostname for the target node (y/n) [n] ?:

N

Target instance is a Real Application Cluster (RAC) instance (y/n) [y]:

N

Target System database name [PROD]: TESTTarget system RDBMS ORACLE_HOME directory [/u01/oracle/prod/9.2.0.5]:

/u02/oracle/test/9.2.0.5

Target system utl_file accessible directories list [/usr/tmp/PROD]:

/usr/tmp/TEST

Number of DATA_TOP's on the target system [1]: 1Target system DATA_TOP 1 [/u04/oradata/prod]: /u04/oradata/testDo you want to preserve the Display set to oraproddb3:1.0 (y/n) [y] ?:

N

Target system Display [oradevdb1:0.0]: Oradevdb1:1.0

This step should take about 10 minutes

5. Check the log file for errors, location:-$ORACLE_HOME/appsutil/TEST_oradevdb1/ApplyDbTier_MMDDHHMI.log

Possible Errors & Fixes during the adcfgclone process.You may encounter errors during the clone process. If any of the below errors are encountered, please apply the fixes as below. If a new undocumented error is encountered, please research and report the problem to the MIS DBA with the solution.

a. Problem -You may receive create controlfile error, but checking alert log it has been

created successfully.

File ref: document.docCompany Confidential

Page 8

Page 8: 11i Cloning Procedure - Non-RAC

document.doc Doc ref: 300136301/PS/SVR/001

If the above errors occur:- re-run dbTechStack clone on this node after the error, repeating the prcoess as above:-Solution:-cd /u02/oracle/test/9.2.0.5/appsutil/clone/bin

perl adcfgclone.pl dbTechStack

6. Once the adcfgclone.pl process is complete, check the following:a. The alert.log file contains no errorscd /u02/oracle/test/9.2.0.5/admin/TEST_Oradevdb1/bdumptail -1000 alert_TEST1.logAny ‘ORA-‘-type errors need further investigation.

b. Access is possible to the database through SQLPLUScd /u02/oracle/test/9.2.0.5. ./TEST1_oradevdb1sqlplus apps/<apps password>

c. Change sqlplus prompt from PROD to TESTcd $ORACLE_HOME/sqlplus/adminvi glogin.sql

Change line :-set sqlprompt "PROD1> "To:- set sqlprompt "TEST> "

d. Through SQLPLUS, check all the datafiles are present: select tablespace_name

from dba_data_files where file_name like 'MISS%';If any rows are returned, then there has been an error with the copying of the datafiles from the source system. Check that all of the datafiles have been copied across successfully. The missing datafile can be identified in PROD by examining the DBA_DATA_FILES view for the named tablespace. It may be necessary to re-copy all the datafiles across again and re-attempt the ‘perl adcfgclone.pl dbTier’ step.

e. Check the number of temporary database filesselect tablespace_name, file_name from dba_temp_files;9 rows selected.

f. Amend the init.ora file values which are changed by the clone.cd $ORACLE_HOM/dbsvi $ORACLE_HOME/dbs/initTEST.oraChange O7_DICTIONARY_ACCESSIBILITY from TRUE to FALSEEnsure db_cache_size is set to 600MRemove the first entry of /usr/tmp from the parameter UTL_FILE_DIR Change from:- utl_file_dir = /usr/tmp,/usr/tmp/TEST,/u02/oracle/test/9.2.0.5/appsutil/outbound/TEST_oradevdb1,/usr/tmpChange to:-utl_file_dir =/usr/tmp/TEST,/u02/oracle/test/9.2.0.5/appsutil/outbound/TEST_oradevdb1,/usr/tmp

NB:- The instance will need to be bounced for these changes to take effect.sqlplus/ as sysdba

File ref: document.docCompany Confidential

Page 9

Page 9: 11i Cloning Procedure - Non-RAC

document.doc Doc ref: 300136301/PS/SVR/001

shutdown immediate;startup;

7. a. Tidy up the environment and run the following command as the APPS database user from SQLPLUS:

.Clear Scheduled requests and the environment set-up:-sqlplus apps/<apps_password> truncate table applsys.fnd_concurrent_processes;truncate table applsys.fnd_concurrent_requests;truncate table applsys.FND_ENV_CONTEXT;

Disable customized alerts. Connect to sqlplus as the apps user:-

sqlplus apps/<apps_password>update alr_alerts set enabled_flag = 'N'where alert_name like 'Dom%';

Disable Shipping Printers as apps user:-

update WSH_REPORT_PRINTERS set enabled_flag='N';

Disable perfstat jobs:-connect PERFSTAT/<PERFSTAT_PASSWORD> select distinct job||' '||log_user||' '||priv_user||' '|| schema_user||' '||last_Date||' '||what||' '||instance from dba_jobs;execute DBMS_JOB.REMOVE (914);

Disable Scheduled Discoverer Workbooks Run the following plsql as the system user:-connect system/<system_password>declarecursor c1 isselect job from all_jobs where what like '%EUL5%';beginfor i in c1 loopdbms_job.broken(i.job,true);end loop;end;

/

8. Change permissions on /etc/oraInventory, as the root user

chmod -R 777 /etc/oraInventory

9 . Run autoconfig

cd $ORACLE_HOME/appsutil/scripts/TEST_oradevdb1

./adautocfg.sh

On completion of the above and before continuing, please ensure section 2.2 file restores has been completed.

2.3.2 Configure target application tier – oradevapps1

File ref: document.docCompany Confidential

Page 10

Page 10: 11i Cloning Procedure - Non-RAC

document.doc Doc ref: 300136301/PS/SVR/001

1. Ensure the file permissions are set so that the appltest user is the owner of the APPL_TOP, 806 ORACLE_HOME, IAS_ORACLE_HOME, COMN_TOP directories.

2. Login to oradevapps1 as the appltest user and run the adcfgclone script for the application tier:

3. Recreate Symbolic Links cd /u02/oracle/test/ora/iASrm 6iserverln -s /u02/oracle/test/ora/8.0.6 6iservercd /u02/oracle/test/appl/ar/11.5.0/reports/NLrm ARXSGPO.rdf ARDLP.rdfln -s /u02/oracle/test/appl/ar/11.5.0/reports/NL/XXDOMI_EU_ARDLP.rdf ARDLP.rdf ln -s /u02/oracle/test/appl/ar/11.5.0/reports/NL/XXDOMI_EU_ARXSGPO.rdf ARXSGPO.rdfcd /u02/oracle/test/appl/ar/11.5.0/reports/USrm ARXSGPO.rdf ARDLP.rdfln -s /u02/oracle/test/appl/ar/11.5.0/reports/US/XXDOMI_EU_ARXSGPO.rdf ARXSGPO.rdfln -s /u02/oracle/test/appl/ar/11.5.0/reports/US./XXDOMI_EU_ARDLP.rdf ARDLP.rdf cd /u02/oracle/test/appl/ar/11.5.0/reports/Drm ARXSGPO.rdf ARDLP.rdfln -s /u02/oracle/test/appl/ar/11.5.0/reports/D/XXDOMI_EU_ARXSGPO.rdf ARXSGPO.rdfln -s /u02/oracle/test/appl/ar/11.5.0/reports/D/XXDOMI_EU_ARDLP.rdf ARDLP.rdf cd /u02/oracle/test/appl/ar/11.5.0/reports/Erm ARXSGPO.rdf ARDLP.rdfln -s /u02/oracle/test/appl/ar/11.5.0/reports/E/XXDOMI_EU_ARXSGPO.rdf ARXSGPO.rdfln -s /u02/oracle/test/appl/ar/11.5.0/reports/E/XXDOMI_EU_ARDLP.rdf ARDLP.rdf cd /u02/oracle/test/appl/ar/11.5.0/reports/Frm ARXSGPO.rdf ARDLP.rdfln -s /u02/oracle/test/appl/ar/11.5.0/reports/F/XXDOMI_EU_ARXSGPO.rdf ARXSGPO.rdfln -s /u02/oracle/test/appl/ar/11.5.0/reports/F/XXDOMI_EU_ARDLP.rdf ARDLP.rdf cd /u02/oracle/test/appl/xxdomi/11.5.0/binrm XXDOMI_SF_ACCTEXTRACT XXDOMI_SF_ACCTUPLOAD XXDOMI_SF_DATACONV XXDOMI_SF_DATACONV XXDOMI_SF_QOTEXTRACTln -s /u02/oracle/test /appl/fnd/11.5.0/bin/fndcpesr XXDOMI_SF_ACCTEXTRACTln -s /u02/oracle/test/ appl/fnd/11.5.0/bin/fndcpesr XXDOMI_SF_ACCTUPLOADln -s /u02/oracle/test /appl/fnd/11.5.0/bin/fndcpesr XXDOMI_SF_DATACONV

File ref: document.docCompany Confidential

Page 11

Page 11: 11i Cloning Procedure - Non-RAC

document.doc Doc ref: 300136301/PS/SVR/001

ln -s /u02/oracle/test /appl/fnd/11.5.0/bin/fndcpesr XXDOMI_SF_QOTEXTRACT

4.cd /u02/oracle/test/comn/clone/bin perl adcfgclone.pl appsTier

Parameter Value

Enter the APPS password [APPS]: <apps_password>Do you want to use a virtual hostname for the target node (y/n) [n] ?:

N

Target system database SID [PROD]: TESTTarget system database server node [oraproddb3]:

oradevdb1

Target system database domain name [dps.local]:

<>

Does the target system have more than one application tier server node (y/n) [y] ?:

Y

Does the target system application tier utilize multiple domain names (y/n) [n] ?:

N

Target system concurrent processing node [oraproddb3]:

oradevdb1

Target system administration node [oraproddb3]:

oradevdb1

Target system forms server node [oraprodapps5]:

oradevapps1

Target system web server node [oraprodapps5]:

oradevapps1

Is the target system APPL_TOP divided into multiple mount points (y/n) [n] ?:

N

Target system APPL_TOP mount point [/u02/oracle/prod/appl]:

/u02/oracle/test/appl

Target system COMMON_TOP directory [/u01/oracle/prod/comn]:

/u02/oracle/test/comn

Target system 8.0.6 ORACLE_HOME directory [/u01/oracle/prod/ora/8.0.6]:

/u02/oracle/test/ora/8.0.6

arget system iAS ORACLE_HOME directory [/u01/oracle/prod/ora/iAS]:

/u02/oracle/test/ora/iAS

Do you want to preserve the Display set to oraprodapps5:1.0 (y/n) [y] ?:

N

Target system Display [orauatapps1:0.0]: oradevapps1:1.0Location of the JDK on the target system [/usr/java/j2sdk1.4.2_12]:

/usr/java/j2sdk1.4.2_12

Do you want to preserve the port values from the source system on the target system (y/n) [y] ?:

N

Enter the port pool number [0-99]:

Checking the port pool 2done: Port Pool 2 is freeWeb Listener port is 8002Complete port information available at /u02/oracle/test/appl/admin/out/TEST_oradevapps1/portpool.lstDatabase Connection on Port 1522: Successful

2

Target system proxy hostname [oraprodapps5.dps.local]:

oradevapps1.dps.local

Target system proxy port [80]: <>

File ref: document.docCompany Confidential

Page 12

Page 12: 11i Cloning Procedure - Non-RAC

document.doc Doc ref: 300136301/PS/SVR/001

Parameter Value

UTL_FILE_DIR on database tier consists of the following directories.

1. /usr/tmp2. /usr/tmp/TEST3. /u02/oracle/test/9.2.0.5/appsutil/outbound/TEST_oradevdb14. /usr/tmpChoose a value which will be set as APPLPTMP value on the target node [1]:

Choose number for /usr/tmp/TEST, should be

2 /usr/tmp/TEST

5. Check the log file for errors, location:-/u02/oracle/uat/appl/admin/UAT_orauatapps1/log/ApplyAppsTier_DDMMHHMI.log

Possible Errors & Fixes during the adcfgclone process.You may encounter errors during the clone process. If any of the below errors are encountered, please apply the fixes as below. If a new undocumented error is encountered, please research and report the problem to the MIS DBA with the solution.

a. Problem - You will likely receive the following error:-For some reason the clone process breaks the TNS connections.AutoConfig is exiting with status 19

RC-50014: Fatal: Execution of AutoConfig was failedRaised by oracle.apps.ad.clone.ApplyApplTop

Solution:-Login as oratest on oradevdb1 and re-run autoconfigcd $ORACLE_HOME/appsutil/scripts/TEST_oradevdb1./ adautocfg.shenter apps password

Log out of oradevapps1 as appltest and log back in again, to pick up the new environment variables. Repeat the above adcfgclone steps, entering parameters as above:- cd /u02/oracle/test/comn/clone/bin perl adcfgclone.pl appsTier

b. Problem -The following errors may occur, cannot connect on port 1522. Re-run clone clone process as below and it should complete successfully:-Solution:-Create a dummy TEST_oradevapps1.xml from PROD_oraprodapps5.xml cd /u02/oracle/test/appl/admincp –p PROD_oraprodapps5.xml TEST_oradevapps1.xmlEdit this file and nsure you change all PROD related entries to UAT.i.e.1st change oraprodapps to oradevapps2nd oraproddb to oradevdb3rd oraprod to oratest4th applprod to appltest5th PROD to TEST6th prod to test7th u01 to u02

File ref: document.docCompany Confidential

Page 13

Page 13: 11i Cloning Procedure - Non-RAC

document.doc Doc ref: 300136301/PS/SVR/001

8th 1521 to 15239th 8000 to 8002etc – change remaining portscd /u02/oracle/test/comn/clone/binperl adcfgclone appstier

/u02/oracle/test/appl/admin/TEST_oradevapps1.xmlSeeing the following error:-RC-20403: The following port numbers are busy - please make sure the ports are available and try again.Raised by oracle.apps.ad.clone.ApplyAppsTechStack s_fnd_cache_port_range :Note 390901.1 - fixed by ATG5

Log out of oradevapps1 as appltest and log back in again, to pick up the new environment variables. Repeat the above adcfgclone steps, entering parameters as above:- cd /u02/oracle/test/comn/clone/bin perl adcfgclone.pl appsTier

c. Problem - If the adcfgclone.pl process fails first time for no obvious reason, please

Solution:- rerun the script:- perl adcfgclone.pl appsTier using the parameters as illustrated above.cd /u02/oracle/test/comn/clone/bin perl adcfgclone.pl appsTier

NOTE:- If the adcfgclone.pl script continues to fail, investigate the issue and look for a possible solution and report back to a Domino DBA for further instructions.

This step should take 5 –10 minutes

4. Once the above process is completeCheck the log file for errors (/u02/oracle/uat/appl/admin/UAT_orauatapps1/log/ApplyAppsTier_DDMMHHMI.log )

a. Log out and back in again, shutdown the applicationcdapps./adstpall.sh stop apps/<apps_pwd>

c. Change sqlplus prompt from PROD to TESTcd $ORACLE_HOME/sqlplus/adminvi glogin.sqlchange PROD to TEST, and save file.Change line:-set sqlprompt "PROD> "To:-set sqlprompt "TEST> "

d. Check access is possible to the database through SQLPLUSsqlplus apps/<apps password>@TEST

e. Backup the following files:-cd $APPL_TOP/admincp -p TEST_oradevapps1.xml TEST_oradevapps1.xml.bkpcd $TNS_ADMINcp -p listener.ora listener.ora.bkpcp -p tnsnames.ora tnsnames.ora.bkpcp -p TEST_oradevapps1.xml TEST_oradevapps1.xml.preLB

File ref: document.docCompany Confidential

Page 14

Page 14: 11i Cloning Procedure - Non-RAC

document.doc Doc ref: 300136301/PS/SVR/001

f. Check contents of the following file, all TIER% parameters are still set to yes:-

view $APPL_TOP/admin/adconfig.txt

g. Check the following xml file settings are correct:-vi $CONTEXT_FILE

Parameter Required value

s_login_page <login_page oa_var="s_login_page"> http://oradevapps1.dps.local:8002/oa_servlets/AppsLogin</login_page>

s_smtphost <hostname oa_var="s_smtphost">dps-exchange-uk</hostname>

s_smtpdomainname <domain oa_var="s_smtpdomainname">dps.local</domain>

s_javamailer_imaphost

<hostname oa_var="s_javamailer_imaphost">dps-exchange-uk</hostname>

s_javamailer_imapdomainname

<domain oa_var="s_wfdomain">dps.local</domain>

s_javamailer_reply_to <username oa_var="s_javamailer_reply_to">[email protected]</username>

s_javamailer_imap_user

<username oa_var="s_javamailer_imap_user">[email protected]</username>

s_keepalive <keepalive oa_var="s_keepalive">ON</keepalive>s_xmlsvcs_nprocs <xmlsvcs_nprocs

oa_var="s_xmlsvcs_nprocs">1</xmlsvcs_nprocs>

The following values should already be set correctly. Change if required.s_isDB <TIER_DB oa_var="s_isDB">NO</TIER_DB>s_isAdmin <TIER_ADMIN oa_var="s_isAdmin">NO</TIER_ADMIN>s_isWeb <TIER_WEB oa_var="s_isWeb">YES</TIER_WEB>s_isForms <TIER_FORMS

oa_var="s_isForms">YES</TIER_FORMS>s_isConc <TIER_NODE oa_var="s_isConc">NO</TIER_NODE>s_isFormsDev <TIER_FORMSDEV

oa_var="s_isFormsDev">YES</TIER_FORMSDEV>s_isConcDev <TIER_NODEDEV

oa_var="s_isConcDev">NO</TIER_NODEDEV>s_isWebDev <TIER_WEBDEV

oa_var="s_isWebDev">YES</TIER_WEBDEV>s_isAdAdmin <TIER_ADADMIN

oa_var="s_isAdAdmin">YES</TIER_ADADMIN>s_isAdWeb <TIER_ADWEB

oa_var="s_isAdWeb">YES</TIER_ADWEB>s_isAdForms <TIER_ADFORMS

oa_var="s_isAdForms">YES</TIER_ADFORMS>s_isAdConc <TIER_ADNODE

oa_var="s_isAdConc">YES</TIER_ADNODE>s_isAdFormsDev <TIER_ADFORMSDEV

oa_var="s_isAdFormsDev">YES</TIER_ADFORMSDEV>s_isAdConcDev <TIER_ADNODEDEV

oa_var="s_isAdConcDev">YES</TIER_ADNODEDEV>s_isAdWebDev <TIER_ADWEBDEV

oa_var="s_isAdWebDev">YES</TIER_ADWEBDEV>

For mobile Apps Config:- Please set the below values as specified below, according to which environment is being cloned.TEST Dispatcher Port: 2400Test Ports: 2410,2420,2430,3410,3420,3430For DEVY or dEVX Clones:-DEVY Dispatcher Port: 2600DEVY Ports: 2610,2620,2630,6310,3620,3630DEVX Dispatcher Port:- 2500DEVX Ports:- 2510,2520,2530,3510,3520,3530

File ref: document.docCompany Confidential

Page 15

Page 15: 11i Cloning Procedure - Non-RAC

document.doc Doc ref: 300136301/PS/SVR/001

Parameter Required value

s_mwaPortNo <mwaPortNo oa_var="s_mwaPortNo" oa_type="PORT">2410;2420;2430;3410;3420;3430</mwaPortNo>

s_mwaTelnetPortNo <mwaTelnetPortNo oa_var="s_mwaTelnetPortNo" oa_type="PORT">2410;2420;2430;3410;3420;3430</mwaTelnetPortNo>

s_mwaDispatcherPort

<mwaDispatcherPort oa_var="s_mwaDispatcherPort" oa_type="PORT">2400</mwaDispatcherPort>

s_mwaActivateLOVByEnter

<mwaActivateLOVByEnter oa_var="s_mwaActivateLOVByEnter">TRUE</mwaActivateLOVByEnter>

h. Run autconfig on oradevapps1 as appltest, , to ensure there are no errors with any of the changes made above.cdapps./adautocfg.shEnter <apps_password>

2.3.3 Configure target application tier for Sharing to other Node– oradevapps1

1. Prepare the local Config Top directory:-cd /var/opt/oracle/TESTpwdrm -rf 8.0.6 iAS

2. Run txkshohm to make a local config top (/var/opt/oracle/TEST) & share the apps filesystem. On oradevapps1 as the appltest user:-

cd $FND_TOP/patch/115/binecho $ORACLE_HOME

echo $IAS_ORACLE_HOMEecho $CONTEXT_FILE

perl -I $AU_TOP/perl txkSOHM.pl

Parameter Value

Absolute path of Application's Context XML file

/u02/oracle/test/appl/admin/TEST_oradevapps1.xml

Type of Instance [primary/secondary] PrimaryAbsolute path of 8.0.6 Shared Oracle Home

/u02/oracle/test/ora/8.0.6

Absolute path of iAS Shared Oracle Home

/u02/oracle/test/ora/iAS

Absolute path of config top /var/opt/oracle/TESTOracle Application apps schema password

<apps_password>

a. Once the above process is completeCheck the log file for errors (see:- /u02/oracle/test/comn/admin/log/TEST_oradevtapps1/txkSetSOHM_ac.logLog out and back in again to pick up new environment variables.

Check the xml file looks okay

b. Run the adpreclone.pl process on the applications primary tier – oradevapps1 as the

File ref: document.docCompany Confidential

Page 16

Page 16: 11i Cloning Procedure - Non-RAC

document.doc Doc ref: 300136301/PS/SVR/001

appltest user:-cdapps perl adpreclone.pl appsTierCheck the log file for errors (see message “Log file located at…” for location)

c. Use the following values for the share of the application file system on oradevdb1

echo $CONTEXT_FILEecho $AD_TOP/binecho $FND_TOP/patch/115/binecho $AU_TOP/perlecho $ORACLE_HOMEecho $IAS_ORACLE_HOME

d. Change permissions on /etc/oraInventory, as root

chmod -R 777 /etc/oraInventory

2.3.4 Configure target database tier - oradevdb1

Configure the target database node. Log in to oradevdb1 as appltest.

1. Prepare the local Config Top directory:-cd /var/opt/oracle/TESTpwdrm -rf 8.0.6 iAS

2 a. cd /u02/oracle/test/appl/ad/11.5.0/bin

For the next command, use the context file of the primary node.perl adclonectx.pl sharedappltop contextfile=/u02/oracle/test/appl/admin/TEST_oradevapps1.xml

Parameter Value

Do you want to use a virtual hostname for the target node (y/n) [n] ?

N

Do you want to add Admin Server node (y/n) [y]

Y

Do you want to add Concurrent Processing Server node (y/n) [y] ?

Y

Do you want to add Forms Server node (y/n) [y] ?

N

Do you want to add Web Server node (y/n) [y] ?

N

Target system 8.0.6 ORACLE_HOME directory [/u02/oracle/test/ora/8.0.6]

/u02/oracle/test/ora/8.0.6

Target system iAS ORACLE_HOME directory [/u02/oracle/test/ora/iAS]

/u02/oracle/test/ora/iAS

Do you want to preserve the Display set to oradevapps1:1.0 (y/n) [y] ?

N

Target system Display [oradevdb1:0.0] oradevdb1:1.0Location of the JDK on the target system [/usr/java/j2sdk1.4.2_12]

/usr/java/j2sdk1.4.2_12

File ref: document.docCompany Confidential

Page 17

Page 17: 11i Cloning Procedure - Non-RAC

document.doc Doc ref: 300136301/PS/SVR/001

Parameter Value

Do you want the middle-tier services on the target system to have the same port values as the source system (y/n) [y] ?C-50220: Warning: MSCA Server Port: 2410;2420;2430;3410;3420;3430 is not free. Unable to preserve the port settings from source system.

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 to be used for the target system middle-tier services [0-99]:

Y

If you see this message, enter port pool as instructed

2Enter APPS Password [APPS] <apps_password>Target system proxy hostname [oradevapps1:1.0]

<>

Target system proxy port [80]: <>UTL_FILE_DIR on database tier consists of the following directories.

1 /usr/tmp/TEST

Once the above process is completePossible Problem:- You may see the following message, which can be ignored. The process can work without a database connection. Ensure the rest of the script works successfully:-APPS password is required to validate database connection using database

port 1522Enter APPS Password [APPS]:mem0ry1RC-40201: Unable to connect to Database DBA.

b. Log out and back in again to pick up an new environment settings

cd /u02/oracle/test/appl/fnd/11.5.0/patch/115/bin

perl -I/u02/oracle/test/appl/au/11.5.0/perl txkSOHM.pl

Now use the new xml file created for TEST on oradevdb1

Parameter Value

Absolute path of Application's Context XML file /u02/oracle/test/appl/admin/TEST_oradevdb1.xml

Type of Instance [primary/secondary] secondaryAbsolute path of 8.0.6 Shared Oracle Home /u02/oracle/test/ora/8.0.6Absolute path of iAS Shared Oracle Home /u02/oracle/test/ora/iASAbsolute path of config top /var/opt/oracle/TESTOracle Application apps schema password <apps_password>

Check the log file for errors (see /u02/oracle/test/comn/admin/log/TEST _oradevdb1/txkSetSOHM_ac.log)

Log out and back in again to pick up new environment variables.

c. Configure the xml file to ensure the following settings are setcp –p $CONTEXT_FILE $APPL_TOP/admin/TEST_oradevdb1.xml.bkpvi $CONTEXT_FILE

File ref: document.docCompany Confidential

Page 18

Page 18: 11i Cloning Procedure - Non-RAC

document.doc Doc ref: 300136301/PS/SVR/001

Parameter Required value

s_smtphost <hostname oa_var="s_smtphost">dps-exchange-uk</hostname>

s_smtpdomainname <domain oa_var="s_smtpdomainname">dps.local</domain>

s_javamailer_imaphost <hostname oa_var="s_javamailer_imaphost">dps-exchange-uk</hostname>

s_javamailer_imapdomainname

<domain oa_var="s_wfdomain">dps.local</domain>

s_javamailer_reply_to <username oa_var="s_javamailer_reply_to">[email protected]</username>

s_javamailer_imap_user <username oa_var="s_javamailer_imap_user">[email protected]</username>

s_keepalive <keepalive oa_var="s_keepalive">ON</keepalive>s_xmlsvcs_nprocs <xmlsvcs_nprocs

oa_var="s_xmlsvcs_nprocs">1</xmlsvcs_nprocs>s_cp_twotask <CP_TWOTASK

oa_var="s_cp_twotask">TEST</CP_TWOTASK>s_tools_path <PATH oa_var="s_tools_path"

osd="Linux">/usr/java/j2sdk1.4.2_12/bin:/u02/oracle/test/ora/8.0.6/bin:/usr/bin:/usr/sbin:/u02/oracle/test/comn/util/jre/1.1.8/bin:/u02/oracle/test/ora/iAS/Apache/perl/bin:/u02/oracle/test/ora/8.0.6/bin:/u02/oracle/test/appl/fnd/11.5.0/bin:/u02/oracle/test/appl/ad/11.5.0/bin:/u02/oracle/test/comn/util/jre/1.1.8/bin:/u02/oracle/test/comn/util/unzip/unzip/unzip5.50::/u02/oracle/test/ora/8.0.6/bin:/usr/bin:/usr/ccs/bin:/usr/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/Acrobat5/bin:$PATH</PATH>

The following values should already be set correctly. Change if required.s_isDB <TIER_DB oa_var="s_isDB">YES</TIER_DB>s_isAdmin <TIER_ADMIN

oa_var="s_isAdmin">YES</TIER_ADMIN>s_isWeb <TIER_WEB oa_var="s_isWeb">NO</TIER_WEB>s_isForms <TIER_FORMS

oa_var="s_isForms">NO</TIER_FORMS>s_isConc <TIER_NODE

oa_var="s_isConc">YES</TIER_NODE>s_isFormsDev <TIER_FORMSDEV

oa_var="s_isFormsDev">NO</TIER_FORMSDEV>s_isConcDev <TIER_NODEDEV

oa_var="s_isConcDev">YES</TIER_NODEDEV>s_isWebDev <TIER_WEBDEV

oa_var="s_isWebDev">NO</TIER_WEBDEV>s_isAdAdmin <TIER_ADADMIN

oa_var="s_isAdAdmin">YES</TIER_ADADMIN>s_isAdWeb <TIER_ADWEB

oa_var="s_isAdWeb">YES</TIER_ADWEB>s_isAdForms <TIER_ADFORMS

oa_var="s_isAdForms">YES</TIER_ADFORMS>s_isAdConc <TIER_ADNODE

oa_var="s_isAdConc">YES</TIER_ADNODE>s_isAdFormsDev <TIER_ADFORMSDEV

oa_var="s_isAdFormsDev">YES</TIER_ADFORMSDEV>

s_isAdConcDev <TIER_ADNODEDEV oa_var="s_isAdConcDev">YES</TIER_ADNODEDEV>

File ref: document.docCompany Confidential

Page 19

Page 19: 11i Cloning Procedure - Non-RAC

document.doc Doc ref: 300136301/PS/SVR/001

Parameter Required value

s_isAdWebDev <TIER_ADWEBDEV oa_var="s_isAdWebDev">YES</TIER_ADWEBDEV>

d. Check Fnd Nodes are setup Correctlysqlplus apps/<apps_password>select node_name, node_mode, support_cp, support_web, support_admin, support_forms from FND_NODES;NODE_NAME N S S S S------------------------------ - - - - -ORADEVAPPS1 O N Y N YORADEVDB1 O Y N Y NAUTHENTICATION O N N N N

e. Change sqlplus prompt from PROD to TESTcd $ORACLE_HOME/sqlplus/adminvi glogin.sqlchange PROD to TEST, and save file.

f. Check access is possible to the database through SQLPLUSsqlplus apps/<apps password>

g. Change permissions on /etc/oraInventory, as rootchmod -R 777 /etc/oraInventory

h. Log in to the primary node and re-run autconfig now that the secondary node has

been configured. Login to oradevapps1 as appltestcdapps./adautocfg.sh

Enter <apps_password>

2.4 Application clone Finishing Tasks

2.4.1 Check connectivity to system

1. Start the application as below:-Log in to oradevdb1 as appltestcdapps./ adalnctl.sh start apps/<apps_password>./ adrepctl.sh start apps/<apps_password>Login to oradevapps1 as appltest./adstrtal.sh apps/<apps_password>

2. Check that it is possible to login to both the normal login page and Oracle Applications Manager (OAM) using the following URLs (use a user with System Administrator responsibility):

http://oradevdb1.dps.local:8002/oa_servlets/AppsLoginhttp:// oradevdb1.dps.local:8002/servlets/weboam/oam/oamLogin

File ref: document.docCompany Confidential

Page 20

Page 20: 11i Cloning Procedure - Non-RAC

document.doc Doc ref: 300136301/PS/SVR/001

3. From with the System Administration responsibility, open the Diagnostics menu and check the following tests succeed:

PLSQL Ping JSP Ping Servlet Ping

Any error messages will require further investigation and the underlying problem resolved before continuing.

2.4.2 Configure Application Profiles / Managers

1. From the System Administrator responsibility, open the Profile, system menu option Set the following system profile options at Site Level:-Site Name to TESTRRA:Service Prefix (e.g. new value = ‘FNDFS_TEST_’). This needs to be

done before the Concurrent Managers can be started up.

Java Color Scheme: titaniumJTFB_GRAPH_COLOR_SERIES_START to 008888 (was 009999)JTFB_GRAPH_GRID_COLOR to CCCC88 (was CCCC99)ICX:Session Timeout Change to 240IBE: iStore Non Secure URL Change to:- http://oradevapps1.dps.local:8002/OA_HTMLIBE: iStore Secure URL Chnage to:-http://oradevapps1.dps.local:8002/OA_HTML

Ensure system administrator responsibility is enabled for the following oracle users,

through the define User form:- A_RICHARDS, KN_SCOTT, G_JACKSON, P_TOATES ANY MORE

3. Define the concurrent Managers

a. The following sql should work for updating the primary / secondary nodes (rather than manually through System administrator -> Define Managers) , still need to manually change the managers with the node name in the title:-Select distinct concurrent_queue_name||’ ‘||node_name||’ ‘||node_name2From fnd_concurrent_queues;If the nodes are still set to oraproddb3 and oraproddb4, run the following:-update FND_CONCURRENT_QUEUES set node_name = 'ORADEVDB1' where node_name in ('ORAPRODDB3','ORAPRODDB4'));update FND_CONCURRENT_QUEUES set node_name2 = nullwhere node_name2 in ('ORAPRODDB3','ORAPRODDB4');

You will also need to run the cmclean.sql scriptcd /home/appltestsqlplus apps/<apps_password> @cmclean.sqlEnter commit

b. Through the application, Change any manager title / names with the server name

included as part of the title from oraproddb3 to oradevdb1

File ref: document.docCompany Confidential

Page 21

Page 21: 11i Cloning Procedure - Non-RAC

document.doc Doc ref: 300136301/PS/SVR/001

Navigate to System Administrator -> Concurrent -> Manager -> Define Query all managers and change the title of any managers with oraproddb3

to oradevdb1.

c. Through the application, check the internal monitor for oradevdb1 has a workshift defined, it will likely have been lost during the clone.Navigate to System Administrator -> Concurrent -> Manager -> Define Query Internal Monitor%ORADEVDB1Choose Workshifts, if there is none defined:-Choose Workshift Standard, Tab through Description, Add Processses of 1.

Save

Through Administor Managers. Navigate to System Administrator -> Concurrent ->

Manager -> Administer. Query Internal Monitor%ORADEVDB1 and pressActivate.

Once Activated, Log out of oracle

On oradevdb1 as appltest, autoconfig must be run to save the Internal Monitor changes. Now shutdown remaining application processes on oradevdb1 as appltestcdapps./adstpall.sh stop apps/<apps_password>Run autconfig./adautocfg.shEnter <apps_password>Repeat the above on oradevapps1

Restart the application on both oradevdb1 and oradevapps1../adstrtal.sh apps/<apps_password>

Log back in to the application and check that the manager processes are all running and that the internal monitor: ORADEVDB1 has started automatically.

4. Change the customized environment variables on oradevapps1cd $APPL_TOPrm –rf *PROD*envvi customTEST_oradevdb1.env Add the following lines to the file and save the changes:-# ################################################################

## The APPLFENV variable is the filename of this file.# If you rename this file, you should change this value.#

## XXDOMI_TOP is the top-level directory for Domino Customization Application.#

XXDOMI_TOP="/u02/oracle/test/appl/xxdomi/11.5.0" export XXDOMI_TOP

## VERISIGN_TOP is the top-level directory for PayPay Payflow.#

File ref: document.docCompany Confidential

Page 22

Page 22: 11i Cloning Procedure - Non-RAC

document.doc Doc ref: 300136301/PS/SVR/001

VERISIGN_TOP="/u02/oracle/test/comn/java/oracle/apps/verisign" export VERISIGN_TOP

Create the same file for oradevapps1cp –p customTEST_oradevdb1.env customTEST_oradevapps1.env

4.Change custom created directories:-sqlplus apps/<apps_pwd>

select distinct OWNER||' '||DIRECTORY_NAME||' '||DIRECTORY_PATHfrom dba_directories

OWNER||''||DIRECTORY_NAME||''||DIRECTORY_PATH--------------------------------------------------------------------------------SYS APPS_DATA_FILE_DIR /u01/oracle/test/9.2.0.5/appsutil/outbound/TEST1_oratestdb1SYS ECX_UTL_LOG_DIR_OBJ /usr/tmpSYS ECX_UTL_XSLT_DIR_OBJ /usr/tmpSYS EXELOUT /u02/oracle/prod/appl/xxdomi/11.5.0/exelSYS GSKOUT /u02/oracle/prod/appl/xxdomi/11.5.0/gskSYS MECTEC /u02/oracle/prod/appl/xxdomi/11.5.0/mectecSYS RMOUT /u02/oracle/prod/appl/xxdomi/11.5.0/royalmailSYS TARGETOUT /u02/oracle/prod/appl/xxdomi/11.5.0/targetoutSYS XXDOMIMWA /u02/oracle/test/appl/11.5.0/mwa_labelsSYS XXDOMISQL /u02/oracle/prod/appl/xxdomi/11.5.0/sqlSYS javatmpdir0 /u01/oracle/prod/9.2.0.5/javavm/admin/

Note:- Given above directories should be point to TEST instance.

create or replace directory EXELOUT as '/u02/oracle/test/appl/xxdomi/11.5.0/exel';create or replace directory GSKOUT as '/u02/oracle/test/appl/xxdomi/11.5.0/gsk';create or replace directory MECTEC as '/u02/oracle/test/appl/xxdomi/11.5.0/mectec';create or replace directory RMOUT as '/u02/oracle/test/appl/xxdomi/11.5.0/royalmail';create or replace directory TARGETOUT as '/u02/oracle/test/appl/xxdomi/11.5.0/targetout';create or replace directory XXDOMISQL as '/u02/oracle/test/appl/xxdomi/11.5.0/sql';create or replace directory XXDOMIMWA as '/u02/oracle/test/appl/xxdomi/11.5.0/mwa_labels';

create or replace directory javatmpdir0 as '/u02/oracle/test/9.2.0.5/javavm/admin/';

select distinct OWNER||' '||DIRECTORY_NAME||' '||DIRECTORY_PATHfrom dba_directories

OWNER||''||DIRECTORY_NAME||''||DIRECTORY_PATH--------------------------------------------------------------------------------SYS APPS_DATA_FILE_DIR /u02/oracle/test/9.2.0.5/appsutil/outbound/TEST_oradevdb1SYS ECX_UTL_LOG_DIR_OBJ /usr/tmpSYS ECX_UTL_XSLT_DIR_OBJ /usr/tmpSYS EXELOUT /u02/oracle/test/appl/xxdomi/11.5.0/exelSYS GSKOUT /u02/oracle/test/appl/xxdomi/11.5.0/gskSYS MECTEC /u02/oracle/test/appl/xxdomi/11.5.0/mectecSYS RMOUT /u02/oracle/test/appl/xxdomi/11.5.0/royalmailSYS TARGETOUT /u02/oracle/test/appl/xxdomi/11.5.0/targetoutSYS XXDOMIMWA /u02/oracle/test/appl/xxdomi/11.5.0/mwa_labelsSYS XXDOMISQL /u02/oracle/test/appl/xxdomi/11.5.0/sqlSYS javatmpdir0 /u01/oracle/prod/9.2.0.5/javavm/admin/

grant write on directory EXELOUT to public;grant write on directory GSKOUT to public;grant write on directory MECTEC to public;

File ref: document.docCompany Confidential

Page 23

Page 23: 11i Cloning Procedure - Non-RAC

document.doc Doc ref: 300136301/PS/SVR/001

grant write on directory RMOUT to public;grant write on directory TARGETOUT to public;grant write on directory XXDOMISQL to public;grant write on directory javatmpdir0 to public;grant read on directory XXDOMIMWA to public;grant write on directory XXDOMIMWA to public;

2.4.3 Edit Workflow Java Notification MailerNavigate to OAM -> site Map -.> notification MailerChange outbound and inbound server fields are set to dps-exchange-uk.dps.local Change both email addresses from [email protected] to [email protected]

2.4.4 Configure iStore on oradevapps1Bounce apache after making the modifications.1. Refresh iStore customized Jsp Files

When cloning either TEST, DEVX or DEVY which are cloned from oraprodapps5, the following files need to be copied from oraprodapps4 to ensure iStore works correctly:-cd $COMMON_TOP/java/oracle/appsscp -rp

applprod@oraprodapps4:/u01/oracle/prod/comn/java/oracle/apps/xxibe .cd $COMMON_TOP/java/oracle/apps/media/xxdomscp -p applprod@oraprodapps4:/u01/oracle/prod/comn/java/oracle/apps/media/xxdom/xxibe* .cd $COMMON_TOP/java/oracle/apps/media/xxdom/buttons scp -p applprod@oraprodapps4:/u01/oracle/prod/comn/java/oracle/apps/media/xxdom/buttons/xxibe* .cd $COMMON_TOP/htmlscp -p

applprod@oraprodapps4:/u01/oracle/prod/comn/html/xxibe* .

5. Clear Apache Cache – in the directories that existcd $IAS_ORACLE_HOME/Apache/modplsql/cache/cookiepwdrm -rf *cd $IAS_ORACLE_HOME/Apache/modplsql/cache/plsql pwdrm -rf *cd $COMMON_TOP/_pages/_oa__htmlpwdrm -rf *cd $COMMON_TOP/_pages/_oa__javapwdrm -rf *

2.4.5 Configure Mobile Applications Original source Project Unite /customization /mobile apps/Mobile applications Setup.docNote:- If you run autoconfig then give below files will change in mobile application..TEST Dispatcher Port: 2400Test Ports: 2410,2420,2430,3410,3420,3430

NOTE:- If the clone is of either the DEVY or DEVX instance, please try the following port range:-DEVY Dispatcher Port: 2600

File ref: document.docCompany Confidential

Page 24

Page 24: 11i Cloning Procedure - Non-RAC

document.doc Doc ref: 300136301/PS/SVR/001

DEVY Ports: 2610,2620,2630,6310,3620,3630DEVX Dispatcher Port:- 2500DEVX Ports:- 2510,2520,2530,3510,3520,3530

Bounce apache after making the modifications.Edit $MWA_TOP/secure/mwa.cfgmwa.DbcFolder=/u02/oracle/test/appl/fnd/11.5.0/securemwa.DbcFile=oradevdb1_testmwa.logdir=/u02/oracle/test/comn/admin/log/TEST_oradevapps1mwa.TelnetPortNumber=2310,2320,2330,3310,3320,3330mwa.Dispatcher=oradevapps1.dps.local:2400mwa.ActivateLOVByEnter=TRUEmwa.TelnetServer=oradevapps1.dps.local:2310;2320;2330;3310;3320;3330mwa.WapHost = oradevapps1.dps.localmwa.WapPort = 8001cd $MWA_TOP/secureCopy the files device.cfg deviceIP.ini mwa.cfg to $MWA_TOP/admin/template/customcp -p device.cfg $MWA_TOP/admin/template/customcp –p deviceIP.ini $MWA_TOP/admin/template/customcp -p mwa.cfg $MWA_TOP/admin/template/custom

Change log file names, temporary file names and possibly port numbers in the following files:Change any occurrences of prod to testChange all port numbers to the relevant port numbers for TESTChange the directory structure if required (u02)If there is a problem starting the dispatcher on port 2400, try 2300 instead.$MWA_TOP/bin/mwa_start_dispatcher.sh$MWA_TOP/bin/mwa_start_on_reboot.sh$MWA_TOP/bin/mwa_stop_all.sh$MWA_TOP/bin/mwa_stop_dispatcher.sh$MWA_TOP/bin/mwa_svr.sh

To enable mobile apps to startrm /tmp/devy.*touch /tmp/devy.1

Query edit xml file Karen to Add Details if required.

Configure Labels Printing on Mobile AppsPlease check the permissions on $XXDOMI_TOP/mwa_labels directory are set 777 as the oracle user must be able to write to this directory.ls –l $XXDOMI_TOPdrwxrwxrwx 4 appltest dba 4096 May 30 15:23 mwa_labels

2.4.2 Configure iPayment for OracleCheck the following Ipayment customizations are not lost.Repeat the following check on oradevtapps1 as appltest user:-

cd /var/opt/oracle/TEST/iAS/Apache/Jserv/etc

Add the following lines to the bottom of the file, if they do not currently exist:-vi formservlet.ini

File ref: document.docCompany Confidential

Page 25

Page 25: 11i Cloning Procedure - Non-RAC

document.doc Doc ref: 300136301/PS/SVR/001

# Begin CustomizationXXDOMI_TOP=/u02/oracle/test/appl/xxdomi/11.5.0# End Customization

Add the following lines to the bottom of the file, if they do not currently exist:-vi jserv.properties

# Begin customizationswrapper.bin.parameters=-DDIAGNOSTIC_SECURITY_SWITCH=OFFwrapper.classpath=/u02/oracle/test/comn/java/support_addon.zipwrapper.classpath =/u02/oracle/test/ora/iAS/Apache/Jserv/servlets/CZ_FC.jar#wrapper.classpath=$JAVA_TOP/ssl/javax-ssl-1_2.jar#wrapper.classpath=$JAVA_TOP/ssl/jssl-1_2.jar#wrapper.bin.parameters=-DAFLOG_ENABLED=TRUEwrapper.bin.parameters=-DAFLOG_MODULE=iby%wrapper.bin.parameters=-DAFLOG_LEVEL=STATEMENTwrapper.bin.parameters=-DAFLOG_FILENAME=/usr/tmp/PROD/iby.log#Begin Modification for VeriSign BEP Servlet Installationwrapper.classpath=/u02/oracle/test/appl/iby/11.5.0/lib/Verisign.jar#Include the XML xerces parser jar files in the CLASSPATH.wrapper.classpath=/u02/oracle/test/appl/iby/11.5.0/lib/xercesImpl.jarwrapper.classpath=/u02/oracle/test/appl/iby/11.5.0/lib/xml-apis.jar#Enable iPayment extensibility in the CLASSPATH.wrapper.classpath=/u02/oracle/test/ora/iAS/Apache/Jserv/servlets/ibyextendwrapper.classpath=/u02/oracle/test/ora/iAS/Apache/Jserv/servlets#End Modification for VeriSign BEP Servlet Installation

# End customizations

Add the following lines to the bottom of the file, if they do not currently exist:-vi zone.properties

# Begin customizations#---------------------------------------------------------------#-------Domino iPayment BiBit Servlet---------------------servlet.oramipp_xxx.code=oracle.apps.xxiby.bibit.BibitServlet#---------------------------------------------------------------

#---------------------------------------------------------------#-------PayPal VeriSign Payment Services Servlet---------------------#---------------------------------------------------------------servlets.startup=oramipp_vpsservlet.oramipp_vps.code=com.verisign.iPayment.bizcomp.vpsProcessservlet.oramipp_vps.initArgs=properties=/u02/oracle/test/ora/8.0.6/verisign/vpsipayment.properties,debug=true,logfile=/u02/oracle/test/appl/iby/11.5.0/log/ibyvpsserv.log,xmlfile=/u02/oracle/test/ora/8.0.6/verisign/param.xml

# End customizations

2.4.6 Remove References to the Source EnvironmentA number of directories will have been copied across with the clone, which contains references to the source system. These can be removed from all nodes:

File ref: document.docCompany Confidential

Page 26

Page 26: 11i Cloning Procedure - Non-RAC

document.doc Doc ref: 300136301/PS/SVR/001

1. Login to oradevpps1 as the appltest user. Ensure the correct environment file is sourced.

2. Remove the following directories (this list is not complete and may need updating):cd $OAD_TOP/admin/scriptsrm –rf PROD_*cd $OAD_TOP/admin/logrm –rf PROD_*cd $OAD_TOP/admin/outrm –rf PROD_*cd $OAD_TOP/admin/installrm –rf PROD_*cd $OAD_TOP/clone/context/appsrm –rf PROD_*.xmlcd $OAD_TOP/portalrm –rf PROD*cd $OAD_TOP/rgfrm –rf PROD_*cd $OAD_TOP/temprm –rf PROD_*cd $ORACLE_HOMErm –rf PROD*env*cd $APPL_TOPrm –rf PROD*env*cd $APPL_TOP/admin/outrm –rf PROD_*cd $APPL_TOP/adminrm –rf PROD_*

3. Login to oradevdb1 as the appltest user. Ensure the correct environment file is sourced.

4. Remove the following directories:cd $OAD_TOP/admin/scriptsrm –rf PROD_*cd $OAD_TOP/admin/logrm –rf PROD_*cd $OAD_TOP/admin/outrm –rf PROD_*cd $OAD_TOP/admin/installrm –rf PROD_*cd $OAD_TOP/clone/context/appsrm –rf PROD_*.xmlcd $OAD_TOP/portalrm –rf PROD*cd $OAD_TOP/rgfrm –rf PROD_*cd $OAD_TOP/temprm –rf PROD_*cd $ORACLE_HOME/reports60/serverrm –rf REP60_PROD*cd $ORACLE_HOME/network/adminrm –rf PROD_*cd $ORACLE_HOMErm –rf PROD*env*cd $APPL_TOPrm –rf *PROD*env*cd $APPL_TOP/admin/outrm –rf PROD_*cd $APPL_TOP/admin

File ref: document.docCompany Confidential

Page 27

Page 27: 11i Cloning Procedure - Non-RAC

document.doc Doc ref: 300136301/PS/SVR/001

rm –rf PROD_*

5. Login to oradevdb1 as the oratest user. Ensure the correct environment file is sourced.

6. Remove the following directories:cd $ORACLE_HOMErm –rf *PROD*env*cd $ORACLE_HOME/dbsrm –rf initPROD*ora*cd $ORACLE_HOME/adminrm –rf PROD*cd $ORACLE_HOME/appsutil/out/rm –rf PROD*cd $ORACLE_HOME/appsutil/logrm –rf PROD*cd $ORACLE_HOME/appsutil/scriptsrm –rf PROD*cd $ORACLE_HOME/appsutil/template/dbsrm –rf PROD*cd $ORACLE_HOME/appsutilrm –rf PROD*xml*cd $ORACLE_HOME/appsutil/installrm -rfPROD*

Repeat on oratestdb2

7. Login to oradevdb1 as the appltest user and locate the directory containing the concurrent manager log and output files:

cd $COMMON_TOP/admincd logrm –fr PROD_oraproddb1rm –fr PROD_oraproddb2cd ../outrm –fr PROD_oraproddb1rm –fr PROD_oraproddb2

2.4.7 Reset Database PasswordsReset to the current passwords in this environment – passwords themselves to be

provided by Domino separately.1. First shutdown oracle applications, login to opradevdb1 as appltestcdapps./adstpall.sh apps/<apps_password>Repeat on oradevapps1

Login to sqlplus as system useralter user           AD_MONITOR   account Lock     ;alter user           PORTAL30_DEMO        account Lock     ;alter user           SCOTT  account Lock     ;

alter user           CTXSYS            identified by       <new_password>;alter user           DBSNMP          identified by       <new_password>;alter user           JUNK_PS          identified by       <new_password>;alter user           MDSYS            identified by       <new_password>;alter user           NORADDOM     identified by     <new_password>;alter user           ORDPLUGINS   identified by    <new_password> ;alter user           ORDSYS          identified by      <new_password>;alter user           OUTLN  identified by       <new_password>;

File ref: document.docCompany Confidential

Page 28

Page 28: 11i Cloning Procedure - Non-RAC

document.doc Doc ref: 300136301/PS/SVR/001

alter user           OWAPUB         identified by       <new_password>;alter user           PERFSTAT       identified by       <new_password>;alter user           PORTAL30        identified by      <new_password> ;alter user           PORTAL30_PUBLIC       identified by     <new_password>;alter user           PORTAL30_SSO           identified by       <new_password>;alter user           PORTAL30_SSO_PUBLIC          identified by    <new_password> ;alter user           SSOSDK          identified by       <new_password>;alter user           SYS     identified by       <new_password>;alter user           SYSTEM           identified by       <new_password>;alter user           WORKMATE     identified by       <new_password>;alter user           WORLDMARK   identified by      <new_password>;alter user           XXDOMI            identified by       <new_password>;alter user           XXPORTAL        identified by      <new_password>;alter user           EUL4_US          identified by       <new_password>  ;alter user           COGNOS          identified by       <new_password>  ; 2. Change Apps password in test   a  Login as a appltest on oradevdb1 b cd /tmp   c   FNDCPASS apps/<current_password>  0 Y system/<new_password> SYSTEM APPLSYS <new_password> d. Check logfiles 3. Change apps password in the below files on the database and application server.   a /var/opt/oracle/TEST/iAS/Apache/modplsql/cfg/wdbsvr.app   b /var/opt/oracle/TEST/8.0.6/reports60/server/CGIcmd.dat  4. Change default password for all modules.a cd /tmpb FNDCPASS APPS/<new_password> 0 Y SYSTEM/<new_password> ALLORACLE <new_password>c Check Logfiles

5. Check connection via sqlplus to the following users with the new passwords:sqlplus apps/<new_apps_passwordconnect system/<new_system_password>connect ar/<new_ar_password>connect outln/<new_outln_password>connect xxdomi/<new_xxdomi_password>

2.4.8 Backup Cloned System / User Notification 1. Perform full cold backup through Commvault of the datafiles, oracle and

apps file systems after shutting down the application and database. (The oracle file systems on the dev servers are not automatically backed up).

h. Advise relevant users that the TEST system is available

File ref: document.docCompany Confidential

Page 29