You are on page 1of 34

Take preclone on non production instance and record the following things .

1)listener port (Do tnsping) like below before scraping the instance.
2)no of data tops

orapgzs1@tsgsd5901 $ tnsping erpdev

TNS Ping Utility for Solaris: Version 11.2.0.2.0 - Production on 16-JUL-2013 03:41:53

Copyright (c) 1997, 2010, Oracle. All rights reserved.

Used parameter files:


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST=erpdev)(PORT=1596))
(CONNECT_DATA=(SID=erpdev)))
OK (0 msec)
orapgzs1@tsgsd5901 $

How to decide the port pool number?


1521
75
====
1596

1596-1521  75 is the port pool number

2)Compare DATA TOP’S.

Prod (erppgzp1)
==
orapgzp1@tsgsp5008[/export/home/orapgzp1]: df -h /erppgzp1/dbdata/data*
Filesystem size used avail capacity Mounted on
/dev/vx/dsk/erppgzp1dbdg/data1
202G 195G 6.5G 97% /erppgzp1/dbdata/data1
orapgzp1@tsgsp5008[/export/home/orapgzp1]:

non prod (erpdev)


==
orapgzs1@tsgsd5901 $ df -h /erpdev/dbdata/data*
Filesystem size used avail capacity Mounted on
/dev/vx/dsk/erpdevdbdg/data1
201G 195G 5.8G 98% /erpdev/dbdata/data1
orapgzs1@tsgsd5901 $

195G data will fit into the tatal size of the non production data mount point.In the same way
Compare erpapp and oracle mount points and proceed ahead.
Run adpreclone on source system i.e is prod
===========================================

DT SERVER i.e is erppgzp1.tsg.ge.com with oracle(user)

cd $ORACLE_HOME/appsutil/scripts/$CONTEXT_NAME
perl adpreclone.pl dbTier  it will prompt for apps password as it requires a database connection
to validate schema.
1)Create $ORACLE_HOME/appsutil/clone Directory
2)Obtain database information
3)Creates adcrdbclone.sql

What it does?
Adpreclone.pl adclone.plStageDBTier.java
StageDtabase.java
StageDBTechStack.java

DT SERVER i.e is erppgzp1.tsg.ge.com with applmgr (user)

cd $INST_TOP/admin/scripts
perl adpreclone.pl appTier  it will not prompt for apps password as it doesn’t require db a
connection.

What it does?
Adpreclone.pl adclone.plStageAppsTier.java
StageApplTop.java
StageAppsTechStack.java

Take TAR binarires of production on NFS Share mount point


================================================================
nohup tar -cvf - 11.2.0 | gzip -c > /backup/rman_1060/erppgzp1/Bin_24oct12/1120.tar.gz &

nohup tar -cvf - appl |gzip -c > /backup/rman_1060/orpogpp1/bin_25feb13/appl.tar.gz &

nohup tar -cvf - 10.1.2 |gzip -c > /backup/rman_1060/orpogpp1/bin_25feb13/1012.tar.gz &

nohup tar -cvf - comn |gzip -c > /backup/rman_1060/orpogpp1/bin_25feb13/comn.tar.gz &

nohup tar -cvf - 10.1.3 |gzip -c > /backup/rman_1060/orpogpp1/bin_25feb13/1013.tar.gz &

Bring down WEB/FORMS services of non production instance


========================================================
cd $ADMIN_SCRITPS_HOME

adstpall.sh apps/******

Make sure no process are running at os level.


Bring down CM services of non production instance
================================================
cd $ADMIN_SCRITPS_HOME
adstpall.sh apps/******
Make sure no process are running at os level.

Method 1)

Login to database as sysdba,


1)shutdown database (shutdown immediate)
2) startup restrict mount
3)drop database

SQL> startup restrict mount;


ORACLE instance started.

Total System Global Area 2021117952 bytes


Fixed Size 2229704 bytes
Variable Size 1728055864 bytes
Database Buffers 268435456 bytes
Redo Buffers 22396928 bytes
Database mounted.
SQL> select name from v$database;

NAME
---------
ERPDEV

SQL> drop database;


Database dropped.
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
SQL>

Method 2) It is not recommended .


1)Stop all middletier services / application service’s.
2)stop database listener and shutdown database (shutdown immediate) .

Remove the dbf file from NOn prod instance


==============================================
cd /instance name/dbdata/data*
rm *.dbf

Remove the follwoing binaries directoires


===================================
Remove dirctoreis with applmger user
rm -rf 10.1.2 10.1.3 appl comn

Remove dirctoreis with oracle user


rm -rf 11.2.0

Do untar on non produtcion i.e erpdev


===============================
nohup gunzip -c /backup/rman_1060/erppgzp1/15Jul13/bin/1120_15Jul.tar.gz| tar -xvf - &

nohup gunzip -c /backup/rman_1060/erppgzp1/15Jul13/bin/comn_15Jul.tar.gz | tar -xvf - &

nohup gunzip -c /backup/rman_1060/erppgzp1/15Jul13/bin/1012_15Jul.tar.gz | tar -xvf - &

nohup gunzip -c /backup/rman_1060/erppgzp1/15Jul13/bin/appl_15Jul.tar.gz | tar -xvf - &

nohup gunzip -c /backup/rman_1060/erppgzp1/15Jul13/bin/1013_15Jul.tar.gz | tar -xvf - &

Before configuring 11.2.0 Please add the entries in oraInst.loc file.


1)Sun solaris /var/opt/oracle/oraInst.loc file location.
2)Redhat linux /etc/oratab/oraInst.loc file location.

Note*:- Perl adcfgclone dbTechStack if failed with below error then export right perl path.

oraogpr2@tsgsd3901 $ perl adcfgclone.pl dbTechStack

Copyright (c) 2002 Oracle Corporation


Redwood Shores, California, USA

Oracle Applications Rapid Clone

Version 12.0.0

adcfgclone Version 120.31.12010000.8

Enter the APPS password :

Perl lib version (v5.8.8) doesn't match executable version (v5.10.0) at /usr/lib64/perl5/5.8.8/x86_64-
linux-thread-multi/Config.pm line 46.
Compilation failed in require at /erpgnet2/oracle/11.2.0/appsutil/clone/ouicli.pl line 35.
BEGIN failed--compilation aborted at /erpgnet2/oracle/11.2.0/appsutil/clone/ouicli.pl line 35.

Solution:
PERL5LIB=/erpgnet2/oracle/11.2.0/perl/lib/5.10.0:/erpgnet2/oracle/11.2.0/perl/lib/site_perl/5.10.0:/er
pgnet2/oracle/11.2.0/appsutil/perl
export PERL5LIB
PATH=$PERL5LIB:$PATH
export PATH  after exporting above parameters run perl adcfgclone.pl dbTechStack
it will get succeeded.

Configuring 11.2.0 HOME


=====================
Perl adcfgclone.pl dbTechStack will do below things.
1)Create context file
2)Register ORACLE_HOME
3)Relink ORACLE_HOME
4)Configure ORACLE_HOME
5)Start SQL*NET listener

Perl adcfgclone.pl dbTier will do below things.


1)Create context file
2)Register ORACLE_HOME
3)Relink ORACLE_HOME
4)Configure ORACLE_HOME
5)Recreate controlfile
6)Configure database
7)Start SQL*NET listener

orapgzs1@tsgsd5901 $ perl adcfgclone.pl dbTechStack

Copyright (c) 2002 Oracle Corporation


Redwood Shores, California, USA

Oracle Applications Rapid Clone

Version 12.0.0

adcfgclone Version 120.31.12010000.8

Enter the APPS password :

Running:
/erpdev/oracle/11.2.0/appsutil/clone/bin/../jre/bin/java -Xmx600M -cp
/erpdev/oracle/11.2.0/appsutil/clone/jlib/java:/erpdev/oracle/11.2.0/appsutil/clone/jlib/xmlparserv2.ja
r:/erpdev/oracle/11.2.0/appsutil/clone/jlib/ojdbc5.jar oracle.apps.ad.context.CloneContext -e
/erpdev/oracle/11.2.0/appsutil/clone/bin/../context/db/CTXORIG.xml -validate -pairsfile
/tmp/adpairsfile_18015.lst -stage /erpdev/oracle/11.2.0/appsutil/clone -dbTechStack 2>
/tmp/adcfgclone_18015.err; echo $? > /tmp/adcfgclone_18015.res

Log file located at /erpdev/oracle/11.2.0/appsutil/clone/bin/CloneContext_1231061232.log

Provide the values required for creation of the new Database Context file.

Target System Hostname (virtual or normal) [tsgsd5901] : erpdev


Target Instance is RAC (y/n) [n] : n

Target System Database SID : erpdev

Target System Base Directory : /erpdev/oracle

Target System utl_file_dir Directory List : /erpdev/erpcsf/temp, /erpdev/erpapp/comn/temp, /usr/tmp

Number of DATA_TOP's on the Target System [4] : 1

Target System DATA_TOP Directory 1 : /erpdev/dbdata/data1

Target System RDBMS ORACLE_HOME Directory [/erpdev/oracle/db/tech_st/11.2.0] :


/erpdev/oracle/11.2.0

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

Target System Display [erpdev:0.0] :

Do you want the the target system to have the same port values as the source system (y/n) [y] ? : n

Target System Port Pool [0-99] : 75


Report file located at /erpdev/oracle/11.2.0/appsutil/temp/portpool.lst
Complete port information available at /erpdev/oracle/11.2.0/appsutil/temp/portpool.lst

Creating the new Database Context file from :


/erpdev/oracle/11.2.0/appsutil/template/adxdbctx.tmp

The new database context file has been created :


/erpdev/oracle/11.2.0/appsutil/clone/context/db/erpdev_erpdev.xml

Log file located at /erpdev/oracle/11.2.0/appsutil/clone/bin/CloneContext_1231061232.log


Check Clone Context logfile /erpdev/oracle/11.2.0/appsutil/clone/bin/CloneContext_1231061232.log
for details.

Running Rapid Clone with command:


perl /erpdev/oracle/11.2.0/appsutil/clone/bin/adclone.pl
java=/erpdev/oracle/11.2.0/appsutil/clone/bin/../jre mode=apply
stage=/erpdev/oracle/11.2.0/appsutil/clone component=dbTechStack method=CUSTOM
dbctxtg=/erpdev/oracle/11.2.0/appsutil/clone/context/db/erpdev_erpdev.xml showProgress
contextValidated=true
Running:
perl /erpdev/oracle/11.2.0/appsutil/clone/bin/adclone.pl
java=/erpdev/oracle/11.2.0/appsutil/clone/bin/../jre mode=apply
stage=/erpdev/oracle/11.2.0/appsutil/clone component=dbTechStack method=CUSTOM
dbctxtg=/erpdev/oracle/11.2.0/appsutil/clone/context/db/erpdev_erpdev.xml showProgress
contextValidated=true
APPS Password :
Beginning rdbms home Apply - Mon Dec 31 06:13:46 2012

/erpdev/oracle/11.2.0/appsutil/clone/bin/../jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=true -


Doracle.installer.oui_loc=/erpdev/oracle/11.2.0/oui -classpath
/erpdev/oracle/11.2.0/appsutil/clone/jlib/xmlparserv2.jar:/erpdev/oracle/11.2.0/appsutil/clone/jlib/ojd
bc5.jar:/erpdev/oracle/11.2.0/appsutil/clone/jlib/java:/erpdev/oracle/11.2.0/appsutil/clone/jlib/oui/Or
aInstaller.jar:/erpdev/oracle/11.2.0/appsutil/clone/jlib/oui/ewt3.jar:/erpdev/oracle/11.2.0/appsutil/clo
ne/jlib/oui/share.jar:/erpdev/oracle/11.2.0/appsutil/clone/jlib/oui/srvm.jar:/erpdev/oracle/11.2.0/apps
util/clone/jlib/ojmisc.jar oracle.apps.ad.clone.ApplyDBTechStack -e
/erpdev/oracle/11.2.0/appsutil/clone/context/db/erpdev_erpdev.xml -stage
/erpdev/oracle/11.2.0/appsutil/clone -showProgress
APPS Password : Log file located at
/erpdev/oracle/11.2.0/appsutil/log/erpdev_erpdev/ApplyDBTechStack_12310613.log
\ 100% completed

Completed Apply...
Mon Dec 31 06:17:00 2012

Starting database listener for erpdev:


Running:
/erpdev/oracle/11.2.0/appsutil/scripts/erpdev_erpdev/addlnctl.sh start erpdev
Logfile: /erpdev/oracle/11.2.0/appsutil/log/erpdev_erpdev/addlnctl.txt

You are running addlnctl.sh version 120.1.12010000.4

Starting listener process erpdev ...

LSNRCTL for Solaris: Version 11.2.0.2.0 - Production on 31-DEC-2012 06:17:00

Copyright (c) 1991, 2010, Oracle. All rights reserved.

Starting /erpdev/oracle/11.2.0/bin/tnslsnr: please wait...

TNSLSNR for Solaris: Version 11.2.0.2.0 - Production


System parameter file is /erpdev/oracle/11.2.0/network/admin/erpdev_erpdev/listener.ora
Log messages written to
/erpdev/oracle/11.2.0/admin/erpdev_erpdev/diag/tnslsnr/tsgsd5901/erpdev/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=3.56.7.223)(PORT=1596)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=erpdev.tsg.ge.com)(PORT=1596)))
STATUS of the LISTENER
------------------------
Alias erpdev
Version TNSLSNR for Solaris: Version 11.2.0.2.0 - Production
Start Date 31-DEC-2012 06:17:01
Uptime 0 days 0 hr. 0 min. 2 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /erpdev/oracle/11.2.0/network/admin/erpdev_erpdev/listener.ora
Listener Log File
/erpdev/oracle/11.2.0/admin/erpdev_erpdev/diag/tnslsnr/tsgsd5901/erpdev/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=3.56.7.223)(PORT=1596)))
Services Summary...
Service "erpdev" has 1 instance(s).
Instance "erpdev", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully

addlnctl.sh: exiting with status 0

addlnctl.sh: check the logfile /erpdev/oracle/11.2.0/appsutil/log/erpdev_erpdev/addlnctl.txt for more


information ...

orapgzs1@tsgsd5901 $Mon Nov 12 13:51:38 EST 2012


oraogpr2@tsgsd3901 $

Once you configured the oracle home start database with the pfile in the nomunt stage
========================================================================
Make sure to add below parameters in pfile.

*.db_file_name_convert='/erppgzp1/dbdata/data1','/erpdev/dbdata/data1','/erppgzp1/dbdata/tem
p','/erpdev/dbdata/temp'
*.log_file_name_convert='/erppgzp1/dbdata/redo1','/erpdev/dbdata/redo1','/erppgzp1/dbdata/red
o2','/erpdev/dbdata/redo2'
*.diagnostic_dest='/erpdev/oracle/11.2.0/admin/erpdev_erpdev'
*.event='10298 trace name context forever, level 32'

SQL> startup nomount pfile=/orpogpr2/oracle/11.2.0/dbs/initorpogpr2.ora


ORACLE instance started.

Total System Global Area 3207790592 bytes


Fixed Size 2162600 bytes
Variable Size 2650800216 bytes
Database Buffers 536870912 bytes
Redo Buffers 17956864 bytes
SQL> select status from v$instance;

STATUS
------------------------------------
STARTED
Note: in nomount stage pfile is red sga is allocated and background process is created.

db recovery and its pre requisite’s


=======================================

1)You need Production system password


2)Give POINT IN TIME RECOVERY (PIT) buffer time at least to 15 to mins extra and Date format must be
DD-MON-YYYY and from production.
3)
Please add below entries in non production instance and ping it like below.
tnsping orpogpp2/atlrmnp1.

atlrmnp1=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (COMMUNITY = TCP) (PROTOCOL = TCP) (Host = atlrmnp1.energy.ge.com) (Port = 1525)))
(CONNECT_DATA = (SID = atlrmnp1)))

erppgzp1=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=erppgzp1.tsg.ge.com)(PORT=1522))
(CONNECT_DATA=
(SID=erppgzp1)
)
)

orapgzp1@tsgsp5008[/erppgzp1/oracle/11.2.0/scripts/rman/reports]: grep -i ==
rman_erppgzp15172.log
==== started on Sun Dec 30 22:56:34 EST 2012 ====
==== ended successfully on Sun Dec 30 23:21:20 EST 2012 ====
orapgzp1@tsgsp5008[/erppgzp1/oracle/11.2.0/scripts/rman/reports]:
NOTE:Fire duplicate command in VNC as it take long time to recovery .

export NLS_DATE_FORMAT='DD-MON-YYYY HH24:MI:SS'

rman log /orpogpr2/oracle/recovery.log By default rman writes output to screen but we are
sending the output to log file.

connect target sys/*****@erppgzp1  connect to production

connect catalog rmanrail/rmanrail007@atlrmnp1

connect auxiliary /

run {

ALLOCATE auxiliary CHANNEL ch00 TYPE DISK;


ALLOCATE auxiliary CHANNEL ch01 TYPE DISK;
ALLOCATE auxiliary CHANNEL ch02 TYPE DISK;
ALLOCATE auxiliary CHANNEL ch03 TYPE DISK;
ALLOCATE auxiliary CHANNEL ch04 TYPE DISK;
ALLOCATE auxiliary CHANNEL ch05 TYPE DISK;
ALLOCATE auxiliary CHANNEL ch06 TYPE DISK;
ALLOCATE auxiliary CHANNEL ch07 TYPE DISK;
ALLOCATE auxiliary CHANNEL ch08 TYPE DISK;
ALLOCATE auxiliary CHANNEL ch09 TYPE DISK;
ALLOCATE auxiliary CHANNEL ch10 TYPE DISK;
set until time '30-DEC-2012 23:35:00';
duplicate target database to erpdev;
RELEASE CHANNEL ch01;
RELEASE CHANNEL ch02;
RELEASE CHANNEL ch03;
RELEASE CHANNEL ch04;
RELEASE CHANNEL ch05;
RELEASE CHANNEL ch06;
RELEASE CHANNEL ch07;
RELEASE CHANNEL ch08;
RELEASE CHANNEL ch09;
RELEASE CHANNEL ch10;
}

Once recovery is completed perform below steps.

SQL>shutdown immediate

Note:Set sga according to business and comment below parameters in pfile and start the database with
pfile.

orapgzb1@tsgsd5901 $ grep -i db_file_name_convert initerpdev.ora


#db_file_name_convert='/erppgzp1/dbdata/data1','/erpdev/dbdata/data1','/erppgzp1/dbdata/temp','/
erpdev/dbdata/temp'
orapgzb1@tsgsd5901 $ grep -i log_file_name_convert initerpdev.ora
#log_file_name_convert='/erppgzp1/dbdata/redo1','/erpdev/dbdata/redo1','/erppgzp1/dbdata/redo2','
/erpdev/dbdata/redo2'

orapgzb1@tsgsd5901 $ pwd
/erpdev/oracle
orapgzb1@tsgsd5901 $

orapgzb1@tsgsd5901 $ grep -i db_unique_name initerpdev.ora


#db_unique_name=erpdev
orapgzb1@tsgsd5901 $

SQL> startup mount


ORACLE instance started.

Total System Global Area 3207790592 bytes


Fixed Size 2162600 bytes
Variable Size 2650800216 bytes
Database Buffers 536870912 bytes
Redo Buffers 17956864 bytes
Database mounted.

SQL> alter database noarchivelog;


Database altered.

SQL> alter database open;


Database altered.
SQL> archive log list
Database log mode No Archive Mode
Automatic archival Disabled
Archive destination /erpdev/dbdata/arch
Oldest online log sequence 1
Current log sequence 1

SQL> alter database open;


Database altered.

Conn apps/*****

SQL>exec fnd_conc_clone.setup_clean;

Run autoconfig so that it will registor node in fnd_nodes table.


============
orapgzb1@tsgsd5901 $ adautocfg.sh
Enter the APPS user password:
The log file for this session is located at:

/erpdev/oracle/11.2.0/appsutil/log/erpdev_erpdev/06201243/adconfig.log

AutoConfig is configuring the Database environment...

AutoConfig will consider the custom templates if present.


Using ORACLE_HOME location : /erpdev/oracle/11.2.0
Classpath
::/erpdev/oracle/11.2.0/jdbc/lib/ojdbc5.jar:/erpdev/oracle/11.2.0/appsutil/java/xmlparserv2.jar:/erpde
v/oracle/11.2.0/appsutil/java:/erpdev/oracle/11.2.0/jlib/netcfg.jar:/erpdev/oracle/11.2.0/jlib/ldapjclnt1
1.jar
Using Context file : /erpdev/oracle/11.2.0/appsutil/erpdev_erpdev.xml
Context Value Management will now update the Context file
Updating Context file...COMPLETED
Attempting upload of Context file and templates to database...COMPLETED

Updating rdbms version in Context file to db112


Updating rdbms type in Context file to 64 bits
Configuring templates from ORACLE_HOME ..
AutoConfig completed successfully.
orapgzb1@tsgsd5901 $

SQL> select file_name from dba_temp_files;

FILE_NAME
--------------------------------------------------------------------------------
/erpdev/dbdata/temp/temp02.dbf
/erpdev/dbdata/temp/temp01.dbf
/erpdev/dbdata/temp/temp03.dbf
/erpdev/dbdata/temp/temp04.dbf
/erpdev/dbdata/temp/temp05.dbf
/erpdev/dbdata/temp/temp06.dbf
/erpdev/dbdata/temp/temp07.dbf
/erpdev/dbdata/temp/temp08.dbf

8 rows selected.

SQL>

==============================
SQL> SELECT * FROM DATABASE_PROPERTIES where PROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';

PROPERTY_NAME
------------------------------
PROPERTY_VALUE
--------------------------------------------------------------------------------
DESCRIPTION
--------------------------------------------------------------------------------
DEFAULT_TEMP_TABLESPACE
TEMP
Name of default temporary tablespace.

Running adcfgclone.pl on application Tier

grep -v "#" /var/opt/oracle/oraInst.loc

inventory_loc=/erpdev/erpapp/inst/apps/erpdev_erpdev/admin/oraInventory
inst_group=dbaess82

- Create the oraInventory directory


=======================================

$ mkdir -p /erpdev/erpapp/inst/apps/erpdev_erpdev/admin/oraInventory

cd /erpdev/erpapp/10.1.2

vi oraInst.loc

-- remove all the entries in oraInst.loc and add the following:

inventory_loc=/erpdev/erpapp/10.1.2/oraInventory
inst_group=dbaess82

apppgzs1@tsgsd5901 $ grep -v "#" /erpdev/erpapp/10.1.2/oraInst.loc


inventory_loc=/erpdev/erpapp/10.1.2/oraInventory
inst_group=dbapgzs1
apppgzs1@tsgsd5901 $

In 10.1.3 Home
$ cd /erpdev/erpapp/10.1.3

$ vi oraInst.loc
-- remove all the entries in oraInst.loc and add the following:

inventory_loc=/erpdev/erpapp/10.1.3/oraInventory
inst_group=dbapgzs1

apppgzs1@tsgsd5901 $ grep -v "#" /erpdev/erpapp/10.1.3/oraInst.loc


inventory_loc=/erpdev/erpapp/10.1.3/oraInventory
inst_group=dbapgzs1

/erpdev/erpapp/comn/clone/bin
Note * :-- perl adcfgclone.pl appsTier will do below things.
1)Create context file
2)Register ORACLE_HOME
3)Relink ORACLE_HOME
4)Configure ORACLE_HOME
5)Create INST_TOP
6)Configure APPL_TOP
7)Start Apps Processses
apppgzs1@tsgsd5901 $ perl adcfgclone.pl appsTier

Copyright (c) 2002 Oracle Corporation


Redwood Shores, California, USA

Oracle Applications Rapid Clone


Version 12.0.0

adcfgclone Version 120.31.12010000.8

Enter the APPS password :

Running:
/erpdev/erpapp/comn/clone/bin/../jre/bin/java -Xmx600M -cp /erpdev/erpapp/co
p/comn/clone/jlib/xmlparserv2.jar:/erpdev/erpapp/comn/clone/jlib/ojdbc14.jar o -e
/erpdev/erpapp/comn/clone/bin/../context/apps/CTXORIG.xml -validate -pairs tage
/erpdev/erpapp/comn/clone 2> /tmp/adcfgclone_26636.err; echo $? > /tmp/a

Log file located at /erpdev/erpapp/comn/clone/bin/CloneContext_0716033746.log

Provide the values required for creation of the new APPL_TOP Context file.

Target System Hostname (virtual or normal) [tsgsd5901] : erpdev

Target System Database SID : erpdev

Target System Database Server Node [erpdev] : erpdev

Target System Database Domain Name [tsg.ge.com] : tsg.ge.com

Target System Base Directory : /erpdev/erpapp

Target System Tools ORACLE_HOME Directory [/erpdev/erpapp/apps/tech_st/10.1.2] :


/erpdev/erpapp/10.1.2

Target System Web ORACLE_HOME Directory [/erpdev/erpapp/apps/tech_st/10.1.3] :


/erpdev/erpapp/10.1.3

Target System APPL_TOP Directory [/erpdev/erpapp/apps/apps_st/appl] : /erpdev/erpapp/appl

Target System COMMON_TOP Directory [/erpdev/erpapp/apps/apps_st/comn] : /erpdev/erpapp/comn

Target System Instance Home Directory [/erpdev/erpapp/inst] :

Target System Root Service [disabled] : disabled

Target System Web Entry Point Services [disabled] : disabled

Target System Web Application Services [disabled] : disabled

Target System Batch Processing Services [enabled] : enabled

Target System Other Services [disabled] : disabled


Do you want to preserve the Display [erppgzp1:0.0] (y/n) : n

Target System Display [erpdev:0.0] :

Do you want the the target system to have the same port values as the source system (y/n) [y] ? : n

Target System Port Pool [0-99] : 75


Report file located at /erpdev/erpapp/inst/apps/erpdev_erpdev/admin/out/portpool.lst
Complete port information available at
/erpdev/erpapp/inst/apps/erpdev_erpdev/admin/out/portpool.lst

UTL_FILE_DIR on database tier consists of the following directories.

1. /erpdev/erpcsf/temp
2. /erpdev/erpapp/comn/temp
3. /usr/tmp
4. /erpdev/erpapp/appl/admin
5. /erpdev/oracle/11.2.0/appsutil/outbound/erpdev_erpdev
6. /erpdev/oracle/11.2.0/md/admin
7. /erpdev/oracle/11.2.0/admin/erpdev_erpdev/cdump
8. /erpdev/oracle/11.2.0/admin/erpdev_erpdev/udump
9. /erpdev/oracle/11.2.0/admin/erpdev_erpdev/bdump
10. /erpdev/oracle/11.2.0/work
11. /erpdev/custom
12. /erpdev/custom/ap/out
13. /erpdev/custom/ar/out
14. /erpdev/custom/bom/out
15. /erpdev/custom/fnd/out
16. /erpdev/custom/gl/out
17. /erpdev/custom/inv/out
18. /erpdev/custom/ont/out
19. /erpdev/custom/pa/out
20. /erpdev/custom/po/out
21. /erpdev/custom/wip/out
22. /erpdev/custom/ap/in
23. /erpdev/custom/ar/in
24. /erpdev/custom/bom/in
25. /erpdev/custom/fnd/in
26. /erpdev/custom/gl/in
27. /erpdev/custom/inv/in
28. /erpdev/custom/ont/in
29. /erpdev/custom/pa/in
30. /erpdev/custom/po/in
31. /erpdev/custom/wip/in
32. /erpdev/custom/ap/archive
33. /erpdev/custom/ar/archive
34. /erpdev/custom/bom/archive
35. /erpdev/custom/fnd/archive
36. /erpdev/custom/gl/archive
37. /erpdev/custom/archivev/archive
38. /erpdev/custom/ont/archive
39. /erpdev/custom/pa/archive
40. /erpdev/custom/po/archive
41. /erpdev/custom/wip/archive
42. /erpdev/custom/ap/log
43. /erpdev/custom/ar/log
44. /erpdev/custom/bom/log
45. /erpdev/custom/fnd/log
46. /erpdev/custom/gl/log
47. /erpdev/custom/logv/log
48. /erpdev/custom/ont/log
49. /erpdev/custom/pa/log
50. /erpdev/custom/po/log
51. /erpdev/custom/wip/log
52. /erpdev/erpapp/appl/geps/gepsfnd/1.0.0
53. /erpdev/custom/ap/out/edw
54. /erpdev/custom/ap/archive/edw
55. /erpdev/erpapp/appl/geps/gepsap/1.0.0/out/edw
56. /erpdev/erpapp/appl/geps/gepsap/1.0.0/archive/edw
Choose a value which will be set as APPLPTMP value on the target node [1] : 1

Do you want to reset custom variable settings(y/n) [n] : y


Value for c_MARKVIEW_TOP[/erppgzp1/erpapp/appl/geps/gepssf/12.0.0] :
/erpdev/erpapp/appl/geps/gepssf/12.0.0

Creating the new APPL_TOP Context file from :


/erpdev/erpapp/appl/ad/12.0.0/admin/template/custom/adxmlctx.tmp

The new APPL_TOP context file has been created :


/erpdev/erpapp/comn/clone/context/apps/erpdev_erpdev.xml

Log file located at /erpdev/erpapp/comn/clone/bin/CloneContext_0716033746.log


Check Clone Context logfile /erpdev/erpapp/comn/clone/bin/CloneContext_0716033746.log for details.

Running Rapid Clone with command:


perl /erpdev/erpapp/comn/clone/bin/adclone.pl java=/erpdev/erpapp/comn/clone/bin/../jre
mode=apply stage=/erpdev/erpapp/comn/clone component=appsTier method=CUSTOM
appctxtg=/erpdev/erpapp/comn/clone/context/apps/erpdev_erpdev.xml showProgress
contextValidated=true
Running:
perl /erpdev/erpapp/comn/clone/bin/adclone.pl java=/erpdev/erpapp/comn/clone/bin/../jre
mode=apply stage=/erpdev/erpapp/comn/clone component=appsTier method=CUSTOM
appctxtg=/erpdev/erpapp/comn/clone/context/apps/erpdev_erpdev.xml showProgress
contextValidated=true
APPS Password :
Beginning application tier Apply - Tue Jul 16 03:45:11 2013

/erpdev/erpapp/comn/clone/bin/../jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=true -


Doracle.installer.oui_loc=/oui -classpath
/erpdev/erpapp/comn/clone/jlib/xmlparserv2.jar:/erpdev/erpapp/comn/clone/jlib/ojdbc14.jar:/erpdev
/erpapp/comn/clone/jlib/java:/erpdev/erpapp/comn/clone/jlib/oui/OraInstaller.jar:/erpdev/erpapp/co
mn/clone/jlib/oui/ewt3.jar:/erpdev/erpapp/comn/clone/jlib/oui/share.jar:/erpdev/erpapp/comn/clone
/jlib/oui/srvm.jar:/erpdev/erpapp/comn/clone/jlib/ojmisc.jar oracle.apps.ad.clone.ApplyAppsTier -e
/erpdev/erpapp/comn/clone/context/apps/erpdev_erpdev.xml -stage /erpdev/erpapp/comn/clone -
showProgress
APPS Password : Log file located at
/erpdev/erpapp/inst/apps/erpdev_erpdev/admin/log/ApplyAppsTier_07160345.log
/ 73% completed

Completed Apply...
Tue Jul 16 03:54:50 2013

Do you want to startup the Application Services for ERPDEV? (y/n) [y] : n

Services not started

apppgzs1@tsgsd5901 $

Do you want to startup the Application Services for ERPDEV? (y/n) [y] : n
Solution to highlighted step.
in xml file we have below parameters in capital letters please make it to small
and run autoconfig on db tier and then admin tier otherwise environment file will be
generated in Capital letters like APPSERPDEV_apppgzs1.env
<oa_system_name oa_var="s_systemname">ERPDEV</oa_system_name>
<global_db_name oa_var="s_dbSid">ERPDEV</global_db_name>
<global_db_name oa_var="s_dbGlnam">ERPDEV</global_db_name>

Note:once you configured application tier change below parameters in xml file and don’t forget to
Take the backup of xml file.
cd $INST_TOP/appl/admin
cp -r erpdev_erpdev.xml erpdev_erpdev_16july2013.xml

apppgzs1@tsgsd5901 $ egrep -i
's_applcsf|s_appllog|s_applout|s_cphost|s_appltmp|s_applptmp|s_systemname|s_dbSid|s_dbGlnam'
erpdev_erpdev_16july2013.xml
<oa_system_name oa_var="s_systemname">ERPDEV</oa_system_name>
<global_db_name oa_var="s_dbSid">ERPDEV</global_db_name>
<global_db_name oa_var="s_dbGlnam">ERPDEV</global_db_name>
<db_name_lower oa_var="s_dbSidLower">erpdev</db_name_lower>
<hostname oa_var="s_cphost">erpdev</hostname>
<APPLCSF
oa_var="s_applcsf">/erpdev/erpapp/inst/apps/erpdev_erpdev/logs/appl/conc</APPLCSF>
<APPLLOG oa_var="s_appllog">log/erppgzp1_erppgzp1</APPLLOG>
<APPLOUT oa_var="s_applout">out/erppgzp1/erppgzp1</APPLOUT>
<APPLTMP oa_var="s_appltmp">/erpdev/erpapp/inst/apps/erpdev_erpdev/appltmp</APPLTMP>
<APPLPTMP oa_var="s_applptmp" osd="UNIX">/erpdev/erpcsf/temp</APPLPTMP>
apppgzs1@tsgsd5901 $

apppgzs1@tsgsd5901 $ egrep -i
's_applcsf|s_appllog|s_applout|s_cphost|s_appltmp|s_applptmp|s_systemname|s_dbSid|s_dbGlnam'
$CONTEXT_FILE
<oa_system_name oa_var="s_systemname">erpdev</oa_system_name>
<global_db_name oa_var="s_dbSid">erpdev</global_db_name>
<global_db_name oa_var="s_dbGlnam">erpdev</global_db_name>
<db_name_lower oa_var="s_dbSidLower">erpdev</db_name_lower>
<hostname oa_var="s_cphost">tsgsd5901</hostname>
<APPLCSF oa_var="s_applcsf">/erpdev/erpcsf</APPLCSF>
<APPLLOG oa_var="s_appllog">log</APPLLOG>
<APPLOUT oa_var="s_applout">out</APPLOUT>
<APPLTMP oa_var="s_appltmp">/erpdev/erpcsf/temp</APPLTMP>
<APPLPTMP oa_var="s_applptmp" osd="UNIX">/erpdev/erpcsf/temp</APPLPTMP>
apppgzs1@tsgsd5901 $

orapgzs1@tsgsd5901 $ adautocfg.sh
Enter the APPS user password:
The log file for this session is located at:
/erpdev/oracle/11.2.0/appsutil/log/erpdev_erpdev/07160417/adconfig.log

AutoConfig is configuring the Database environment...

AutoConfig will consider the custom templates if present.


Using ORACLE_HOME location : /erpdev/oracle/11.2.0
Classpath :
:/erpdev/oracle/11.2.0/jdbc/lib/ojdbc5.jar:/erpdev/oracle/11.2.0/appsutil/java/xmlparserv2.jar:/erpdev
/oracle/11.2.0/appsutil/java:/erpdev/oracle/11.2.0/jlib/netcfg.jar:/erpdev/oracle/11.2.0/jlib/ldapjclnt11
.jar

Using Context file : /erpdev/oracle/11.2.0/appsutil/erpdev_erpdev.xml

Context Value Management will now update the Context file

Updating Context file...COMPLETED

Attempting upload of Context file and templates to database...COMPLETED

Updating rdbms version in Context file to db112


Updating rdbms type in Context file to 64 bits
Configuring templates from ORACLE_HOME ...

AutoConfig completed successfully.


orapgzs1@tsgsd5901 $

autoconfig on admin tier


==
apppgzs1@tsgsd5901 $ adautocfg.sh
Enter the APPS user password:

The log file for this session is located at:


/erpdev/erpapp/inst/apps/erpdev_erpdev/admin/log/07160427/adconfig.log

AutoConfig is configuring the Applications environment...

AutoConfig will consider the custom templates if present.


Using CONFIG_HOME location : /erpdev/erpapp/inst/apps/erpdev_erpdev
Classpath :
/erpdev/erpapp/comn/java/lib/appsborg2.zip:/erpdev/erpapp/comn/java/classes

Using Context file : /erpdev/erpapp/inst/apps/erpdev_erpdev/appl/admin/erpdev_erpdev.xml

Context Value Management will now update the Context file

Updating Context file...COMPLETED

Attempting upload of Context file and templates to database...COMPLETED

Configuring templates from all of the product tops...


Configuring AD_TOP........COMPLETED
Configuring FND_TOP.......COMPLETED
Configuring ICX_TOP.......COMPLETED
Configuring MSC_TOP.......COMPLETED
Configuring IEO_TOP.......COMPLETED
Configuring BIS_TOP.......COMPLETED
Configuring AMS_TOP.......COMPLETED
Configuring CCT_TOP.......COMPLETED
Configuring WSH_TOP.......COMPLETED
Configuring CLN_TOP.......COMPLETED
Configuring OKE_TOP.......COMPLETED
Configuring OKL_TOP.......COMPLETED
Configuring OKS_TOP.......COMPLETED
Configuring CSF_TOP.......COMPLETED
Configuring IGS_TOP.......COMPLETED
Configuring IBY_TOP.......COMPLETED
Configuring JTF_TOP.......COMPLETED
Configuring MWA_TOP.......COMPLETED
Configuring CN_TOP........COMPLETED
Configuring CSI_TOP.......COMPLETED
Configuring WIP_TOP.......COMPLETED
Configuring CSE_TOP.......COMPLETED
Configuring EAM_TOP.......COMPLETED
Configuring FTE_TOP.......COMPLETED
Configuring ONT_TOP.......COMPLETED
Configuring AR_TOP........COMPLETED
Configuring AHL_TOP.......COMPLETED
Configuring OZF_TOP.......COMPLETED
Configuring IES_TOP.......COMPLETED
Configuring CSD_TOP.......COMPLETED
Configuring IGC_TOP.......COMPLETED

AutoConfig completed successfully.


apppgzs1@tsgsd5901 $ pwd

Sometimes autoconfig fails with below error message


==
autoconfig failed on admin node with below error message after changing the paramert in xml file
=================================================================================
AC-50480: Internal error occurred: java.lang.Exception: Error while generating listener.ora.

Metalink id : During Autoconfig "adgentns.pl" fails: "AC-50480: Internal error occurred:


java.lang.Exception: Error while generating listener.ora" [ID 453901.1]

Solution:
fnd_nodes contains production entries,connect to database as apps schema and run below procdure
which will clear fnd_nodes entries and run autoconfig on db tier and then on all apps tier.

SQL> select node_name from apps.fnd_nodes;

NODE_NAME
------------------------------
APPPGZP101
APPPGZP102
AUTHENTICATION
ERPPGZP1
ERPDEV
TSGSP5001
TSGSP5008
TSGSP5009
WLSADMIN-ERPSOAP1.TSG.GE.COM

9 rows selected.

SQL> exec fnd_conc_clone.setup_clean;

PL/SQL procedure successfully completed.


SQL> select node_name from apps.fnd_nodes;

no rows selected

SQL> select name from v$database;

NAME
---------
ERPDEV

SQL>

Source the environment file $APPL_TOP/ APPSorpogpa1_orpogpa1.env and run autoconfig.


sh $INST_TOP/admin/scripts/adautocfg.sh

apppgzs1@tsgsd5901 $ cd $INST_TOP/admin/install/
apppgzs1@tsgsd5901 $ ls -ltrh afcpnode.sql
-rw------- 1 apppgzs1 dbapgzs1 5.7K Jul 16 04:41 afcpnode.sql
apppgzs1@tsgsd5901 $ ls -ltrh $INST_TOP/admin/install/afcpnode.sql
-rw------- 1 apppgzs1 dbapgzs1 5.7K Jul 16 04:41
/erpdev/erpapp/inst/apps/erpdev_erpdev/admin/install/afcpnode.sql
apppgzs1@tsgsd5901 $ cp -r afcpnode.sql afcpnode_tsgsd5901,sql

apppgzs1@tsgsd5901 $
SQL> @afcpnode_tsgsd5901.sql
Enter value for 1: apps
Enter value for 2: d1#shb0ard
Enter value for 3: erpdev
Connected.

Register a node ...

11 args...
Registered Node - erpdev - as Concurrent Manager recognizable node

PL/SQL procedure successfully completed.

Commit complete.

Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> select node_name from fnd_nodes;


NODE_NAME
------------------------------
AUTHENTICATION
ERPDEV
TSGSD5901

SQL>

Best Practice once you configured application tier,Please change system and apps password.

1)Connect to target database as sysdba and change system password which will be there in postclone.
2)Change apps password using FNDCPASS utility.

Configuring WEB/FORMS AT NODE


===============
/erpdev/erpapp/comn/clone/bin
apppgzs1@tsgsd2130 $ ls -ltrh
total 302
-rwxr-xr-x 1 apppgzs1 dbapgzs1 54K Oct 15 2012 adclone.pl
-rwxr-xr-x 1 apppgzs1 dbapgzs1 27K Oct 15 2012 adclonectx.pl
-rwxr-xr-x 1 apppgzs1 dbapgzs1 5.0K Oct 15 2012 adchkutl.sh
-rwxr-xr-x 1 apppgzs1 dbapgzs1 32K Oct 15 2012 adcfgclone.pl
-rwxr-xr-x 1 apppgzs1 dbapgzs1 7.2K Oct 15 2012 adaddnode.pl
-rw-r--r-- 1 apppgzs1 dbapgzs1 21K Jul 16 03:45 CloneContext_0716033746.log
-rw-r--r-- 1 apppgzs1 dbapgzs1 709 Jul 16 03:49 sqlnet.log
apppgzs1@tsgsd2130 $ perl adclonectx.pl addnode \
> contextfile=/erpdev/erpapp/inst/apps/erpdev_erpdev/appl/admin/erpdev_e

Copyright (c) 2002 Oracle Corporation


Redwood Shores, California, USA

Oracle Applications Rapid Clone

Version 12.0.0

adclonectx Version 120.23.12010000.1

Running:
/erpdev/erpapp/comn/clone/bin/../jre/bin/java -Xmx600M -classpath /erpdev/er
4.jar:/erpdev/erpapp/comn/clone/bin/../jlib/xmlparserv2.jar:/erpdev/erpapp/c
apps.ad.context.CloneContext -e /erpdev/erpapp/inst/apps/erpdev_erpdev/ap
dnode
Enter the APPS password : d1#shb0ard

Log file located at /erpdev/erpapp/comn/clone/bin/CloneContext_0716050927.log

Provide the values required for creation of the new APPL_TOP Context file.
Target System Hostname (virtual or normal) [tsgsd2130] : apppgzs1

Target System Root Service [disabled] : enabled

Target System Web Entry Point Services [disabled] : enabled

Target System Web Application Services [disabled] : enabled

Target System Batch Processing Services [enabled] : disabled

Target System Other Services [disabled] : enabled

Do you want to preserve the Display [erpdev:0.0] (y/n) : n

Target System Display [apppgzs1:0.0] :


Database port is 1596

Do you want the the target system to have the same port values as the source system (y/n) [y] ? : n

Target System Port Pool [0-99] : 75


Report file located at /erpdev/erpapp/inst/apps/erpdev_apppgzs1/admin/out/portpool.lst
Complete port information available at
/erpdev/erpapp/inst/apps/erpdev_apppgzs1/admin/out/portpool.lst

UTL_FILE_DIR on database tier consists of the following directories.

1. /erpdev/erpcsf/temp
2. /erpdev/erpapp/comn/temp
3. /usr/tmp
4. /erpdev/erpapp/appl/admin
5. /erpdev/oracle/11.2.0/appsutil/outbound/erpdev_erpdev
6. /erpdev/oracle/11.2.0/md/admin
7. /erpdev/oracle/11.2.0/admin/erpdev_erpdev/cdump
8. /erpdev/oracle/11.2.0/admin/erpdev_erpdev/udump
9. /erpdev/oracle/11.2.0/admin/erpdev_erpdev/bdump
10. /erpdev/oracle/11.2.0/work
11. /erpdev/custom
12. /erpdev/custom/ap/out
13. /erpdev/custom/ar/out
14. /erpdev/custom/bom/out
15. /erpdev/custom/fnd/out
16. /erpdev/custom/gl/out
17. /erpdev/custom/inv/out
18. /erpdev/custom/ont/out
19. /erpdev/custom/pa/out
20. /erpdev/custom/po/out
21. /erpdev/custom/wip/out
22. /erpdev/custom/ap/in
23. /erpdev/custom/ar/in
24. /erpdev/custom/bom/in
25. /erpdev/custom/fnd/in
26. /erpdev/custom/gl/in
27. /erpdev/custom/inv/in
28. /erpdev/custom/ont/in
29. /erpdev/custom/pa/in
30. /erpdev/custom/po/in
31. /erpdev/custom/wip/in
32. /erpdev/custom/ap/archive
33. /erpdev/custom/ar/archive
34. /erpdev/custom/bom/archive
35. /erpdev/custom/fnd/archive
36. /erpdev/custom/gl/archive
37. /erpdev/custom/archivev/archive
38. /erpdev/custom/ont/archive
39. /erpdev/custom/pa/archive
40. /erpdev/custom/po/archive
41. /erpdev/custom/wip/archive
42. /erpdev/custom/ap/log
43. /erpdev/custom/ar/log
44. /erpdev/custom/bom/log
45. /erpdev/custom/fnd/log
46. /erpdev/custom/gl/log
47. /erpdev/custom/logv/log
48. /erpdev/custom/ont/log
49. /erpdev/custom/pa/log
50. /erpdev/custom/po/log
51. /erpdev/custom/wip/log
52. /erpdev/erpapp/appl/geps/gepsfnd/1.0.0
53. /erpdev/custom/ap/out/edw
54. /erpdev/custom/ap/archive/edw
55. /erpdev/erpapp/appl/geps/gepsap/1.0.0/out/edw
56. /erpdev/erpapp/appl/geps/gepsap/1.0.0/archive/edw
Choose a value which will be set as APPLPTMP value on the target node [1] : 2

New context path and file name [erpdev_apppgzs1.xml] :


/erpdev/erpapp/inst/apps/erpdev_apppgzs1/appl/admin/erpdev_apppgzs1.xml

Do you want to reset custom variable settings(y/n) [n] : y


Value for c_MARKVIEW_TOP[/erpdev/erpapp/appl/geps/gepssf/12.0.0] :
/erpdev/erpapp/appl/geps/gepssf/12.0.0

Creating the new APPL_TOP Context file from :


/erpdev/erpapp/appl/ad/12.0.0/admin/template/custom/adxmlctx.tmp

The new APPL_TOP context file has been created :


/erpdev/erpapp/inst/apps/erpdev_apppgzs1/appl/admin/erpdev_apppgzs1.xml

Log file located at /erpdev/erpapp/comn/clone/bin/CloneContext_0716050927.log


contextfile=/erpdev/erpapp/inst/apps/erpdev_apppgzs1/appl/admin/erpdev_apppgzs1.xml
Check Clone Context logfile /erpdev/erpapp/comn/clone/bin/CloneContext_0716050927.log for details.
apppgzs1@tsgsd2130 $

Go to cd $AD_TOP/bin and run adconfig.pl which will ask for two inputs
1)web/forms xml file location.
2)apps password.

NOTE:
Once adconfig.pl completed successfully .
You have done with your clone now you have to start the postclone steps and it depends on the
business But still I will give you GENERIC STEPS that needs to be crosscheck as part of the post clone .

apppgzs1@tsgsd2130 $ ls -ltrh adconfig.pl


-rwxr-xr-x 1 apppgzs1 dbapgzs1 37K Nov 8 2011 adconfig.pl
apppgzs1@tsgsd2130 $
apppgzs1@tsgsd2130 $
apppgzs1@tsgsd2130 $ perl adconfig.pl
Enter the full file path to the Context file:
/erpdev/erpapp/inst/apps/erpdev_apppgzs1/appl/admin/erpdev_apppgzs1.xml

Enter the APPS user password:

The log file for this session is located at:


/erpdev/erpapp/inst/apps/erpdev_apppgzs1/admin/log/07160514/adconfig.log

AutoConfig is configuring the Applications environment...

AutoConfig will consider the custom templates if present.


Using CONFIG_HOME location : /erpdev/erpapp/inst/apps/erpdev_apppgzs1
Classpath :
/erpdev/erpapp/comn/java/lib/appsborg2.zip:/erpdev/erpapp/comn/java/classes

Using Context file :


/erpdev/erpapp/inst/apps/erpdev_apppgzs1/appl/admin/erpdev_apppgzs1.xml

Context Value Management will now update the Context file

Updating Context file...COMPLETED

Attempting upload of Context file and templates to database...COMPLETED

Configuring templates from all of the product tops...


Configuring AD_TOP........COMPLETED
Configuring FND_TOP.......COMPLETED
Configuring ICX_TOP.......COMPLETED
Configuring MSC_TOP.......COMPLETED
Configuring IEO_TOP.......COMPLETED
Configuring BIS_TOP.......COMPLETED
Configuring AMS_TOP.......COMPLETED
Configuring CCT_TOP.......COMPLETED
Configuring WSH_TOP.......COMPLETED
Configuring CLN_TOP.......COMPLETED
Configuring OKE_TOP.......COMPLETED
Configuring OKL_TOP.......COMPLETED
Configuring OKS_TOP.......COMPLETED
Configuring CSF_TOP.......COMPLETED
Configuring IGS_TOP.......COMPLETED
Configuring IBY_TOP.......COMPLETED
Configuring JTF_TOP.......COMPLETED
Configuring MWA_TOP.......COMPLETED
Configuring CN_TOP........COMPLETED
Configuring CSI_TOP.......COMPLETED
Configuring WIP_TOP.......COMPLETED
Configuring CSE_TOP.......COMPLETED
Configuring EAM_TOP.......COMPLETED
Configuring FTE_TOP.......COMPLETED
Configuring ONT_TOP.......COMPLETED
Configuring AR_TOP........COMPLETED
Configuring AHL_TOP.......COMPLETED
Configuring OZF_TOP.......COMPLETED
Configuring IES_TOP.......COMPLETED
Configuring CSD_TOP.......COMPLETED
Configuring IGC_TOP.......COMPLETED

AutoConfig completed successfully.


apppgzs1@tsgsd2130 $

after running adconfig.pl only environment file is generated.

apppgzs1@tsgsd2130 $ ls -tlrh APPS*.env


-rwxr-xr-x 1 apppgzs1 dbapgzs1 1.0K Feb 23 2012 APPSerppgzp1_erppgzp1.env
-rw-r--r-- 1 apppgzs1 dbapgzs1 1.0K Feb 23 2012 APPSerppgzp1_apppgzp101.env
-rw-r--r-- 1 apppgzs1 dbapgzs1 1.0K Feb 23 2012 APPSerppgzp1_apppgzp102.env
-rw-r--r-- 1 apppgzs1 dbapgzs1 1.0K Jul 16 05:01 APPSerpdev_erpdev.env
-rw-r--r-- 1 apppgzs1 dbapgzs1 1.0K Jul 16 05:17 APPSerpdev_apppgzs1.env
apppgzs1@tsgsd2130 $ . ./APPSerpdev_apppgzs1.env
apppgzs1@tsgsd2130 $
POSTCLONE STEPS STARTS FROM HERE
==
1)Bring down web/forms services if its up and make sure there are no processes are running at os level.
2)Bring down CM if its up and make sure there are no processes are running at os level.

Postclone steps
===

Postclone script need to ran,AT & DT parameters need to be change ,sso,jaros,profile options,dba
directories,softlinks,workflow mailer,sanity,archive log disabled,Aventex,Cemli,SCM,Db links,ASCP
hookup,color change,it must be diabled.custom env,change banner,Check sga,steps which is mention
In ticket.

1) postclone_std.sql  Connect to database as apps schema and run it.


2) instance_spec_prof.sql  Connect to database as apps schema and run it.
3) standard_user_pass_change.sh (It is a shell script you have to run it from admin node/Tier)
Example:
sh standard_user_pass_change.sh

4) custom_user_pass_change.sql  Connect to database as sysdba schema and run it.

5)Take backup of the xml file before you make any changes into it.
CHANGE PARAMETERS in AT xml file i.e,erpeset2_appeset2.xml
===================================================
appeset2@tsgsd2106 $
<lock_pid_dir oa_var="s_lock_pid_dir">/export/home/appeset2/.apache</lock_pid_dir>
<web_pid_fileoa_var="s_web_pid_file">/export/home/appeset2/.apache/httpd.pid</web_pid_file>
<login_pageoa_var="s_login_page">http://appeset2.tsg.ge.com:8062/OA_HTML/AppsLogin</login_pag
e>
<jsp_debug_parameters oa_var="s_jsp_main_mode">recompile</jsp_debug_parameters>
<APPLCSF oa_var="s_applcsf">/erpeset2/erpapp/comn/admin</APPLCSF>
<APPLLOG oa_var="s_appllog">log</APPLLOG>
<APPLOUT oa_var="s_applout">out</APPLOUT>
<APPLTMP oa_var="s_appltmp">/erpeset2/erpapp/comn/temp</APPLTMP>
<APPLPTMP oa_var="s_applptmp" osd="UNIX">/erpeset2/erpapp/comn/temp</APPLPTMP>
appeset2@tsgsd2106 $

5)Take backup of the xml file before you make any changes into it.
CHANGE PARAMETERS in DT xml file i.e,erpeset2_erpeset2.xml
=======================
appeset2@tsgsd4901 $
<hostname oa_var="s_cphost">tsgsd4901</hostname>
<APPLCSF oa_var="s_applcsf">/erpeset2/erpcsf</APPLCSF>
<APPLLOG oa_var="s_appllog">log</APPLLOG>
<APPLOUT oa_var="s_applout">out</APPLOUT>
<APPLTMP oa_var="s_appltmp">/erpeset2/erpcsf/temp</APPLTMP>
<APPLPTMP oa_var="s_applptmp" osd="UNIX">/erpeset2/erpcsf/temp</APPLPTMP>
7)SSO Registration in R12 instance’s
1) First do SSO de-register

ssoreg_r12_solaris erpeset2 TEST appspwd dereg

2) SSO Registration

ssoreg_r12_solaris erpeset2 TEST appspwd reg

8) 6.Soft Links on DT with applmgr


==============================
check the softlinks and recreate which are pointing to production

cd $APPL_TOP/geps

find . -type l -exec ls -ls '{}' \; |grep -i "fndcpesr" |awk '{print "ls -ltr "$(NF-2)}' > list_cust_link.sh
find . -type l -exec ls -ls '{}' \; |grep -i "fndcpesr" |awk '{print "ln -s $FND_TOP/bin/fndcpesr "$(NF-2)}'
>create_cust_link.sh
find . -type l -exec ls -ls '{}' \; |grep -i "fndcpesr" |awk '{print "rm -f "$(NF-2)}' > del_cust_link.sh
sh list_cust_link.sh
sh del_cust_link.sh
sh create_cust_link.sh
sh list_cust_link.sh

chmod -R 777 $APPL_TOP/geps

9)SET CUSTOM ENV


================
1)copy customerpeset2_erpeset2.env and customerpeset2_appeset2.env from preclone to $APPL_TOP
2)copy customerpeset2_erpeset2.env from preclone to $ORACLE_HOME.
3)source env . /erpeset2/oracle/11.2.0/erpeset2_erpeset2.env .
4)Stop and start database listener.
lsnrct stop erpeset2;lsnrctl start erpeset2
5)Now check
oraeset2@tsgsd4901 $ echo $CUSTOM_TOP
/erpeset2/erpapp/appl/geps
oraeset2@tsgsd4901 $

Disable archive log


=========
1)shutdown immediate 2)start mount 3)alter database noarchive log;
SQL> archive log list
Database log mode No Archive Mode
Automatic archival Disabled
Archive destination /erpeset2/dbdata/arch
Oldest online log sequence 1
Current log sequence 1

JIT PARAMETER MUST BE FALSE.


==========================
it is dynamic parameter just doesnot require bounce.
alter system set java_jit_enabled=FALSE;

SQL> show parameter jit

NAME TYPE VALUE


------------------------------------ ----------- ------------------------------
java_jit_enabled boolean FALSE

SET SGA
======

SQL> show parameter sga

NAME TYPE VALUE


------------------------------------ ----------- ------------------------------
lock_sga boolean FALSE
pre_page_sga boolean FALSE
sga_max_size big integer 4200M
sga_target big integer 0

Database must be up and running with spfile


==========================================

SQL> show parameter spfile

NAME TYPE VALUE


------------------------------------ ----------- ------------------------------
spfile string /erpeset2/oracle/11.2.0/dbs/sp
fileerpeset2.ora

dba directories
==============

select * from all_directories;


update dir$ set OS_PATH=replace(OS_PATH,'&OLD_VALUE','&NEW_VALUE')
where OS_PATH like '%&OLD_VALUE%';

Check banner
==========
select profile_option_value from apps.fnd_profile_option_values where PROFILE_OPTION_ID=125 and
application_id =0;

SQL> @checkbanner.sql

PROFILE_OPTION_VALUE
--------------------------------------------------------------------------------
GALAXY ASCP PRODUCTION TEST INSTANCE ERPESET2 Cloned @31-JUL-13

SQL>

Check db links and make sure no db links are poiting to production


=======================================================
set heading on
col DB_LINK format a50
set linesize 150
col HOST format a20
select owner,db_link,HOST,created from dba_db_links;

SQL> @awcheckDBLINK.sql

OWNER DB_LINK HOST CREATED


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

---------------
APPS APPS_TO_APPS.TSG.GE.COM erpeset2 31-JUL-13
APPS ET2_TO_ED1.TSG.GE.COM erpesed1 31-JUL-13
APPS EDW_APPS_TO_WH RIPRD34 29-OCT-04
APPS APPS_TO_APPS RIPRD34 29-OCT-04
APPS SESH.TSG.GE.COM erpesec1 15-JUN-13
APPS ET2_TO_EM1.TSG.GE.COM erpesem1 31-JUL-13
APPS APPS_TO_APPS.ENERGY.GE.COM erpeset2 31-JUL-13
APPS T2TOX1.TSG.GE.COM erpesex1 31-JUL-13
APPS EDW_APPS_TO_WH.TSG.GE.COM erpeset2 31-JUL-13

9 rows selected.

SQL>
ASCP HOOKUP
==========
ASCP HOOKUP AT ASCP SIDE
==========================

SQL> select name,created from v$database;

NAME CREATED
--------- ---------------
ERPESET2 30-JUL-13

SQL> select name,created from v$database@ET2_TO_EM1.TSG.GE.COM;

NAME CREATED
--------- ---------------
ERPESEM1 27-JUL-13

SQL> select INSTANCE_CODE,A2M_DBLINK,m2a_dblink from msc_apps_instances;

INS A2M_DBLINK
---

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

-------------
M2A_DBLINK
-------------------------------------------------------------------------------------------------------------------

-------------
TST EM1_TO_ET2
ET2_TO_EM1

SQL>

ASCP HOOKUP AT OLTP SIDE


==========================

SQL> select name,created from v$database;

NAME CREATED
--------- ---------------
ERPESEM1 27-JUL-13

SQL> select name,created from v$database@EM1_TO_ET2.TSG.GE.COM;

NAME CREATED
--------- ---------------
ERPESET2 30-JUL-13

SQL> select INSTANCE_ID, APPS_LRN, INSTANCE_CODE, M2A_DBLINK, A2M_DBLINK,-1,1,1 from

apps.msc_apps_instances@EM1_TO_ET2.TSG.GE.COM;

INSTANCE_ID APPS_LRN INS


----------- ---------- ---
M2A_DBLINK
-------------------------------------------------------------------------------------------------------------------

-------------
A2M_DBLINK

-1 1
-------------------------------------------------------------------------------------------------------------------

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


1
----------
5029 562677 TST
ET2_TO_EM1
EM1_TO_ET2

-1 1
1

SQL>

Complete third party tools Aventex,Cemli,SCM and bring it up workflow mailer.Do sanity and release
Instance.

CM is running fine
==========
Once sanity check it done from dba side sent outage completion mail to business in below format.

Clone Completed, Instance Released for Users Access.


Post Clone Steps Status
1. Password Changed Done
(Apps/Custom/Standard)

2. Xml file changes and Permission Done

3. Archive, SGA, JIT Archive Log List=Disabled

SGA= 4 GB

JAVA_JIT_ENABLED= FALSE

4. Profiles values & Utl File Directory values Changed

5. SSO Done

6. DB links Done

7. Banner GALAXY ASCP PRODUCTION TEST INSTANCE ERPESET2


Cloned @31-JUL-13

8. Steps in Clone Task Completed

9. ASCP Hookup Set 1 : ET2_TO_EM1.TSG.GE.COM

to EM1_TO_ET2.TSG.GE.COM

10. Workflow Mailer N/A for ascp instance

11. Complete Sanity Done

You might also like