100% found this document useful (1 vote)
2K views28 pages

11i Cloning Procedure - Non-RAC

DOMINO 11i Cloning Procedure - non-RAC clone Version 1. 1. 1. Added Disco cancel of scheduled workbooks Added Password Section Amended for relocation of TEST Amend clone document to instruct on copying file permissions. This document is suitable for cloning the production Oracle eBusiness Suite environment to a single instance dual tier environment.

Uploaded by

Sunjit Kumar
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
2K views28 pages

11i Cloning Procedure - Non-RAC

DOMINO 11i Cloning Procedure - non-RAC clone Version 1. 1. 1. Added Disco cancel of scheduled workbooks Added Password Section Amended for relocation of TEST Amend clone document to instruct on copying file permissions. This document is suitable for cloning the production Oracle eBusiness Suite environment to a single instance dual tier environment.

Uploaded by

Sunjit Kumar
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 28

41596848.

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 2007


1.1 Modified Rishi Upadhyay 18-Oct-2007
1.2 Modified Restore Process to Enable Karen Jones 30th May
Clone to start sooner. 2008
Added Disco cancel of scheduled
workbooks
Added Password Section
1.3 Amended for relocation of TEST Karen Jones 2nd June 2008
2.0 Amend clone document to instruct Karen Jones 22nd July 08
on copying file permissions.
Amend document to reflect the new
merged filesystem structure
2.1 Add additional Customisation Karen Jones 3rd
Changes. September
Finalise and Tidy Up all Changes 208
after CU2

File ref: 41596848.doc Page 2


Company Confidential
41596848.doc Doc ref: 300136301/PS/SVR/001

Contents
1 Introduction 2

1.1 Purpose 2
1.2 Assumptions 2
1.3 Scope and Application 2
1.4 Related Documents 2

2 Cloning Procedure 5
2.1 Prepare the Source System for cloning 5
2.2 Copy the Source System to the Target System 7
2.3 Configure the target System 7
2.4 Finishing Tasks 24

File ref: 41596848.doc Page 3


Company Confidential
41596848.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: 41596848.doc Page 4


Company Confidential
41596848.doc Doc ref: 300136301/PS/SVR/001

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

Single Instance Clone - TEST


Source Destination
Database Tier 1 Oraproddb3 Oradevdb1
Database Tier 2 Oraproddb4
Applications Tier 1 Oraprodapps5 Oradevapps1
Applications Tier 2 Oraprodapps6
Applications 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 cloning


This 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 –version
This is perl, version 5.005_03 built for i686-linux
Copyright 1987-1999, Larry Wall
cd $OAD_TOP/admin/scripts/PROD_oraprodapps5
perl adpreclone.pl appsTier
Running 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 2007


Log 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: 41596848.doc Page 5


Company Confidential
41596848.doc Doc ref: 300136301/PS/SVR/001

perl adpreclone.pl appsTier

.2.1.2 Prepare the source system database tier for cloning


This 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_oraproddb3
perl adpreclone.pl dbTier
oraproddb3.dps.local:PROD1:oraprod>perl adpreclone.pl dbTier
Running 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 2007


APPS 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: 41596848.doc Page 6


Company Confidential
41596848.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/ora
chown -R appltest:dba ora /u02/oracle/test/comn
chown -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 Links
cd /u02/oracle/test/9.2.0.5
ls -l JRE
lrwxrwxrwx 1 503 dba 34 May 17 14:55 JRE ->
/u02/oracle/prod/9.2.0.5/jre/1.1.8
rm JRE
ln -s /u02/oracle/test/9.2.0.5/jre/1.1.8 JRE
ls -l JRE

File ref: 41596848.doc Page 7


Company Confidential
41596848.doc Doc ref: 300136301/PS/SVR/001

lrwxrwxrwx 1 oratest dba 34 May 17 23:59 JRE ->


/u02/oracle/test/9.2.0.5/jre/1.1.8
cd /u02/oracle/test/9.2.0.5/jre/1.3.1/bin
rm java keytool policytool rmid rmiregistry tnameserv
ln -s /u02/oracle/test/9.2.0.5/jre/1.3.1/bin/.java_wrapper java
ln -s /u02/oracle/test/9.2.0.5/jre/1.3.1/bin/.java_wrapper keytool
ln -s /u02/oracle/test/9.2.0.5/jre/1.3.1/bin/.java_wrapper policytool
ln -s /u02/oracle/test/9.2.0.5/jre/1.3.1/bin/.java_wrapper rmid
ln -s /u02/oracle/test/9.2.0.5/jre/1.3.1/bin/.java_wrapper
rmiregistry
ln -s /u02/oracle/test/9.2.0.5/jre/1.3.1/bin/.java_wrapper tnameserv
cd /u02/oracle/test/9.2.0.5/jre/1.3.1/bin
rm jre javakey rmiregistry
ln -s /u02/oracle/test/9.2.0.5/jre/1.1.8/bin/.java_wrapper jre
ln -s /u02/oracle/test/9.2.0.5/jre/1.1.8/bin/.java_wrapper
rmiregistry
ln -s /u02/oracle/test/9.2.0.5/jre/1.1.8/bin/.java_wrapper javakey
cd /u02/oracle/test/9.2.0.5/ctx/lib
rm libctxx9.so
ln -s /u02/oracle/test/9.2.0.5/lib/libctxx9.so libctxx9.so
cd /u02/oracle/test/9.2.0.5/lib
rm libobk.so
ln -s /opt/galaxy/Base/libobk.so libobk.so

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

Parameter Value

Enter the APPS password [APPS]: <password>


Do you want to use a virtual hostname for the target node N
(y/n) [n] ?:
Target instance is a Real Application Cluster (RAC) N
instance (y/n) [y]:
Target System database name [PROD]: TEST
Target system RDBMS ORACLE_HOME directory /u02/oracle/test/9.2.0.5
[/u01/oracle/prod/9.2.0.5]:
Target system utl_file accessible directories list /usr/tmp/TEST
[/usr/tmp/PROD]:
Number of DATA_TOP's on the target system [1]: 1
Target system DATA_TOP 1 [/u04/oradata/prod]: /u04/oradata/test
Do you want to preserve the Display set to N
oraproddb3:1.0 (y/n) [y] ?:
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.

File ref: 41596848.doc Page 8


Company Confidential
41596848.doc Doc ref: 300136301/PS/SVR/001

a. Problem -You may receive create controlfile error, but checking alert log it
has been
created successfully.
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 errors
cd /u02/oracle/test/9.2.0.5/admin/TEST_Oradevdb1/bdump
tail -1000 alert_TEST1.log
Any ‘ORA-‘-type errors need further investigation.

b. Access is possible to the database through SQLPLUS


cd /u02/oracle/test/9.2.0.5
. ./TEST1_oradevdb1
sqlplus apps/<apps password>

c. Change sqlplus prompt from PROD to TEST


cd $ORACLE_HOME/sqlplus/admin
vi 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 files


select 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/dbs
vi $ORACLE_HOME/dbs/initTEST.ora
Change O7_DICTIONARY_ACCESSIBILITY from TRUE to FALSE
Ensure db_cache_size is set to 600M
Remove 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_or
adevdb1,/usr/tmp
Change to:-
utl_file_dir
=/usr/tmp/TEST,/u02/oracle/test/9.2.0.5/appsutil/outbound/TEST_oradevdb
1,/usr/tmp

File ref: 41596848.doc Page 9


Company Confidential
41596848.doc Doc ref: 300136301/PS/SVR/001

NB:- The instance will need to be bounced for these changes to take effect.
sqlplus
/ as sysdba
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>
declare
cursor c1 is
select job from all_jobs where what like '%EUL5%';
begin
for i in c1 loop
dbms_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.

File ref: 41596848.doc Page 10


Company Confidential
41596848.doc Doc ref: 300136301/PS/SVR/001

.2.3.2 Configure target application tier – oradevapps1

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/iAS
rm 6iserver
ln -s /u02/oracle/test/ora/8.0.6 6iserver
cd /u02/oracle/test/appl/ar/11.5.0/reports/NL
rm ARXSGPO.rdf ARDLP.rdf
ln -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.r
df ARXSGPO.rdf
cd /u02/oracle/test/appl/ar/11.5.0/reports/US
rm ARXSGPO.rdf ARDLP.rdf
ln -s
/u02/oracle/test/appl/ar/11.5.0/reports/US/XXDOMI_EU_ARXSGPO.r
df ARXSGPO.rdf
ln -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/D
rm ARXSGPO.rdf ARDLP.rdf
ln -s
/u02/oracle/test/appl/ar/11.5.0/reports/D/XXDOMI_EU_ARXSGPO.rdf
ARXSGPO.rdf
ln -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/E
rm ARXSGPO.rdf ARDLP.rdf
ln -s
/u02/oracle/test/appl/ar/11.5.0/reports/E/XXDOMI_EU_ARXSGPO.rdf
ARXSGPO.rdf
ln -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/F
rm ARXSGPO.rdf ARDLP.rdf
ln -s
/u02/oracle/test/appl/ar/11.5.0/reports/F/XXDOMI_EU_ARXSGPO.rdf
ARXSGPO.rdf
ln -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/bin
rm XXDOMI_SF_ACCTEXTRACT XXDOMI_SF_ACCTUPLOAD
XXDOMI_SF_DATACONV XXDOMI_SF_DATACONV
XXDOMI_SF_QOTEXTRACT
ln -s /u02/oracle/test /appl/fnd/11.5.0/bin/fndcpesr
XXDOMI_SF_ACCTEXTRACT
ln -s /u02/oracle/test/ appl/fnd/11.5.0/bin/fndcpesr
XXDOMI_SF_ACCTUPLOAD

File ref: 41596848.doc Page 11


Company Confidential
41596848.doc Doc ref: 300136301/PS/SVR/001

ln -s /u02/oracle/test /appl/fnd/11.5.0/bin/fndcpesr
XXDOMI_SF_DATACONV
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 N
target node (y/n) [n] ?:
Target system database SID [PROD]: TEST
Target system database server node oradevdb1
[oraproddb3]:
Target system database domain name <>
[dps.local]:
Does the target system have more than one Y
application tier server node (y/n) [y] ?:
Does the target system application tier utilize N
multiple domain names (y/n) [n] ?:
Target system concurrent processing node oradevdb1
[oraproddb3]:
Target system administration node oradevdb1
[oraproddb3]:
Target system forms server node oradevapps1
[oraprodapps5]:
Target system web server node oradevapps1
[oraprodapps5]:
Is the target system APPL_TOP divided into N
multiple mount points (y/n) [n] ?:
Target system APPL_TOP mount point /u02/oracle/test/appl
[/u02/oracle/prod/appl]:
Target system COMMON_TOP directory /u02/oracle/test/comn
[/u01/oracle/prod/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/iA
S
Do you want to preserve the Display set to N
oraprodapps5:1.0 (y/n) [y] ?:
Target system Display [orauatapps1:0.0]: oradevapps1:1.0
Location of the JDK on the target system /
[/usr/java/j2sdk1.4.2_12]: usr/java/j2sdk1.4.2_1
2
Do you want to preserve the port values from N
the source system on the target system (y/n)
[y] ?:
Enter the port pool number [0-99]: 2

Checking the port pool 2


done: Port Pool 2 is free
Web Listener port is 8002
Complete port information available at
/u02/oracle/test/appl/admin/out/TEST_oradevapps1/p
ortpool.lst
Database Connection on Port 1522: Successful
Target system proxy hostname oradevapps1.dps.loca
[oraprodapps5.dps.local]: l
Target system proxy port [80]: <>

File ref: 41596848.doc Page 12


Company Confidential
41596848.doc Doc ref: 300136301/PS/SVR/001

Parameter Value

UTL_FILE_DIR on database tier consists of the Choose number


following directories. for /usr/tmp/TEST,
should be
1. /usr/tmp
2. /usr/tmp/TEST
3.
/u02/oracle/test/9.2.0.5/appsutil/outbound/TEST_ora
devdb1 2
4. /usr/tmp /usr/tmp/TEST
Choose a value which will be set as APPLPTMP
value on the target node [1]:

5. Check the log file for errors, location:-


/
u02/oracle/uat/appl/admin/UAT_orauatapps1/log/ApplyAppsTier_DDMMHH
MI.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 failed


Raised by oracle.apps.ad.clone.ApplyApplTop

Solution:-
Login as oratest on oradevdb1 and re-run autoconfig
cd $ORACLE_HOME/appsutil/scripts/TEST_oradevdb1
./ adautocfg.sh
enter 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/admin
cp –p PROD_oraprodapps5.xml TEST_oradevapps1.xml
Edit this file and nsure you change all PROD related entries to UAT.
i.e.
1st change oraprodapps to oradevapps
2nd oraproddb to oradevdb
3rd oraprod to oratest
4th applprod to appltest
5th PROD to TEST
6th prod to test

File ref: 41596848.doc Page 13


Company Confidential
41596848.doc Doc ref: 300136301/PS/SVR/001

7th u01 to u02


8th 1521 to 1523
9th 8000 to 8002
etc – change remaining ports
cd /u02/oracle/test/comn/clone/bin
perl adcfgclone appstier
/u02/oracle/test/appl/admin/TEST_oradevapps1.xml
Seeing 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 complete


Check the log file for errors
(/u02/oracle/uat/appl/admin/UAT_orauatapps1/log/ApplyAppsTier_DDMMHH
MI.log )
a. Log out and back in again, shutdown the application
cdapps
./adstpall.sh stop apps/<apps_pwd>
c. Change sqlplus prompt from PROD to TEST
cd $ORACLE_HOME/sqlplus/admin
vi glogin.sql
change PROD to TEST, and save file.
Change line:-
set sqlprompt "PROD> "
To:-
set sqlprompt "TEST> "

d. Check access is possible to the database through SQLPLUS


sqlplus apps/<apps password>@TEST

e. Backup the following files:-


cd $APPL_TOP/admin
cp -p TEST_oradevapps1.xml TEST_oradevapps1.xml.bkp
cd $TNS_ADMIN
cp -p listener.ora listener.ora.bkp
cp -p tnsnames.ora tnsnames.ora.bkp
cp -p TEST_oradevapps1.xml TEST_oradevapps1.xml.preLB

File ref: 41596848.doc Page 14


Company Confidential
41596848.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/AppsLog
in</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_imapho <hostname oa_var="s_javamailer_imaphost">dps-
st exchange-uk</hostname>
s_javamailer_imapdo <domain oa_var="s_wfdomain">dps.local</domain>
mainname
s_javamailer_reply_to <username
oa_var="s_javamailer_reply_to">[email protected]</us
ername>
s_javamailer_imap_us <username
er 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: 2400
Test Ports: 2410,2420,2430,3410,3420,3430
For DEVY or dEVX Clones:-
DEVY Dispatcher Port: 2600
DEVY Ports: 2610,2620,2630,6310,3620,3630
DEVX Dispatcher Port:- 2500
DEVX Ports:- 2510,2520,2530,3510,3520,3530

File ref: 41596848.doc Page 15


Company Confidential
41596848.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</m
waPortNo>
s_mwaTelnetPortNo <mwaTelnetPortNo oa_var="s_mwaTelnetPortNo"
oa_type="PORT">2410;2420;2430;3410;3420;3430</m
waTelnetPortNo>
s_mwaDispatcherPor <mwaDispatcherPort oa_var="s_mwaDispatcherPort"
t oa_type="PORT">2400</mwaDispatcherPort>
s_mwaActivateLOVBy <mwaActivateLOVByEnter
Enter oa_var="s_mwaActivateLOVByEnter">TRUE</mwaActiv
ateLOVByEnter>

h. Run autconfig on oradevapps1 as appltest, , to ensure there are no


errors with any of the changes made above.
cdapps
./adautocfg.sh
Enter <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/TEST
pwd
rm -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/bin
echo $ORACLE_HOME
echo $IAS_ORACLE_HOME
echo $CONTEXT_FILE

perl -I $AU_TOP/perl txkSOHM.pl


Parameter Value

Absolute path of Application's Context /u02/oracle/test/appl/admin/TEST_oradevapps1.xml


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

a. Once the above process is complete


Check the log file for errors (see:-
/u02/oracle/test/comn/admin/log/TEST_oradevtapps1/txkSetSOHM_ac.log
Log 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
appltest user:-

File ref: 41596848.doc Page 16


Company Confidential
41596848.doc Doc ref: 300136301/PS/SVR/001

cdapps
perl adpreclone.pl appsTier
Check 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_FILE
echo $AD_TOP/bin
echo $FND_TOP/patch/115/bin
echo $AU_TOP/perl
echo $ORACLE_HOME
echo $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/TEST
pwd
rm -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 N


target node (y/n) [n] ?
Do you want to add Admin Server node (y/n) Y
[y]
Do you want to add Concurrent Processing Y
Server node (y/n) [y] ?
Do you want to add Forms Server node (y/n) N
[y] ?
Do you want to add Web Server node (y/n) N
[y] ?
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 N
oradevapps1:1.0 (y/n) [y] ?
Target system Display [oradevdb1:0.0] oradevdb1:1.0
Location of the JDK on the target system /usr/java/j2sdk1.4.2_12
[/usr/java/j2sdk1.4.2_12]

File ref: 41596848.doc Page 17


Company Confidential
41596848.doc Doc ref: 300136301/PS/SVR/001

Parameter Value

Do you want the middle-tier services on the Y


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.
If you see this
Clone Context uses the same port pool mechanism
as the Rapid Install. message, enter port
Once you choose a port pool, Clone Context will pool as instructed
validate the port availability.

Enter the port pool to be used for the target


system middle-tier services [0-99]:
2
Enter 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 1 /usr/tmp/TEST
following directories.

Once the above process is complete


Possible 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 1522
Enter APPS Password [APPS]:mem0ry1
RC-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/admi
n/TEST_oradevdb1.xml
Type of Instance [primary/secondary] secondary
Absolute 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/TEST
Oracle 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 set
cp –p $CONTEXT_FILE $APPL_TOP/admin/TEST_oradevdb1.xml.bkp
vi $CONTEXT_FILE

File ref: 41596848.doc Page 18


Company Confidential
41596848.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_imapdomainn <domain
ame 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]
al</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:/us
r/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/or
acle/test/appl/fnd/11.5.0/bin:/u02/oracle/
test/appl/ad/11.5.0/bin:/u02/oracle/test/c
omn/util/jre/1.1.8/bin:/u02/oracle/test/co
mn/util/unzip/unzip/unzip5.50::/u02/oracl
e/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/Acr
obat5/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_ADFORMSDE
V>
s_isAdConcDev <TIER_ADNODEDEV
oa_var="s_isAdConcDev">YES</TIER_ADNODEDEV>
s_isAdWebDev <TIER_ADWEBDEV
oa_var="s_isAdWebDev">YES</TIER_ADWEBDEV>

File ref: 41596848.doc Page 19


Company Confidential
41596848.doc Doc ref: 300136301/PS/SVR/001

d. Check Fnd Nodes are setup Correctly


sqlplus apps/<apps_password>
select node_name, node_mode, support_cp,
support_web, support_admin, support_forms
from FND_NODES;
NODE_NAME NSSSS
------------------------------ - - - - -
ORADEVAPPS1 ONYNY
ORADEVDB1 OYNYN
AUTHENTICATION ONNNN

e. Change sqlplus prompt from PROD to TEST


cd $ORACLE_HOME/sqlplus/admin
vi glogin.sql
change PROD to TEST, and save file.

f. Check access is possible to the database through SQLPLUS


sqlplus apps/<apps password>

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


chmod -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 appltest
cdapps
./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 appltest
cdapps
./ 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/AppsLogin
http:// oradevdb1.dps.local:8002/servlets/weboam/oam/oamLogin

3. From with the System Administration responsibility, open the Diagnostics


menu and check the following tests succeed:

• PLSQL Ping
• JSP Ping
• Servlet Ping

File ref: 41596848.doc Page 20


Company Confidential
41596848.doc Doc ref: 300136301/PS/SVR/001

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 TEST
RRA:Service Prefix (e.g. new value = ‘FNDFS_TEST_’). This needs to be
done before
the Concurrent Managers can be started up.
Java Color Scheme: titanium
JTFB_GRAPH_COLOR_SERIES_START to 008888 (was 009999)
JTFB_GRAPH_GRID_COLOR to CCCC88 (was CCCC99)
ICX:Session Timeout Change to 240
IBE: iStore Non Secure URL Change to:-
http://oradevapps1.dps.local:8002/OA_HTML
IBE: 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_name2
From 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 = null
where node_name2 in ('ORAPRODDB3','ORAPRODDB4');

You will also need to run the cmclean.sql script


cd /home/appltest
sqlplus apps/<apps_password> @cmclean.sql
Enter commit

b. Through the application, Change any manager title / names with the
server name
included as part of the title from oraproddb3 to oradevdb1
Navigate to System Administrator -> Concurrent -> Manager -> Define
Query all managers and change the title of any managers with oraproddb3
to
oradevdb1.

File ref: 41596848.doc Page 21


Company Confidential
41596848.doc Doc ref: 300136301/PS/SVR/001

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%ORADEVDB1
Choose 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 press
Activate.

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 appltest
cdapps
./adstpall.sh stop apps/<apps_password>
Run autconfig
./adautocfg.sh
Enter <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 oradevapps1


cd $APPL_TOP
rm –rf *PROD*env
vi 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.
#

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

Create the same file for oradevapps1


cp –p customTEST_oradevdb1.env customTEST_oradevapps1.env

File ref: 41596848.doc Page 22


Company Confidential
41596848.doc Doc ref: 300136301/PS/SVR/001

4. Change custom created directories:-


sqlplus apps/<apps_pwd>

select distinct OWNER||' '||DIRECTORY_NAME||' '||DIRECTORY_PATH


from dba_directories

OWNER||''||DIRECTORY_NAME||''||DIRECTORY_PATH
--------------------------------------------------------------------------------
SYS APPS_DATA_FILE_DIR /u01/oracle/test/9.2.0.5/appsutil/outbound/TEST1_oratestdb1
SYS ECX_UTL_LOG_DIR_OBJ /usr/tmp
SYS ECX_UTL_XSLT_DIR_OBJ /usr/tmp
SYS EXELOUT /u02/oracle/prod/appl/xxdomi/11.5.0/exel
SYS GSKOUT /u02/oracle/prod/appl/xxdomi/11.5.0/gsk
SYS MECTEC /u02/oracle/prod/appl/xxdomi/11.5.0/mectec
SYS RMOUT /u02/oracle/prod/appl/xxdomi/11.5.0/royalmail
SYS TARGETOUT /u02/oracle/prod/appl/xxdomi/11.5.0/targetout
SYS XXDOMIMWA /u02/oracle/test/appl/11.5.0/mwa_labels
SYS XXDOMISQL /u02/oracle/prod/appl/xxdomi/11.5.0/sql
SYS 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_PATH


from dba_directories

OWNER||''||DIRECTORY_NAME||''||DIRECTORY_PATH
--------------------------------------------------------------------------------
SYS APPS_DATA_FILE_DIR
/u02/oracle/test/9.2.0.5/appsutil/outbound/TEST_oradevdb1
SYS ECX_UTL_LOG_DIR_OBJ /usr/tmp
SYS ECX_UTL_XSLT_DIR_OBJ /usr/tmp
SYS EXELOUT /u02/oracle/test/appl/xxdomi/11.5.0/exel
SYS GSKOUT /u02/oracle/test/appl/xxdomi/11.5.0/gsk
SYS MECTEC /u02/oracle/test/appl/xxdomi/11.5.0/mectec
SYS RMOUT /u02/oracle/test/appl/xxdomi/11.5.0/royalmail
SYS TARGETOUT /u02/oracle/test/appl/xxdomi/11.5.0/targetout
SYS XXDOMIMWA /u02/oracle/test/appl/xxdomi/11.5.0/mwa_labels
SYS XXDOMISQL /u02/oracle/test/appl/xxdomi/11.5.0/sql
SYS 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;
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;

File ref: 41596848.doc Page 23


Company Confidential
41596848.doc Doc ref: 300136301/PS/SVR/001

2.4.3 Edit Workflow Java Notification Mailer


Navigate to OAM -> site Map -.> notification Mailer
Change 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 oradevapps1


Bounce 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/apps
scp -rp
applprod@oraprodapps4:/u01/oracle/prod/comn/java/oracle/apps/xxibe .
cd $COMMON_TOP/java/oracle/apps/media/xxdom
scp -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/html
scp -p
applprod@oraprodapps4:/u01/oracle/prod/comn/html/xxibe* .

5. Clear Apache Cache – in the directories that exist


cd $IAS_ORACLE_HOME/Apache/modplsql/cache/cookie
pwd
rm -rf *
cd $IAS_ORACLE_HOME/Apache/modplsql/cache/plsql
pwd
rm -rf *
cd $COMMON_TOP/_pages/_oa__html
pwd
rm -rf *
cd $COMMON_TOP/_pages/_oa__java
pwd
rm -rf *

2.4.5 Configure Mobile Applications


Original source Project Unite /customization /mobile apps/Mobile applications
Setup.doc
Note:- If you run autoconfig then give below files will change in mobile
application..
TEST Dispatcher Port: 2400
Test 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
DEVY Ports: 2610,2620,2630,6310,3620,3630
DEVX Dispatcher Port:- 2500
DEVX Ports:- 2510,2520,2530,3510,3520,3530

Bounce apache after making the modifications.

File ref: 41596848.doc Page 24


Company Confidential
41596848.doc Doc ref: 300136301/PS/SVR/001

Edit $MWA_TOP/secure/mwa.cfg
mwa.DbcFolder=/u02/oracle/test/appl/fnd/11.5.0/secure
mwa.DbcFile=oradevdb1_test
mwa.logdir=/u02/oracle/test/comn/admin/log/TEST_oradevapps1
mwa.TelnetPortNumber=2310,2320,2330,3310,3320,3330
mwa.Dispatcher=oradevapps1.dps.local:2400
mwa.ActivateLOVByEnter=TRUE
mwa.TelnetServer=oradevapps1.dps.local:2310;2320;2330;3310;3320;3330
mwa.WapHost = oradevapps1.dps.local
mwa.WapPort = 8001
cd $MWA_TOP/secure
Copy the files device.cfg deviceIP.ini mwa.cfg to
$MWA_TOP/admin/template/custom
cp -p device.cfg $MWA_TOP/admin/template/custom
cp –p deviceIP.ini $MWA_TOP/admin/template/custom
cp -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 test
Change all port numbers to the relevant port numbers for TEST
Change 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 start


rm /tmp/devy.*
touch /tmp/devy.1

Query edit xml file Karen to Add Details if required.

Configure Labels Printing on Mobile Apps


Please 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_TOP
drwxrwxrwx 4 appltest dba 4096 May 30 15:23 mwa_labels

2.4.2 Configure iPayment for Oracle


Check 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

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

File ref: 41596848.doc Page 25


Company Confidential
41596848.doc Doc ref: 300136301/PS/SVR/001

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

# Begin customizations
wrapper.bin.parameters=-DDIAGNOSTIC_SECURITY_SWITCH=OFF
wrapper.classpath=/u02/oracle/test/comn/java/support_addon.zip
wrapper.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=TRUE
wrapper.bin.parameters=-DAFLOG_MODULE=iby%
wrapper.bin.parameters=-DAFLOG_LEVEL=STATEMENT
wrapper.bin.parameters=-DAFLOG_FILENAME=/usr/tmp/PROD/iby.log
#Begin Modification for VeriSign BEP Servlet Installation
wrapper.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.jar
wrapper.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/ibye
xtend
wrapper.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_vps
servlet.oramipp_vps.code=com.verisign.iPayment.bizcomp.vpsProcess
servlet.oramipp_vps.initArgs=properties=/u02/oracle/test/ora/8.0.6/ve
risign/vpsipayment.properties,debug=true,logfile=/u02/oracle/test/app
l/iby/11.5.0/log/ibyvpsserv.log,xmlfile=/u02/oracle/test/ora/8.0.6/ve
risign/param.xml

# End customizations

2.4.6 Remove References to the Source Environment


A 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:

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/scripts

File ref: 41596848.doc Page 26


Company Confidential
41596848.doc Doc ref: 300136301/PS/SVR/001

rm –rf PROD_*
cd $OAD_TOP/admin/log
rm –rf PROD_*
cd $OAD_TOP/admin/out
rm –rf PROD_*
cd $OAD_TOP/admin/install
rm –rf PROD_*
cd $OAD_TOP/clone/context/apps
rm –rf PROD_*.xml
cd $OAD_TOP/portal
rm –rf PROD*
cd $OAD_TOP/rgf
rm –rf PROD_*
cd $OAD_TOP/temp
rm –rf PROD_*
cd $ORACLE_HOME
rm –rf PROD*env*
cd $APPL_TOP
rm –rf PROD*env*
cd $APPL_TOP/admin/out
rm –rf PROD_*
cd $APPL_TOP/admin
rm –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/scripts
rm –rf PROD_*
cd $OAD_TOP/admin/log
rm –rf PROD_*
cd $OAD_TOP/admin/out
rm –rf PROD_*
cd $OAD_TOP/admin/install
rm –rf PROD_*
cd $OAD_TOP/clone/context/apps
rm –rf PROD_*.xml
cd $OAD_TOP/portal
rm –rf PROD*
cd $OAD_TOP/rgf
rm –rf PROD_*
cd $OAD_TOP/temp
rm –rf PROD_*
cd $ORACLE_HOME/reports60/server
rm –rf REP60_PROD*
cd $ORACLE_HOME/network/admin
rm –rf PROD_*
cd $ORACLE_HOME
rm –rf PROD*env*
cd $APPL_TOP
rm –rf *PROD*env*
cd $APPL_TOP/admin/out
rm –rf PROD_*
cd $APPL_TOP/admin
rm –rf PROD_*

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


file is sourced.
6. Remove the following directories:

File ref: 41596848.doc Page 27


Company Confidential
41596848.doc Doc ref: 300136301/PS/SVR/001

cd $ORACLE_HOME
rm –rf *PROD*env*
cd $ORACLE_HOME/dbs
rm –rf initPROD*ora*
cd $ORACLE_HOME/admin
rm –rf PROD*
cd $ORACLE_HOME/appsutil/out/
rm –rf PROD*
cd $ORACLE_HOME/appsutil/log
rm –rf PROD*
cd $ORACLE_HOME/appsutil/scripts
rm –rf PROD*
cd $ORACLE_HOME/appsutil/template/dbs
rm –rf PROD*
cd $ORACLE_HOME/appsutil
rm –rf PROD*xml*
cd $ORACLE_HOME/appsutil/install
rm -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/admin
cd log
rm –fr PROD_oraproddb1
rm –fr PROD_oraproddb2
cd ../out
rm –fr PROD_oraproddb1
rm –fr PROD_oraproddb2

2.4.7 Reset Database Passwords


Reset to the current passwords in this environment – passwords themselves to be
provided
by Domino separately.
1. First shutdown oracle applications, login to opradevdb1 as appltest
cdapps
./adstpall.sh apps/<apps_password>
Repeat on oradevapps1

Login to sqlplus as system user


alter 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>;
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>;

File ref: 41596848.doc Page 28


Company Confidential
41596848.doc Doc ref: 300136301/PS/SVR/001

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 /tmp
b 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_password
connect 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: 41596848.doc Page 29


Company Confidential

You might also like