Vous êtes sur la page 1sur 10

Oracle EBS R12.2.

6 Application tier cloning with Step by Step

Apps Tier Cloning

1. Copy EBSapps directory from source to target (no need to copy FMW_Home and inst
Directories)
Create a directory

mkdir -p /u01/oracle/UAT/fs1/
mkdir -p /u01/oracle/UAT/fs2/
mkdir -p /u01/oracle/UAT/fs_ne/

Copy EBSapps directory from source to target

scp -r /u01/oracle/CRP/fs1/EBSapps <targetIP>:/u01/oracle/UAT/fs1


2.After finishing the copy CONFIGURE TARGET RUN FILE SYSTEM
Go to clone directory

cd /u01/oracle/UAT/fs1/EBSapps/comn/clone/bin

[appluat@qb bin]$ perl adcfgclone.pl appsTier

Copyright (c) 2002, 2015 Oracle Corporation


Redwood Shores, California, USA

Oracle E-Business Suite Rapid Clone

Version 12.2

adcfgclone Version 120.63.12020000.56

*********************************************************************************
In AD-TXK Delta 7, we recommend you clone the run and patch
file systems in a single operation using the 'dualfs' option.
Separate cloning of the run and patch file systems will be deprecated
*********************************************************************************

Enter the APPS password :

Enter the Weblogic AdminServer password :

Do you want to add a node (yes/no) [no] :


Running: Context clone...

Log file located at


/u01/oracle/UAT/fs1/EBSapps/comn/clone/bin/CloneContext_0406111013.log

Target System File Edition type [run] :

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

Target System Hostname (virtual or normal) [qb] :

Target System Database SID : UAT

Target System Database Server Node [qb] :

Target System Database Domain Name [qb.com] :

Target System Base Directory : /u01/oracle/UAT

Target System Base Directory set to /u01/oracle/UAT

Target System Current File System Base set to /u01/oracle/UAT/fs1

Target System Other File System Base set to /u01/oracle/UAT/fs2

Target System Fusion Middleware Home set to /u01/oracle/UAT/fs1/FMW_Home

Target System Web Oracle Home set to /u01/oracle/UAT/fs1/FMW_Home/webtier

Target System Appl TOP set to /u01/oracle/UAT/fs1/EBSapps/appl

Target System COMMON TOP set to /u01/oracle/UAT/fs1/EBSapps/comn

Target System Instance Home Directory [/u01/oracle/UAT] :

Target System Instance Top set to /u01/oracle/UAT/fs1/inst/apps/UAT_qb

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

Target System Display [qb:0.0] :

Target System Root Service [enabled] :


Target System Web Entry Point Services [enabled] :

Target System Web Application Services [enabled] :

Target System Batch Processing Services [enabled] :

Target System Other Services [disabled] :

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

Target System Port Pool [0-99] : 11

Checking the port pool 11


done: Port Pool 11 is free
Report file located at
/u01/oracle/UAT/fs1/inst/apps/UAT_qb/admin/out/portpool.lst

UTL_FILE_DIR on database tier consists of the following directories.

1. /usr/tmp
2. /tmp
3. /u01/oracle/UAT/12.1.0/appsutil/outbound/UAT_qb
4. /usr/tmp
Choose a value which will be set as APPLPTMP value on the target node [1] :
The new APPL_TOP context file has been created :
/u01/oracle/UAT/fs1/inst/apps/UAT_qb/appl/admin/UAT_qb.xml
Check Clone Context logfile
/u01/oracle/UAT/fs1/EBSapps/comn/clone/bin/CloneContext_0406111013.log for
details.

Running Rapid Clone with command:

Running:
perl /u01/oracle/UAT/fs1/EBSapps/comn/clone/bin/adclone.pl
java=/u01/oracle/UAT/fs1/EBSapps/comn/clone/bin/../jre mode=apply
stage=/u01/oracle/UAT/fs1/EBSapps/comn/clone component=appsTier
method=CUSTOM
appctxtg=/u01/oracle/UAT/fs1/inst/apps/UAT_qb/appl/admin/UAT_qb.xml
showProgress contextValidated=true

FMW Pre-requisite check log file location :


/u01/oracle/UAT/fs1/EBSapps/comn/clone/FMW/logs/prereqcheck.log
Running: /u01/oracle/UAT/fs1/EBSapps/comn/clone/FMW/t2pjdk/bin/java
/u01/oracle/UAT/fs1/EBSapps/comn/clone/prereq/webtier/Scripts/ext/jlib/engin
e.jar:/u01/oracle/UAT/fs1/EBSapps/comn/clone/prereq/webtier/oui/jlib/OraPrere
q.jar:/u01/oracle/UAT/fs1/EBSapps/comn/clone/prereq/webtier/oui/jlib/OraPrere
qChecks.jar:/u01/oracle/UAT/fs1/EBSapps/comn/clone/prereq/webtier/oui/jlib/O
raInstaller.jar:/u01/oracle/UAT/fs1/EBSapps/comn/clone/prereq/webtier/oui/jlib/
OraInstallerNet.jar:/u01/oracle/UAT/fs1/EBSapps/comn/clone/prereq/webtier/oui
/jlib/srvm.jar:/u01/oracle/UAT/fs1/EBSapps/comn/clone/prereq/webtier/Scripts/
ext/jlib/ojdl.jar:/u01/oracle/UAT/fs1/EBSapps/comn/clone/prereq/webtier/Scripts
/ext/jlib/ojdl2.jar:/u01/oracle/UAT/fs1/EBSapps/comn/clone/prereq/webtier/Scri
pts/ext/jlib/log4j.jar:/u01/oracle/UAT/fs1/EBSapps/comn/clone/prereq/webtier/o
ui/jlib/xmlparserv2.jar:/u01/oracle/UAT/fs1/EBSapps/comn/clone/prereq/webtier
/oui/jlib/share.jar:/u01/oracle/UAT/fs1/EBSapps/comn/clone/jlib/java/oracle.app
s.ad.clone.util.FMWOracleHomePreReqCheck/u01/oracle/UAT/fs1/inst/apps/UAT_
qb/appl/admin/UAT_qb.xml -stage /u01/oracle/UAT/fs1/EBSapp
s/EBSapps/comn/clone/FMW/logs/prereqcheck.log

Beginning application tier Apply - Thu Apr 6 11:12:30 2017

/u01/oracle/UAT/fs1/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -
DCONTEXT _VALIDATED=true -Doracle.installer.oui_loc=/oui -classpath
/u01/oracle/UAT/fs1/EBSapps/comn/clone/jlib/xmlparserv2.jar:/u01/oracle/UAT
/fs1/EBSapps/comn/clone/jlib/ojdbc6.jar:/u01/oracle/UAT/fs1/EBSapps/comn/clo
ne/jlib/java:/u01/oracle/UAT/fs1/EBSapps/comn/clone/jlib/oui/OraInstaller.jar:/
u01/oracle/UAT/fs1/EBSapps/comn/clone/jlib/oui/ewt3.jar:/u01/oracle/UAT/fs1
/EBSapps/comn/clone/jlib/oui/share.jar:/u01/oracle/UAT/fs1/FMW_Home/webti
er/../Oracle_EBSapp1/oui/jlib/srvm.jar:/u01/oracle/UAT/fs1/EBSapps/comn/clon
e/jlib/ojmisc.jar:/u01/oracle/UAT/fs1/FMW_Home/wlserver_10.3/server/lib/webl
ogic.jar:/u01/oracle/UAT/fs1/EBSapps/comn/clone/jlib/obfuscatepassword.jar orac
le.apps.ad.clone.ApplyAppsTier -e u01/oracle/UAT /fs1/inst/apps/UAT_qb
/appl/admin/ /UAT_qb.xml -stage /u01/oracle/UAT/fs1/inst/apps/UAT_qb
/appl/admin/UAT_qb.xml -stage /u01/oracle/UAT/fs1/EBSapps/comn/clone-
showProgress -nopromptmsg
Log file located at /u01 /oracle/UAT/fs1 /inst /apps/UAT_qb/admin /log /clone
ApplyAppsTier _04061112.log
| 100% completed

Completed Apply...
Thu Apr 6 11:37:54 2017

Do you want to startup the Application Services for UAT? (y/n) [n] :
Services not started
Running:
perl /u01/oracle/UAT/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/adcleansrccfg.pl
context=/u01/oracle/UAT/fs1/inst/apps/UAT_qb/appl/admin/UAT_qb.xml
promptmsg=hide
logfile=/u01/oracle/UAT/fs1/inst/apps/UAT_qb/admin/log/clone/ApplyAppsTier
_04061112.log

*** ALL THE FOLLOWING FILES ARE REQUIRED FOR RESOLVING RUNTIME
ERRORS
*** Log File = /u01/oracle/UAT/fs1/inst/apps/UAT_qb/logs /appl/rgf/TXK/
/txkSetOAMReg_Thu_Apr_6_11_40_34_2017.log

Removing SSO/OID references if present...


stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
Config Cleanup Complete

[appluat@qb bin]$
3.Once we are done with everything. Start the application Tier using adstral.sh
RUN the ENV for the Applciation tier

cd $ADMIN_SCRIPTS_HOME

adstral.sh apps/apps

Provide Weblogic Password:

Once application is up do a sample Health Check.


4.RUN adpreclone on TARGET RUN FILESYSTEM

[appluat@qb ]$ cd /u01/oracle/UAT/fs1/inst/apps/CRP_qb/admin/scripts
[appluat@qb scripts]$ adpreclone.pl appsTier

Copyright (c) 2011, 2014 Oracle Corporation


Redwood Shores, California, USA

Oracle E-Business Suite Rapid Clone

Version 12.2

adpreclone Version 120.31.12020000.20


Enter the APPS User Password:
Enter the Weblogic AdminServer password :

Checking the status of the Oracle WebLogic Administration Server....


Running perl
/u01/oracle/UAT/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/adProvision
EBS.plebs-get-serverstatus - contextfile =/u01/oracle/UAT
/fs1/inst/apps/UAT_qbuat/appl/admin /appl/admin/UAT_qb.xml -
servername=AdminServer -promptmsg=hide

The Oracle WebLogic Administration Server is up.

Running:
perl /u01/oracle/UAT/fs1/EBSapps/appl/ad/12.0.0/bin/adclone.pl
java=/u01/oracle/UAT/fs1/EBSapps/comn/util/jdk64 mode=stage
stage=/u01/oracle/UAT/fs1/EBSapps/comn/clone component=appsTier method=
appctx=/u01/oracle/UAT/fs1/inst/apps/UAT_qbuat/appl/admin/UAT_qb.xml
showProgress

Setting the wls environment

Beginning application tier Stage - Thu Apr 6 12:53:24 2017

/u01/oracle/UAT/fs1/EBSapps/comn/util/jdk64/bin/java -Xmx600M -
DCONTEXT_VALIDATED =false -Doracle.installer.oui_loc=/oui -classpath
/u01/oracle/UAT/fs1/FMW_Home/webtier/lib/xmlparserv2.jar:/u01/oracle/UAT/
fs1/FMW_Home/webtier/jdbc/lib/ojdbc6
.jar:/u01/oracle/UAT/fs1/EBSapps/comn/
/java/classes:/u01/oracle/UAT/fs1/FMW_Home/webtier/oui/jlib/OraInstaller.jar:
/u01/oracle/UAT/fs1/FMW_Home/webtier/oui/jlib/ewt3.jar:/u01/oracle/oui/jlib/
share.jar:/u01/oracle/UAT/fs1/FMW_Home/webtier/../Oracle_EBS-app1/oui/jlib/
srvm.jar: /u01/oracle/UAT/fs1/ /FMW_HOME /webtier/jlib/ojmisc.jar:/u01/oracle
/UAT/fs1/FMW_Home/wlserver_10.3/server/wlserver_10.3/server/lib/weblogic.jar
: /u01/oracle/UAT/fs1/FMW_Home /oracle_commonjlib/ obfuscatepass word.jar
/u01/oracle/UAT/fs1/inst/apps/UAT_qbuat /appl/admin/UAT_qb.xml -stage
/u01/oracle/UAT/fs1/EBSapps/comn/clone -tmp /tmp -method CUSTOM -
showProgress -nopromptmsg

Log file located at


/u01/oracle/UAT/fs1/inst/apps/UAT_qb/admin/log/clone/ Sta
geAppsTier_04061253.log
\ 20% completed

Completed Stage...
Thu Apr 6 12:59:21 2017
[appluat@qb scripts]$

5.Shutdown the Application which is running on RUN File system

cd $ADMIN_SCRIPTS_HOME
adstpal.sh apps/apps
provide Weblogic admin password:

6.Copy the Target RUN File system to Target PATCH File system

make sure you already created the directory structure like

mkdir -p /u01/oracle/UAT/fs1/
mkdir -p /u01/oracle/UAT/fs2/<------Here We need to copy EBSapps from
/u01/oracle/UAT/fs1/
mkdir -p /u01/oracle/UAT/fs_ne/

[appluat@qb ]$ cd /u01/oracle/UAT/fs1/

[appluat@qb fs1]$ cp EBSapps /u01/oracle/UAT/fs2/ .

UNSET the application Enviroment.


7.Once Finished copying Start Configuring TARGET PATCH File system
[appluat@qb ]$ cd /u01/oracle/UAT/fs2/EBSapps/comn/clone/bin

[appluat@qb scripts]$ perl adcfgclone.pl appsTier

Copyright (c) 2002, 2015 Oracle Corporation


Redwood Shores, California, USA

Oracle E-Business Suite Rapid Clone

Version 12.2

adcfgclone Version 120.63.12020000.56

**********************************************************************
In AD-TXK Delta 7, we recommend you clone the run and patch
file systems in a single operation using the 'dualfs' option.
Separate cloning of the run and patch file systems will be
deprecated
**********************************************************************

Enter the APPS password :

Enter the Weblogic AdminServer password :

Do you want to add a node (yes/no) [no] :

Running: Context clone...

Log file located at


/u01/oracle/UAT/fs2/EBSapps/comn/clone/bin/CloneContext_0406152616.log

Target System File Edition type [run] : patch

Enter the full path of Run File System Context file :


/u01/oracle/UAT/fs1/inst/apps/UAT_qb/appl/admin/UAT_qb.xml

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

Target System Fusion Middleware Home set to /u01/oracle/UAT/fs2/FMW_Home

Target System Web Oracle Home set to /u01/oracle/UAT/fs2/FMW_Home/webtier

Target System Appl TOP set to /u01/oracle/UAT/fs2/EBSapps/appl

Target System COMMON TOP set to /u01/oracle/UAT/fs2/EBSapps/comn

Target System Instance Top set to /u01/oracle/UAT/fs2/inst/apps/UAT_qb

Target System Port Pool [0-99] : 12

Checking the port pool 12


done: Port Pool 12 is free
Report file located at
/u01/oracle/UAT/fs2/inst/apps/UAT_qb/admin/out/portpool.lst

The new APPL_TOP context file has been created :


/u01/oracle/UAT/fs2/inst/apps/UAT_qb/appl/admin/UAT_qb.xml

Check Clone Context logfile


/u01/oracle/UAT/fs2/EBSapps/comn/clone/bin/CloneContext_0406152616.log for
details.

Running Rapid Clone with command:

Running:
perl /u01/oracle/UAT/fs2/EBSapps/comn/clone/bin/adclone.pl
java=/u01/oracle/UAT/fs2/EBSapps/comn/clone/bin/../jre mode=apply
stage=/u01/oracle/UAT/fs2/EBSapps/comn/clone component=appsTier
method=CUSTOM
appctxtg=/u01/oracle/UAT/fs2/inst/apps/UAT_qb/appl/admin/UAT_qb.xml
showProgress contextValidated=true

FMW Pre-requisite check log file location :


/u01/oracle/UAT/fs2/EBSapps/comn/clone/FMW/logs/prereqcheck.log

Running: /u01/oracle/UAT/fs2/EBSapps/comn/clone/FMW/t2pjdk/bin/java -
classpath/prereq UAT
/u01/oracle/UAT/fs2/EBSapps/comn/clone/prereq/webtier/Scripts/ext/jlib/engin
e.jar:/u01/oracle/UAT/fs2/EBSapps/comn/clone/prereq/webtier/oui/jlib/OraPrere
q.jar:/u01/oracle/UAT/fs2/EBSapps/comn/clone/prereq/webtier/oui/jlib/OraPrere
qChecks.jar:/u01/oracle/UAT/fs2/EBSapps/comn/clone/prereq/webtier/oui/jlib/O
raInstaller.jar:/u01/oracle/UAT/fs2/EBSapps/comn/clone/prereq/webtier/oui/jlib/
OraInstallerNet.jar:/u01/oracle/UAT/fs2/EBSapps/comn/clone/prereq/webtier/oui
/jlib/srvm.jar:/u01/oracle/UAT/fs2/EBSapps/comn/clone/prereq/webtier/Scripts/
ext/jlib/ojdl.jar:/u01/oracle/UAT/fs2/EBSapps/comn/clone/prereq/webtier/Scripts
/ext/jlib/ojdl2.jar:/u01/oracle/UAT/fs2/EBSapps/comn/clone/prereq/webtier/Scri
pts/ext/jlib/ojdl-
log4j.jar:/u01/oracle/UAT/OraPrereqChecks.jar:log4j.jar:/u01/oracle/
UAT/fs2/EBSapps/comn/clone/prereq/webtier/oui/jlib/xmlparserv2.jar:/u01
.jar:/u01/oracle/UAT/fs2/EBSapps/comn/clone/prereq/webtier/oui/jlib/share.jar:/
u01/oracle/UAT/fs2/EBSapps/comn/clone/jlib/java

oracle.apps.ad.clone.util.FMWOracleHomePreReqCheck -prereqCheckFMW -e
/u01/oracle/UAT/fs2/inst/apps/UAT_qb/appl/admin/UAT_qb.xml -stage
/u01/oracle/UAT/fs2/EBSapps/comn/clone -log
/u01/oracle/UAT/fs2/EBSapps/comn/clone/FMW/logs/prereqcheck.log

Beginning application tier Apply - Thu Apr 6 15:26:50 2017

/u01/oracle/UAT/fs2/EBSapps/comn/clone/bin/............................./jre/bin/java -
Xmx600M -DCONTEXT_VALIDATED=true -Doracle.installer.oui_loc=/oui -
classpath//u01/oracle/UAT/fs2/EBSapps/comn/clone/jlib/xmlparserv2.jar:/u01/or
acle/UAT/fs2/EBSapps/comn/clone/jlib/ojdbc6.jar:/u01/oracle/UAT/fs2/EBSapps
/comn/clone/jlib/java:/u01/oracle/UAT/fs2/EBSapps/comn/clone/jlib/oui/OraIns
taller.jar:/u01/oracle/UAT/fs2/EBSapps/comn/clone/jlib/oui/ewt3.jar:/u01/oracle/
UAT/fs2/EBSapps/comn/clone/jlib/oui/share.jar:/u01/oracle/UAT/fs2/FMW_Ho
me/webtier/Oracle_EBS/oui/jlib/srvm.jar:/u01/oracle/UAT/fs2/EBSapps//jlibapp1
/fs2/
/oui/jlib/ojmisc.jar:/u01/oracle/UAT/fs2/EBSapps/jlibapp1/oui/jlib
/ojmisc.jar: /UAT/fs2/FMW_Home/wlserver_10.3/server/lib/weblogic.jar:/u01/ora
cle/UAT/fs2/EBSapps/comn/clone/jlib/obfuscatepassword.jar oracle.apps.ad.clone
Apply
AppsTier -e /u01/oracle/UAT/ fs2/inst/ /apps/UAT_qb/appl/admin/UAT_qb.xml
-stage -showProgress -nopromptmsg

Log file located at


/u01/oracle/UAT/fs2/inst/apps/UAT_qb/admin/log/clone/ApplyAppsTier_040615
26.log
- 100% completed

Completed Apply...
Thu Apr 6 15:55:55 2017

Looking for incomplete CLONE record in ad_adop_session_patches table

The CLONE record status is no rows selected


[appluat@qb bin]$
8.Once we are done with everything. Start the application Tier using adstral.sh

This time set the env to RUN File System

. /u01/oracle/UAT/EBSapps.env run

cd $ADMIN_SCRIPTS_HOME

adstral.sh apps/apps