Oracle EBS R12.2 ( E-Business Suite ) Step by Step Cloning – Oracle EBS Clone

I will explain the Oracle EBS R12.2 ( E-Business Suite ) Step by Step Cloning – Oracle EBS ( Apps ) Clone in this article.

 

If you don’t know what is the EBS and how to install Oracle EBS, you can read following article.

Oracle EBS ( E-Business Suite 12.2.6 ) Step by Step Installation -1

 

Oracle EBS ( Apps ) Clone

EBS Cloning requests are done everytime for testing and development purposes and it is most common task of Apps DBA.

While cloning EBS, we will clone both Oracle database and EBS application. For this reason, it is necessary to carry out separate tasks on both sides. I’ll explain all tasks step by step sharing scripts and their outputs.

 

 

Oracle EBS Cloning steps are as follows.

 

  1. Running Pre-Clone on the Source Apps Tier and DB Tier
  2. Backup Full database and Archivelogs via RMAN
  3. Copy Some Application Tier directories from Source to Target
  4. Copy Oracle database Home and backups from Source to Target
  5. Configure and start Oracle Instance on Target
  6. Duplicate & Restore and Recover database and open clone database on Target
  7. Run Post Clone Steps on Target Database Server ( DB Tier )
  8. Run Post Clone Steps on Target Application Server ( Apps Tier )
  9. Run Pre-Clone on the Target Apps Tier for Creating Patch edition
  10. Copy EBSpps directory from Run edition to patch edition on Target Application server
  11. Run Post Clone on Patch Edition of Target Application server
  12. Start EBS Clone Environment

 

 

EBS ( Apps ) Pre-Clone

Step 1: Run Pre-Clone on the Source Apps Tier and DB Tier like following

 

DB Pre Clone:

 

[oracle@ebstest VIS_ebstest]$ perl adpreclone.pl dbTier

                     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:

Verifying if Database Patch checker (ETCC) exists in /u01/oracle/VIS/12.1.0/appsutil/etcc

Running:

perl /u01/oracle/VIS/12.1.0/appsutil/bin/adclone.pl java=/u01/oracle/VIS/12.1.0/appsutil/jre mode=stage stage=/u01/oracle/VIS/12.1.0/appsutil/clone component=dbTier method=CUSTOM dbctx=/u01/oracle/VIS/12.1.0/appsutil/VIS_ebstest.xml showProgress

Beginning database tier Stage - Mon Dec 17 09:42:27 2018

/u01/oracle/VIS/12.1.0/appsutil/jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=false -Doracle.installer.oui_loc=/u01/oracle/VIS/12.1.0/oui -classpath /u01/oracle/VIS/12.1.0/lib/xmlparserv2.jar:/u01/oracle/VIS/12.1.0/jdbc/lib/ojdbc6.jar:/u01/oracle/VIS/12.1.0/appsutil/java:/u01/oracle/VIS/12.1.0/oui/jlib/OraInstaller.jar:/u01/oracle/VIS/12.1.0/oui/jlib/ewt3.jar:/u01/oracle/VIS/12.1.0/oui/jlib/share.jar:/u01/oracle/VIS/12.1.0/oui/jlib/srvm.jar:/u01/oracle/VIS/12.1.0/jlib/ojmisc.jar   oracle.apps.ad.clone.StageDBTier -e /u01/oracle/VIS/12.1.0/appsutil/VIS_ebstest.xml -stage /u01/oracle/VIS/12.1.0/appsutil/clone -tmp /tmp -method CUSTOM    -showProgress

APPS Password : apps

Log file located at /u01/oracle/VIS/12.1.0/appsutil/log/VIS_ebstest/StageDBTier_12170942.log

  \     59% completed

Completed Stage...

Mon Dec 17 09:43:08 2018

[oracle@ebstest VIS_ebstest]$ apps

 

 

EBS Pre-Clone:

[applmgr@ebstest scripts]$ perl 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/apps/VIS/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/adProvisionEBS.pl ebs-get-serverstatus -contextfile=/u01/apps/VIS/fs1/inst/apps/VIS_ebstest/appl/admin/VIS_ebstest.xml -servername=AdminServer -promptmsg=hide

The Oracle WebLogic Administration Server is up.

Running:

perl /u01/apps/VIS/fs1/EBSapps/appl/ad/12.0.0/bin/adclone.pl java=/u01/apps/VIS/fs1/EBSapps/comn/util/jdk64 mode=stage stage=/u01/apps/VIS/fs1/EBSapps/comn/clone component=appsTier method= appctx=/u01/apps/VIS/fs1/inst/apps/VIS_ebstest/appl/admin/VIS_ebstest.xml showProgress

 Setting the wls environment

Beginning application tier Stage - Mon Dec 17 09:37:35 2018

/u01/apps/VIS/fs1/EBSapps/comn/util/jdk64/bin/java -Xmx600M -DCONTEXT_VALIDATED=false -Doracle.installer.oui_loc=/oui -classpath /u01/apps/VIS/fs1/FMW_Home/webtier/lib/xmlparserv2.jar:/u01/apps/VIS/fs1/FMW_Home/webtier/jdbc/lib/ojdbc6.jar:/u01/apps/VIS/fs1/EBSapps/comn/java/classes:/u01/apps/VIS/fs1/FMW_Home/webtier/oui/jlib/OraInstaller.jar:/u01/apps/VIS/fs1/FMW_Home/webtier/oui/jlib/ewt3.jar:/u01/apps/VIS/fs1/FMW_Home/webtier/oui/jlib/share.jar:/u01/apps/VIS/fs1/FMW_Home/webtier/../Oracle_EBS-app1/oui/jlib/srvm.jar:/u01/apps/VIS/fs1/FMW_Home/webtier/jlib/ojmisc.jar:/u01/apps/VIS/fs1/FMW_Home/wlserver_10.3/server/lib/weblogic.jar:/u01/apps/VIS/fs1/FMW_Home/oracle_common/jlib/obfuscatepassword.jar  oracle.apps.ad.clone.StageAppsTier -e /u01/apps/VIS/fs1/inst/apps/VIS_ebstest/appl/admin/VIS_ebstest.xml -stage /u01/apps/VIS/fs1/EBSapps/comn/clone -tmp /tmp -method CUSTOM   -showProgress -nopromptmsg

Log file located at /u01/apps/VIS/fs1/inst/apps/VIS_ebstest/admin/log/clone/StageAppsTier_12170937.log

  /     20% completed

Completed Stage...
Mon Dec 17 09:57:57 2018
[applmgr@ebstest scripts]$ pwd
/u01/apps/VIS/fs1/inst/apps/VIS_ebstest/admin/scripts
[applmgr@ebstest scripts]$

 

 

 

 

Step 2: Backup Full database and Archivelogs via RMAN

connect target /
run{
ALLOCATE CHANNEL CH1 DEVICE TYPE DISK;
ALLOCATE CHANNEL CH2 DEVICE TYPE DISK;
ALLOCATE CHANNEL CH3 DEVICE TYPE DISK;
ALLOCATE CHANNEL CH4 DEVICE TYPE DISK;
ALLOCATE CHANNEL CH5 DEVICE TYPE DISK;
ALLOCATE CHANNEL CH6 DEVICE TYPE DISK;
ALLOCATE CHANNEL CH7 DEVICE TYPE DISK;
ALLOCATE CHANNEL CH8 DEVICE TYPE DISK;
BACKUP AS COMPRESSED BACKUPSET DATABASE FORMAT '/u01/oracle/backup/FULL_%d_%u_%s_%T.bkp';
BACKUP AS COMPRESSED BACKUPSET ARCHIVELOG ALL not backed up 1 times FORMAT '/u01/oracle/backup/Archivelogs_%d_%u_%s_%T.bkp';
BACKUP CURRENT CONTROLFILE FORMAT '/u01/oracle/backup/CONTROLFILE%d_%u_%s_%T.bkp';
RELEASE CHANNEL CH1;
RELEASE CHANNEL CH2;
RELEASE CHANNEL CH3;
RELEASE CHANNEL CH4;
RELEASE CHANNEL CH5;
RELEASE CHANNEL CH6;
RELEASE CHANNEL CH7;
RELEASE CHANNEL CH8;
}

 

 

Step 3: Copy Some Application Tier directories from Source to Target

Copy EBSapps directory under fs1 (Run edition) of Application server to the Target Apps Directory like following.

scp -pr EBSapps  applmgr@TargetIp:/u01/apps/fs1

 

 

Step 4: Copy Oracle database Home and backups from Source to Target

scp -pr 12.1.0/ KlonIP:/u01/database
scp *bkp KlonIP:/u01/oracle/backup



Step 5: Configure and start Oracle Instance on Target

Set Oracle Environment on New Target database Server and start Oracle instance with nomount mode.

If Oracle Home changed in the new Clone environment, relink is run as follows.

$ORACLE_HOME/bin/relink all   

Use following parameters for PFILE and start Oracle instance with this parameter file in nomount mode.

db_name='CLONE'
db_unique_name='CLONE'
db_file_name_convert=(OLD_PATH,NEW_PATH)
log_file_name_convert=(OLD_PATH,NEW_PATH)

 

 

 

Step 6: Duplicate & Restore and Recover database and open clone database on Target

Use duplicate command for creating Clone database like following.

 

duplicate target database to "CLONE" BACKUP LOCATION '/u01/oracle/backup';

 

 

 

 

Post EBS ( APPS ) Clone Steps

Step 7: Run Post Clone Steps on Target Database Server ( DB Tier )

 

sqlplus apps/<appspassword>

EXEC FND_CONC_CLONE.SETUP_CLEAN;

COMMIT;

 

Run Auto Config on Target Database Server like following.

 

 

[oracle@ebstest2 appsutil]$ perl $ORACLE_HOME/appsutil/bin/adbldxml.pl

Starting context file generation for db tier..

Using JVM from /u01/database/12.1.0/appsutil/jre/bin/java to execute java programs..

APPS Password:

The log file for this adbldxml session is located at:

/u01/database/12.1.0/appsutil/log/adbldxml_12171442.log

indicated by TNS_ADMIN. Context file can not be generated.

Enter Hostname of Database server: ebstest2

Enter Port of Database server: 1523

Enter SID of Database server: CLONE

Enter Database Service Name: CLONE

Enter the value for Display Variable: ebstest2:0.0

The context file has been created at:

/u01/database/12.1.0/appsutil/CLONE_ebstest2.xml

[oracle@ebstest2 appsutil]$

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



[oracle@ebstest2 bin]$

[oracle@ebstest2 bin]$ sh adconfig.sh

Enter the full path to the Context file: /u01/database/12.1.0/appsutil/CLONE_ebstest2.xml

Enter the APPS user password:

The log file for this session is located at: /u01/database/12.1.0/appsutil/log/CLONE_ebstest2/12171444/adconfig.log

AutoConfig is configuring the Database environment...

AutoConfig will consider the custom templates if present.

        Using ORACLE_HOME location : /u01/database/12.1.0

        Classpath                   : :/u01/database/12.1.0/jdbc/lib/ojdbc6.jar:/u01/database/12.1.0/appsutil/java/xmlparserv2.jar:/u01/database/12.1.0/appsutil/java:/u01/database/12.1.0/jlib/netcfg.jar:/u01/database/12.1.0/jlib/ldapjclnt12.jar

        Using Context file          : /u01/database/12.1.0/appsutil/CLONE_ebstest2.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 db121

Updating rdbms type in Context file to 64 bits

Configuring templates from ORACLE_HOME ...

AutoConfig completed successfully.

[oracle@ebstest2 bin]$

 

 

 

 

 

Step 8: Run Post Clone Steps on Target Application Server ( Apps Tier )

Check sqlnet.ora file before Post Clone Step and add following line into sqlnet.ora, then reload listener.

tcp.valid_nodechecking = yes

 

 

[applmgr@ebstest2 /]$ cd /u01/apps/fs1/EBSapps/comn/clone/bin/

[applmgr@ebstest2 bin]$

[applmgr@ebstest2 bin]$ ls -ltr

total 288

-rwxr-xr-x 1 applmgr oinstall   5101 Nov 26  2012 adchkutl.sh

-rwxr-xr-x 1 applmgr oinstall  95774 Dec  2 11:47 adclone.pl

-rwxr-xr-x 1 applmgr oinstall  47194 Dec  2 11:47 adclonectx.pl

-rwxr-xr-x 1 applmgr oinstall 125060 Dec  2 11:47 adcfgclone.pl

-rwxr-xr-x 1 applmgr oinstall  10050 Dec  2 11:47 adaddnode.pl


[applmgr@ebstest2 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/apps/fs1/EBSapps/comn/clone/bin/CloneContext_1217144637.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) [ebstest2] :

Target System Database SID : CLONE

Target System Database Server Node [ebstest2] :

Target System Database Domain Name [localdomain.local] :

Target System Base Directory : /u01/apps

Target System Base Directory set to /u01/apps

Target System Current File System Base set to /u01/apps/fs1

Target System Other File System Base set to /u01/apps/fs2

Target System Fusion Middleware Home set to /u01/apps/fs1/FMW_Home

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

Target System Appl TOP set to /u01/apps/fs1/EBSapps/appl

Target System COMMON TOP set to /u01/apps/fs1/EBSapps/comn

Target System Instance Home Directory [/u01/apps] :

Target System Instance Top set to /u01/apps/fs1/inst/apps/CLONE_ebstest2

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

Target System Display [ebstest2: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] : 2

Checking the port pool 2

done: Port Pool 2 is free

Report file located at /u01/apps/fs1/inst/apps/CLONE_ebstest2/admin/out/portpool.lst

UTL_FILE_DIR on database tier consists of the following directories.
/usr/tmp
/usr/tmp
Choose a value which will be set as APPLPTMP value on the target node [1] : 1

The new APPL_TOP context file has been created :

  /u01/apps/fs1/inst/apps/CLONE_ebstest2/appl/admin/CLONE_ebstest2.xml

Check Clone Context logfile /u01/apps/fs1/EBSapps/comn/clone/bin/CloneContext_1217144637.log for details.

Running Rapid Clone with command:

Running:

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

Running: /u01/apps/fs1/EBSapps/comn/clone/FMW/t2pjdk/bin/java -classpath /u01/apps/fs1/EBSapps/comn/clone/prereq/webtier/Scripts/ext/jlib/engine.jar:/u01/apps/fs1/EBSapps/comn/clone/prereq/webtier/oui/jlib/OraPrereq.jar:/u01/apps/fs1/EBSapps/comn/clone/prereq/webtier/oui/jlib/OraPrereqChecks.jar:/u01/apps/fs1/EBSapps/comn/clone/prereq/webtier/oui/jlib/OraInstaller.jar:/u01/apps/fs1/EBSapps/comn/clone/prereq/webtier/oui/jlib/OraInstallerNet.jar:/u01/apps/fs1/EBSapps/comn/clone/prereq/webtier/oui/jlib/srvm.jar:/u01/apps/fs1/EBSapps/comn/clone/prereq/webtier/Scripts/ext/jlib/ojdl.jar:/u01/apps/fs1/EBSapps/comn/clone/prereq/webtier/Scripts/ext/jlib/ojdl2.jar:/u01/apps/fs1/EBSapps/comn/clone/prereq/webtier/Scripts/ext/jlib/ojdl-log4j.jar:/u01/apps/fs1/EBSapps/comn/clone/prereq/webtier/oui/jlib/xmlparserv2.jar:/u01/apps/fs1/EBSapps/comn/clone/prereq/webtier/oui/jlib/share.jar:/u01/apps/fs1/EBSapps/comn/clone/jlib/java oracle.apps.ad.clone.util.FMWOracleHomePreReqCheck -prereqCheckFMW -e /u01/apps/fs1/inst/apps/CLONE_ebstest2/appl/admin/CLONE_ebstest2.xml -stage /u01/apps/fs1/EBSapps/comn/clone -log /u01/apps/fs1/EBSapps/comn/clone/FMW/logs/prereqcheck.log

Beginning application tier Apply - Mon Dec 17 14:47:50 2018

/u01/apps/fs1/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=true -Doracle.installer.oui_loc=/oui -classpath /u01/apps/fs1/EBSapps/comn/clone/jlib/xmlparserv2.jar:/u01/apps/fs1/EBSapps/comn/clone/jlib/ojdbc6.jar:/u01/apps/fs1/EBSapps/comn/clone/jlib/java:/u01/apps/fs1/EBSapps/comn/clone/jlib/oui/OraInstaller.jar:/u01/apps/fs1/EBSapps/comn/clone/jlib/oui/ewt3.jar:/u01/apps/fs1/EBSapps/comn/clone/jlib/oui/share.jar:/u01/apps/fs1/FMW_Home/webtier/../Oracle_EBS-app1/oui/jlib/srvm.jar:/u01/apps/fs1/EBSapps/comn/clone/jlib/ojmisc.jar:/u01/apps/fs1/FMW_Home/wlserver_10.3/server/lib/weblogic.jar:/u01/apps/fs1/EBSapps/comn/clone/jlib/obfuscatepassword.jar  oracle.apps.ad.clone.ApplyAppsTier -e /u01/apps/fs1/inst/apps/CLONE_ebstest2/appl/admin/CLONE_ebstest2.xml -stage /u01/apps/fs1/EBSapps/comn/clone    -showProgress -nopromptmsg

Log file located at /u01/apps/fs1/inst/apps/CLONE_ebstest2/admin/log/clone/ApplyAppsTier_12171447.log

  \    100% completed      




Completed Apply...

Mon Dec 17 15:23:08 2018

 Executing command: /u01/apps/fs1/EBSapps/10.1.2/bin/sqlplus @/u01/apps/fs1/EBSapps/appl/ad/12.0.0/patch/115/sql/truncate_ad_nodes_config_status.sql

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

Services not started

Running:

perl /u01/apps/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/adcleansrccfg.pl context=/u01/apps/fs1/inst/apps/CLONE_ebstest2/appl/admin/CLONE_ebstest2.xml promptmsg=hide logfile=/u01/apps/fs1/inst/apps/CLONE_ebstest2/admin/log/clone/ApplyAppsTier_12171447.log

*** ALL THE FOLLOWING FILES ARE REQUIRED FOR RESOLVING RUNTIME ERRORS

*** Log File = /u01/apps/fs1/inst/apps/CLONE_ebstest2/logs/appl/rgf/TXK/txkSetOAMReg_Mon_Dec_17_15_26_41_2018.log

Removing SSO/OID references if present...

stty: standard input: Inappropriate ioctl for device

stty: standard input: Inappropriate ioctl for device

Config Cleanup Complete

[applmgr@ebstest2 bin]$

 

 

Step 9: Run Pre-Clone on the Target Apps Tier for Creating Patch edition

 

        .  /u01/apps/EBSapps.env run

            cd $ADMIN_SCRIPTS_HOME

             sh adadminsrvctl.sh start




[applmgr@ebstest2 ~]$ cd $ADMIN_SCRIPTS_HOME

[applmgr@ebstest2 scripts]$

[applmgr@ebstest2 scripts]$

[applmgr@ebstest2 scripts]$ perl 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/apps/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/adProvisionEBS.pl ebs-get-serverstatus -contextfile=/u01/apps/fs1/inst/apps/CLONE_ebstest2/appl/admin/CLONE_ebstest2.xml -servername=AdminServer -promptmsg=hide 

The Oracle WebLogic Administration Server is up.

Running:

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

 Setting the wls environment

Beginning application tier Stage - Mon Dec 17 15:54:17 2018

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

Log file located at /u01/apps/fs1/inst/apps/CLONE_ebstest2/admin/log/clone/StageAppsTier_12171554.log

  |     20% completed      

Completed Stage...

Mon Dec 17 16:03:01 2018

[applmgr@ebstest2 scripts]$ pwd

/u01/apps/fs1/inst/apps/CLONE_ebstest2/admin/scripts

 

 

 

 

Step 10: Copy EBSpps directory from Run edition to patch edition on Target Application server

After pre Clone finished in fs1( Run edition, fs2 may be run edition in your environment ) , the EBSapps directory in fs1 is copied to fs2 as follows.

 

mkdir -p /u01/apps/fs2

cp -RH /u01/apps/fs1/EBSapps/ /u01/apps/fs2/

 

 

Step 11: Run Post Clone on Patch Edition of Target Application server

 

[applmgr@ebstest2 bin]$ pwd
/u01/apps/fs2/EBSapps/comn/clone/bin
[applmgr@ebstest2 bin]$ 
[applmgr@ebstest2 bin]$ 
[applmgr@ebstest2 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/apps/fs2/EBSapps/comn/clone/bin/CloneContext_1218020638.log
Target System File Edition type [run] : patch
Enter the full path of Run File System Context file : /u01/apps/fs1/inst/apps/CLONE_ebstest2/appl/admin/CLONE_ebstest2.xml

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

Target System Fusion Middleware Home set to /u01/apps/fs2/FMW_Home

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

Target System Appl TOP set to /u01/apps/fs2/EBSapps/appl

Target System COMMON TOP set to /u01/apps/fs2/EBSapps/comn

Target System Instance Top set to /u01/apps/fs2/inst/apps/CLONE_ebstest2

Target System Port Pool [0-99] : 3

Checking the port pool 3
done: Port Pool 3 is free
Report file located at /u01/apps/fs2/inst/apps/CLONE_ebstest2/admin/out/portpool.lst
The new APPL_TOP context file has been created :
/u01/apps/fs2/inst/apps/CLONE_ebstest2/appl/admin/CLONE_ebstest2.xml
Check Clone Context logfile /u01/apps/fs2/EBSapps/comn/clone/bin/CloneContext_1218020638.log for details.

Running Rapid Clone with command:

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

FMW Pre-requisite check log file location : /u01/apps/fs2/EBSapps/comn/clone/FMW/logs/prereqcheck.log

Running: /u01/apps/fs2/EBSapps/comn/clone/FMW/t2pjdk/bin/java -classpath /u01/apps/fs2/EBSapps/comn/clone/prereq/webtier/Scripts/ext/jlib/engine.jar:/u01/apps/fs2/EBSapps/comn/clone/prereq/webtier/oui/jlib/OraPrereq.jar:/u01/apps/fs2/EBSapps/comn/clone/prereq/webtier/oui/jlib/OraPrereqChecks.jar:/u01/apps/fs2/EBSapps/comn/clone/prereq/webtier/oui/jlib/OraInstaller.jar:/u01/apps/fs2/EBSapps/comn/clone/prereq/webtier/oui/jlib/OraInstallerNet.jar:/u01/apps/fs2/EBSapps/comn/clone/prereq/webtier/oui/jlib/srvm.jar:/u01/apps/fs2/EBSapps/comn/clone/prereq/webtier/Scripts/ext/jlib/ojdl.jar:/u01/apps/fs2/EBSapps/comn/clone/prereq/webtier/Scripts/ext/jlib/ojdl2.jar:/u01/apps/fs2/EBSapps/comn/clone/prereq/webtier/Scripts/ext/jlib/ojdl-log4j.jar:/u01/apps/fs2/EBSapps/comn/clone/prereq/webtier/oui/jlib/xmlparserv2.jar:/u01/apps/fs2/EBSapps/comn/clone/prereq/webtier/oui/jlib/share.jar:/u01/apps/fs2/EBSapps/comn/clone/jlib/java oracle.apps.ad.clone.util.FMWOracleHomePreReqCheck -prereqCheckFMW -e /u01/apps/fs2/inst/apps/CLONE_ebstest2/appl/admin/CLONE_ebstest2.xml -stage /u01/apps/fs2/EBSapps/comn/clone -log /u01/apps/fs2/EBSapps/comn/clone/FMW/logs/prereqcheck.log

Beginning application tier Apply - Tue Dec 18 02:07:32 2018

/u01/apps/fs2/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=true -Doracle.installer.oui_loc=/oui -classpath /u01/apps/fs2/EBSapps/comn/clone/jlib/xmlparserv2.jar:/u01/apps/fs2/EBSapps/comn/clone/jlib/ojdbc6.jar:/u01/apps/fs2/EBSapps/comn/clone/jlib/java:/u01/apps/fs2/EBSapps/comn/clone/jlib/oui/OraInstaller.jar:/u01/apps/fs2/EBSapps/comn/clone/jlib/oui/ewt3.jar:/u01/apps/fs2/EBSapps/comn/clone/jlib/oui/share.jar:/u01/apps/fs2/FMW_Home/webtier/../Oracle_EBS-app1/oui/jlib/srvm.jar:/u01/apps/fs2/EBSapps/comn/clone/jlib/ojmisc.jar:/u01/apps/fs2/FMW_Home/wlserver_10.3/server/lib/weblogic.jar:/u01/apps/fs2/EBSapps/comn/clone/jlib/obfuscatepassword.jar oracle.apps.ad.clone.ApplyAppsTier -e /u01/apps/fs2/inst/apps/CLONE_ebstest2/appl/admin/CLONE_ebstest2.xml -stage /u01/apps/fs2/EBSapps/comn/clone -showProgress -nopromptmsg 
Log file located at /u01/apps/fs2/inst/apps/CLONE_ebstest2/admin/log/clone/ApplyAppsTier_12180207.log
\ 100% completed

Completed Apply...
Tue Dec 18 02:42:12 2018

Skipping the starting of services
Enabling EBS_LOGON Trigger...

INFO : Rapid Clone completed successfully , but the AutoConfig run recorded some errors. 
Please review the AutoConfig section in the logfile. and Re-Run the entire cloning cycle , after fixing the problem. [applmgr@ebstest2 bin]$ 
[applmgr@ebstest2 bin]$

 

 

 

 

Step 12:  Start EBS Clone Environment like following

 

[applmgr@ebstest2 ~]$ cd $ADMIN_SCRIPTS_HOME
[applmgr@ebstest2 scripts]$
[applmgr@ebstest2 scripts]$ pwd
/u01/ebs/fs1/inst/apps/CLONE_ebstest2/admin/scripts

[applmgr@ebstest2 scripts]$ sh adstrtal.sh

You are running adstrtal.sh version 120.24.12020000.11


Enter the APPS username: apps

Enter the APPS password:
Enter the WebLogic Server password:

The logfile for this session is located at /u01/ebs/fs1/inst/apps/CLONE_ebstest2/logs/appl/admin/log/adstrtal.log

Executing service control script:
/u01/ebs/fs1/inst/apps/CLONE_ebstest2/admin/scripts/jtffmctl.sh start
Timeout specified in context file: 100 second(s)

script returned:
****************************************************

You are running jtffmctl.sh version 120.3.12020000.4

Validating Fulfillment patch level via /u01/ebs/fs1/EBSapps/comn/java/classes
Fulfillment patch level validated.
Starting Fulfillment Server for CLONE on port 9302 ...

jtffmctl.sh: exiting with status 0


.end std out.

.end err out.

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

Executing service control script:
/u01/ebs/fs1/inst/apps/CLONE_ebstest2/admin/scripts/adopmnctl.sh start
Timeout specified in context file: 100 second(s)

script returned:
****************************************************

You are running adopmnctl.sh version 120.0.12020000.2

Starting Oracle Process Manager (OPMN) ...

adopmnctl.sh: exiting with status 0

adopmnctl.sh: check the logfile /u01/ebs/fs1/inst/apps/CLONE_ebstest2/logs/appl/admin/log/adopmnctl.txt for more information ...


.end std out.

.end err out.

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

Executing service control script:
/u01/ebs/fs1/inst/apps/CLONE_ebstest2/admin/scripts/adapcctl.sh start
Timeout specified in context file: 100 second(s)

script returned:
****************************************************

You are running adapcctl.sh version 120.0.12020000.6

Starting OPMN managed Oracle HTTP Server (OHS) instance ...

adapcctl.sh: exiting with status 0

adapcctl.sh: check the logfile /u01/ebs/fs1/inst/apps/CLONE_ebstest2/logs/appl/admin/log/adapcctl.txt for more information ...


.end std out.

.end err out.

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

Executing service control script:
/u01/ebs/fs1/inst/apps/CLONE_ebstest2/admin/scripts/adnodemgrctl.sh start -nopromptmsg
Timeout specified in context file: -1 second(s)

script returned:
****************************************************

You are running adnodemgrctl.sh version 120.11.12020000.12


Calling txkChkEBSDependecies.pl to perform dependency checks for ALL MANAGED SERVERS
Perl script txkChkEBSDependecies.pl got executed successfully


Starting the Node Manager...
Refer /u01/ebs/fs1/inst/apps/CLONE_ebstest2/logs/appl/admin/log/adnodemgrctl.txt for details

NodeManager log is located at /u01/ebs/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome1

adnodemgrctl.sh: exiting with status 0

adnodemgrctl.sh: check the logfile /u01/ebs/fs1/inst/apps/CLONE_ebstest2/logs/appl/admin/log/adnodemgrctl.txt for more information ...


.end std out.
*** ALL THE FOLLOWING FILES ARE REQUIRED FOR RESOLVING RUNTIME ERRORS
*** Log File = /u01/ebs/fs1/inst/apps/CLONE_ebstest2/logs/appl/rgf/TXK/txkChkEBSDependecies_Sat_Dec_22_15_14_27_2018/txkChkEBSDependecies_Sat_Dec_22_15_14_27_2018.log

.end err out.

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

Executing service control script:
/u01/ebs/fs1/inst/apps/CLONE_ebstest2/admin/scripts/adalnctl.sh start
Timeout specified in context file: 100 second(s)

script returned:
****************************************************

adalnctl.sh version 120.3.12020000.4

Checking for FNDFS executable.
Starting listener process APPS_CLONE.

adalnctl.sh: exiting with status 0


adalnctl.sh: check the logfile /u01/ebs/fs1/inst/apps/CLONE_ebstest2/logs/appl/admin/log/adalnctl.txt for more information ...


.end std out.

.end err out.

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

Executing service control script:
/u01/ebs/fs1/inst/apps/CLONE_ebstest2/admin/scripts/adcmctl.sh start
Timeout specified in context file: 1000 second(s)

script returned:
****************************************************

You are running adcmctl.sh version 120.19.12020000.7

Starting concurrent manager for CLONE ...
Starting CLONE_1222@CLONE Internal Concurrent Manager
Default printer is noprint

adcmctl.sh: exiting with status 0


adcmctl.sh: check the logfile /u01/ebs/fs1/inst/apps/CLONE_ebstest2/logs/appl/admin/log/adcmctl.txt for more information ...


.end std out.

.end err out.

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

Executing service control script:
/u01/ebs/fs1/inst/apps/CLONE_ebstest2/admin/scripts/adadminsrvctl.sh start -nopromptmsg
Timeout specified in context file: -1 second(s)

script returned:
****************************************************

You are running adadminsrvctl.sh version 120.10.12020000.10

Starting WLS Admin Server...
Refer /u01/ebs/fs1/inst/apps/CLONE_ebstest2/logs/appl/admin/log/adadminsrvctl.txt for details

AdminServer logs are located at /u01/ebs/fs1/FMW_Home/user_projects/domains/EBS_domain_CLONE/servers/AdminServer/logs

adadminsrvctl.sh: exiting with status 0

adadminsrvctl.sh: check the logfile /u01/ebs/fs1/inst/apps/CLONE_ebstest2/logs/appl/admin/log/adadminsrvctl.txt for more information ...


.end std out.

.end err out.

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

Executing service control script:
/u01/ebs/fs1/inst/apps/CLONE_ebstest2/admin/scripts/admanagedsrvctl.sh start forms_server1 -nopromptmsg
Timeout specified in context file: -1 second(s)

script returned:
****************************************************

You are running admanagedsrvctl.sh version 120.14.12020000.11

Starting forms_server1...

Server specific logs are located at /u01/ebs/fs1/FMW_Home/user_projects/domains/EBS_domain_CLONE/servers/forms_server1/logs

admanagedsrvctl.sh: exiting with status 0

admanagedsrvctl.sh: check the logfile /u01/ebs/fs1/inst/apps/CLONE_ebstest2/logs/appl/admin/log/adformsctl.txt for more information ...


.end std out.

.end err out.

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

Executing service control script:
/u01/ebs/fs1/inst/apps/CLONE_ebstest2/admin/scripts/admanagedsrvctl.sh start oafm_server1 -nopromptmsg
Timeout specified in context file: -1 second(s)

script returned:
****************************************************

You are running admanagedsrvctl.sh version 120.14.12020000.11

Starting oafm_server1...

Server specific logs are located at /u01/ebs/fs1/FMW_Home/user_projects/domains/EBS_domain_CLONE/servers/oafm_server1/logs

admanagedsrvctl.sh: exiting with status 0

admanagedsrvctl.sh: check the logfile /u01/ebs/fs1/inst/apps/CLONE_ebstest2/logs/appl/admin/log/adoafmctl.txt for more information ...


.end std out.

.end err out.

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

Executing service control script:
/u01/ebs/fs1/inst/apps/CLONE_ebstest2/admin/scripts/admanagedsrvctl.sh start oacore_server1 -nopromptmsg
Timeout specified in context file: -1 second(s)

script returned:
****************************************************

You are running admanagedsrvctl.sh version 120.14.12020000.11

Starting oacore_server1...

Server specific logs are located at /u01/ebs/fs1/FMW_Home/user_projects/domains/EBS_domain_CLONE/servers/oacore_server1/logs

admanagedsrvctl.sh: exiting with status 0

admanagedsrvctl.sh: check the logfile /u01/ebs/fs1/inst/apps/CLONE_ebstest2/logs/appl/admin/log/adoacorectl.txt for more information ...


.end std out.

.end err out.

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

All enabled services for this node are started.

adstrtal.sh: Exiting with status 0

adstrtal.sh: check the logfile /u01/ebs/fs1/inst/apps/CLONE_ebstest2/logs/appl/admin/log/adstrtal.log for more information ...

You have new mail in /var/spool/mail/applmgr
[applmgr@ebstest2 scripts]$


 

 

 

 

Once EBS Clone is completed, you can connect it like following.

http://ebstest2.localdomain.local:8002 

 

 

You can read the following post to learn How to perform Cloning Oracle EBS R12.2 with DualFS.

Cloning Oracle EBS R12.2 with DualFS and AutoConfig Error Solution

 

 

 

Do you want to learn Oracle E-Business Suite ( EBS ) for Junior Apps DBA, then Click this link and read the articles.

Oracle EBS ( E-Business Suite ) Tutorials for Junior Oracle Apps DBA

About Mehmet Salih Deveci

I am Founder of SysDBASoft IT and IT Tutorial and Certified Expert about Oracle & SQL Server database, Goldengate, Exadata Machine, Oracle Database Appliance administrator with 10+years experience.I have OCA, OCP, OCE RAC Expert Certificates I have worked 100+ Banking, Insurance, Finance, Telco and etc. clients as a Consultant, Insource or Outsource.I have done 200+ Operations in this clients such as Exadata Installation & PoC & Migration & Upgrade, Oracle & SQL Server Database Upgrade, Oracle RAC Installation, SQL Server AlwaysOn Installation, Database Migration, Disaster Recovery, Backup Restore, Performance Tuning, Periodic Healthchecks.I have done 2000+ Table replication with Goldengate or SQL Server Replication tool for DWH Databases in many clients.If you need Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS Consultancy and Training you can send my email adress [email protected].-                                                                                                                                                                                                                                                 -Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS ve linux Danışmanlık ve Eğitim için  [email protected] a mail atabilirsiniz.

4 comments

  1. Hi, I recently upgraded my EBS from 12.1.3 to 12.2.8 and I must thank you for the Clone steps! Awesome!

  2. WARNING: [CVM Error Report]
    The following report lists errors encountered during CVM Phase

    /u01/app/oracle/db/tech_st/12.1.0/appsutil/bin/txkSetUnicodeCharSet.pl 1
    /u01/app/oracle/db/tech_st/12.1.0/appsutil/bin/txkCfgUtlfileDir.sh 1

    No. of scripts failed in CVM phase: 2

    WARNING: [AutoConfig Error Report]
    The following report lists errors AutoConfig encountered during each
    phase of its execution. Errors are grouped by directory and phase.
    The report format is:

    [PROFILE PHASE]
    AutoConfig could not successfully execute the following scripts:
    Directory: /u01/app/oracle/db/tech_st/12.1.0/appsutil/install/PROD_prodr122
    afdbprf.sh INSTE8_PRF 1

    [APPLY PHASE]
    AutoConfig could not successfully execute the following scripts:
    Directory: /u01/app/oracle/db/tech_st/12.1.0/appsutil/install/PROD_prodr122
    adcrobj.sh INSTE8_APPLY 1

    AutoConfig is exiting with status 2

Leave a Reply

Your email address will not be published. Required fields are marked *