Oracle EBS 12.2 Cloning


Introduction to Cloning

Cloning is the process of creating a copy of an existing Oracle E-Business Suite system. The cloning methodology described in this document covers the process used to clone an Oracle E-Business Suite Release 12.2 system.

Note: An Oracle E-Business Suite system can only be cloned to the same, or a higher, major release of a platform (operating system). For example, you can clone a system running on Oracle Solaris 10 to run on Oracle Solaris 11, but it is not supported to clone a system running on Solaris 11 to run on Solaris 10.

There are various scenarios that require cloning an Oracle E-Business Suite system:

  • Standard cloning – Copying an existing Oracle E-Business Suite system, for example, to test updates against a duplicate of a production system.  

Note: Be aware that standard cloning is different from file system cloning. Standard cloning is creating a copy of an Oracle E-Business Suite system using Rapid Clone (for example, cloning a complete Oracle E-Business Suite system to create a test copy from your production environment). In contrast, file system cloning is copying the run file system to the patch file system in online patching, and can only be undertaken with the adop phase=fs_clone command.

  • System scale-up – Adding new machines to an Oracle E-Business Suite system to provide capacity for processing increased workloads. 
  • System transformations – Altering system data or file systems, including actions such as platform migration, provisioning of high availability architectures, and data scrambling (or the preferred alternative of data masking, as described in My Oracle Support Knowledge Document 1437485.1Using Oracle E-Business Suite Release 12.1.3 Template for the Data Masking Pack with Oracle Enterprise Manager 11g). 
  • Patching and upgrading – Delivering new versions of Oracle E-Business Suite components, and providing a mechanism to create rolling environments that minimize downtimes.

An important principle in Oracle E-Business Suite cloning is that the system is cloned, rather than the topology. Producing an exact copy of the patch level and data is much more important than creating an exact copy of topology, as a cloned system must be able to provide the same output to the end user as the Source System. However, while a cloned system does not need to have the full topology of its Source, it must have available all of the topology components that are available to the Source.

Note: When cloning, ensure that you specify the actual locations for the directories involved, so that AD utilities can properly identify the directories afterward. Do not use symbolic links to specify directory locations.

High Level Standard Cloning Process for Application Tier

In addition to cloning the database tier node, the standard cloning process for application tier basically involves the following two key processes:

  1. Copy the application tier node from the Source Run Edition File System to the Target Run Edition File System. 
  2. Copy the application tier node from the Target Run Edition File System to the Target Patch Edition File System.

This high level cloning process specific to application tier can be illustrated in the following diagram:

  1. Prepare the Source System database tier for cloning
    1. Log on to the Source System as the oracle user.
    2. Source the Database tier environment file.
    3. Execute the following commands:

$ cd <RDBMS ORACLE_HOME>/appsutil/scripts/<CONTEXT_NAME> 
$ perl adpreclone.pl dbTier

[oracle@source_dbhost CRP1_source_dbhost]$ 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.16

Enter the APPS User Password:

Running:

perl /u01/install/PROD/11.2.0/appsutil/bin/adclone.pl java=/u01/install/PROD/11.2.0/appsutil/jre mode=stage stage=/u01/install/PROD/11.2.0/appsutil/clone component=dbTier method=CUSTOM dbctx=/u01/install/PROD/11.2.0/appsutil/CRP1_source_dbhost.xml showProgress

Beginning database tier Stage – Tue Mar 31 16:22:17 2015

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

APPS Password :

Log file located at /u01/install/PROD/11.2.0/appsutil/log/CRP1_source_dbhost/StageDBTier_03311622.log

–     50% completed      

Completed Stage…

Tue Mar 31 16:22:47 2015

[oracle@source_dbhost CRP1_source_dbhost]$ 

  1. Prepare the Source System application tier for cloning
  1. Log on to the primary node of the Source System as the applmgr user.
  2. Source the environment file of the Run Edition File system.

    You can use the following command to confirm that the environment variable FILE_EDITION points to the Run Edition File System:

$ echo $FILE_EDITION
It should return the value: run

  1. Execute the following commands:

[root@source_appshost ~]# su – applmgr

 

  E-Business Suite Environment Information

  —————————————-

  RUN File System           : /u01/install/APPS/fs1/EBSapps/appl
  PATCH File System         : /u01/install/APPS/fs2/EBSapps/appl
Non-Editioned File System : /u01/install/APPS/fs_ne
DB Host: source_dbhost.domain  Service/SID: CRP1

 E-Business Suite Environment Setting
 ————————————

  – Enter [R/r] for sourcing Run File System Environment file, or

  – Enter [P/p] for sourcing Patch File System Environment file, or

  – Enter anything else to exit

Please choose the environment file you wish to source [R/P]:R

Sourcing the RUN File System …

[applmgr@source_appshost ~]$ cd $ADMIN_SCRIPTS_HOME

[applmgr@source_appshost 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.16

Enter the APPS User Password:

Enter the Weblogic AdminServer password :

Checking the status of the Oracle WebLogic Administration Server….

Running perl /u01/install/APPS/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/adProvisionEBS.pl ebs-get-serverstatus -contextfile=/u01/install/APPS/fs1/inst/apps/CRP1_source_appshost/appl/admin/CRP1_source_appshost.xml -servername=AdminServer -promptmsg=hide

 

The Oracle WebLogic Administration Server is up.

 

Running:

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

Setting the wls environment

Beginning application tier Stage – Thu Mar 19 09:47:15 2015

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

Log file located at /u01/install/APPS/fs1/inst/apps/CRP1_source_appshost/admin/log/clone/StageAppsTier_03190947.log

\     20% completed

Completed Stage…

Thu Mar 19 09:55:17 2015

[applmgr@source_appshost scripts]$

  1. Copy both database tier and application tier nodes from the Source System to the Target System

    Copy the application tier file system from the Source node to the Target node by executing the following steps in the order listed. Ensure the application tier files copied to the Target System are owned by the Target applmgr user, and that the database node files are owned by the Target oracle user. 

    Copy the database node file system

    Log on to the Source System database node as the oracle user, and then: 

  1. Perform a normal shut down of the Source System database. 
  2. Copy the database (.dbf) files from the Source System to the Target System. 
  3. Copy the Source System database ORACLE_HOME to the Target System. 
  4. Start the Source applications system database and application tier processes.
  1. Copy the application tier file from the Source “Run Edition File System” to the Target “Run Edition File System”

    Log on to Run Edition File System in the Source System application tier nodes as the applmgr user. 

    Copy the following application tier directories from the Source Node to the Target Run Edition File System application tier node:

<APPL_TOP> 
<COMMON_TOP>
<OracleAS Tools 10.1.2 ORACLE_HOME>

  1. Configure the Target System Database

Run the following commands to configure the Target System. You will be prompted for specific Target System values such as SID, paths, and ports.

Configure the Target System database server

Log on to the Target System as the oracle user and enter the following commands:

$ cd <RDBMS ORACLE_HOME>/appsutil/clone/bin 
$ perl adcfgclone.pl dbTier

 

[oracle@dbhost ~]$ cd /u01/install/DEV/11.2.0/appsutil/clone/bin
[oracle@dbhost bin]$ perl adcfgclone.pl dbTier

                     Copyright (c) 2011 Oracle Corporation

                        Redwood Shores, California, USA

                        Oracle E-Business Suite Rapid Clone

                                 Version 12.2

                      adcfgclone Version 120.63.12020000.35

Enter the APPS password :

Running:

/u01/install/DEV/11.2.0/appsutil/clone/bin/../jre/bin/java -Xmx600M -cp /u01/install/DEV/11.2.0/appsutil/clone/jlib/java:
/u01/install/DEV/11.2.0/appsutil/clone/jlib/xmlparserv2.jar:
/u01/install/DEV/11.2.0/appsutil/clone/jlib/ojdbc5.jar:
/u01/install/DEV/11.2.0/appsutil/clone/jlib/obfuscatepassword.jar:
/u01/install/DEV/11.2.0/appsutil/clone/jlib/ojmisc.jar:
/u01/install/DEV/11.2.0/appsutil/clone/jlib/java:
/u01/install/DEV/11.2.0/appsutil/clone/jlib/emCfg.jar oracle.apps.ad.context.CloneContext -e /u01/install/DEV/11.2.0/appsutil/clone/bin/../context/db/CTXORIG.xml -validate -pairsfile /tmp/adpairsfile_1471.lst -stage /u01/install/DEV/11.2.0/appsutil/clone  2> /tmp/adcfgclone_1471.err; echo $? > /tmp/adcfgclone_1471.res

Log file located at /u01/install/DEV/11.2.0/appsutil/clone/bin/CloneContext_0331162811.log

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

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

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

Target System Database SID : DEV

Target System Base Directory : /u01/install/DEV

Target System utl_file_dir Directory List : /usr/tmp

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

Target System DATA_TOP Directory 1 [/u01/install/PROD/data] : /u01/install/DEV/data

Target System RDBMS ORACLE_HOME Directory [/u01/install/DEV/11.2.0] : /u01/install/DEV/11.2.0

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

Target System Display [dbhost:0.0] : dbhost:1.0

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/install/DEV/11.2.0/appsutil/temp/portpool.lst

Complete port information available at /u01/install/DEV/11.2.0/appsutil/temp/portpool.lst

Backing up /u01/install/DEV/11.2.0/appsutil/DEV_dbhost.xml to /u01/install/DEV/11.2.0/appsutil/DEV_dbhost.xml.bak

Creating the new Database Context file from :  /u01/install/DEV/11.2.0/appsutil/clone/context/db/adxdbctx.tmp

The new database context file has been created :  /u01/install/DEV/11.2.0/appsutil/DEV_dbhost.xml

Log file located at /u01/install/DEV/11.2.0/appsutil/clone/bin/CloneContext_0331194625.log

Check Clone Context logfile /u01/install/DEV/11.2.0/appsutil/clone/bin/CloneContext_0331194625.log for details.

Running Rapid Clone with command:

Running:

perl /u01/install/DEV/11.2.0/appsutil/clone/bin/adclone.pl java=/u01/install/DEV/11.2.0/appsutil/clone/bin/../jre mode=apply stage=/u01/install/DEV/11.2.0/appsutil/clone component=dbTier method=CUSTOM dbctxtg=/u01/install/DEV/11.2.0/appsutil/DEV_dbhost.xml showProgress contextValidated=true

Beginning database tier Apply – Tue Mar 31 19:48:04 2015

/u01/install/DEV/11.2.0/appsutil/clone/bin/../jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=true -Doracle.installer.oui_loc=/u01/install/DEV/11.2.0/oui
-classpath /u01/install/DEV/11.2.0/appsutil/clone/jlib/xmlparserv2.jar:
/u01/install/DEV/11.2.0/appsutil/clone/jlib/ojdbc6.jar:
/u01/install/DEV/11.2.0/appsutil/clone/jlib/java:
/u01/install/DEV/11.2.0/appsutil/clone/jlib/oui/OraInstaller.jar:
/u01/install/DEV/11.2.0/appsutil/clone/jlib/oui/ewt3.jar:
/u01/install/DEV/11.2.0/appsutil/clone/jlib/oui/share.jar:
/u01/install/DEV/11.2.0/appsutil/clone/jlib/oui/srvm.jar:
/u01/install/DEV/11.2.0/appsutil/clone/jlib/ojmisc.jar
oracle.apps.ad.clone.ApplyDBTier
-e /u01/install/DEV/11.2.0/appsutil/DEV_dbhost.xml
-stage /u01/install/DEV/11.2.0/appsutil/clone   -showProgress

APPS Password : Log file located at /u01/install/DEV/11.2.0/appsutil/log/DEV_dbhost/ApplyDBTier_03311948.log

  |      0% completed       Determining Source system database type (“single” or “rac”).

Source system indentified as being of type “single”!

  |     50% completed      

Completed Apply…

Tue Mar 31 19:54:47 2015

Starting database listener for DEV:

Running:

/u01/install/DEV/11.2.0/appsutil/scripts/DEV_dbhost/addlnctl.sh start DEVLogfile: /u01/install/DEV/11.2.0/appsutil/log/DEV_dbhost/addlnctl.txt

You are running addlnctl.sh version 120.4
Starting listener process DEV …

Listener DEV has already been started.
addlnctl.sh: exiting with status 0

addlnctl.sh: check the logfile /u01/install/DEV/11.2.0/appsutil/log/DEV_dbhost/addlnctl.txt for more information … 

Do you want to change the password for all EBS Schemas? (y/n) [n]) : n

Do you want to change the apps password? (y/n) [n]) : n

Do you want to change the sys and system passwords? (y/n) [n]) : n

[oracle@dbhost bin]$

 

  1. Configure the Target System application tier server nodes (RUN File System)

Log on to the Run Edition File System in the Target System as the applmgr user and enter the following commands:

$ cd <COMMON_TOP>/clone/bin
$ perl adcfgclone.pl appsTier

 

[applmgr@target_appshost apps]$ cd /u01/install/DEV/fs1/EBSapps/comn/clone/bin
[applmgr@target_appshost bin]$ perl adcfgclone.pl appsTier

                     Copyright (c) 2011 Oracle Corporation
                        Redwood Shores, California, USA
                        Oracle E-Business Suite Rapid Clone

                                 Version 12.2

                      adcfgclone Version 120.63.12020000.37

Enter the APPS password :

Running:

/u01/install/DEV/fs1/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M
-classpath /u01/install/DEV/fs1/EBSapps/comn/clone/jlib/obfuscatepassword.jar:
/u01/install/DEV/fs1/EBSapps/comn/clone/jlib/ojmisc.jar:
/u01/install/DEV/fs1/EBSapps/comn/clone/jlib/java:
/u01/install/DEV/fs1/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.clone.util.OPWrapper -encryptpwd /u01/install/DEV/fs1/EBSapps/comn/clone/bin/../FMW/tempinfoApps.txt

Enter the Weblogic AdminServer password :

Running:

/u01/install/DEV/fs1/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M
-classpath /u01/install/DEV/fs1/EBSapps/comn/clone/jlib/obfuscatepassword.jar:
/u01/install/DEV/fs1/EBSapps/comn/clone/jlib/ojmisc.jar:
/u01/install/DEV/fs1/EBSapps/comn/clone/jlib/java:
/u01/install/DEV/fs1/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.clone.util.OPWrapper /u01/install/DEV/fs1/EBSapps/comn/clone/bin/../FMW/tempinfo.txt

Running:

/u01/install/DEV/fs1/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M
-classpath /u01/install/DEV/fs1/EBSapps/comn/clone/jlib/obfuscatepassword.jar:
/u01/install/DEV/fs1/EBSapps/comn/clone/jlib/ojmisc.jar:
/u01/install/DEV/fs1/EBSapps/comn/clone/jlib/java:
/u01/install/DEV/fs1/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.clone.util.OPWrapper /u01/install/DEV/fs1/EBSapps/comn/clone/bin/../FMW/EBSDataSource

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

Running:

/u01/install/DEV/fs1/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -cp /u01/install/DEV/fs1/EBSapps/comn/clone/jlib/java:
/u01/install/DEV/fs1/EBSapps/comn/clone/jlib/xmlparserv2.jar:
/u01/install/DEV/fs1/EBSapps/comn/clone/jlib/ojdbc6.jar:
/u01/install/DEV/fs1/EBSapps/comn/clone/jlib/obfuscatepassword.jar:
/u01/install/DEV/fs1/EBSapps/comn/clone/jlib/ojmisc.jar:
/u01/install/DEV/fs1/EBSapps/comn/clone/jlib/java:
/u01/install/DEV/fs1/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.context.CloneContext -e /u01/install/DEV/fs1/EBSapps/comn/clone/bin/../context/apps/CTXORIG.xml
-validate -pairsfile /tmp/adpairsfile_2838.lst
-stage /u01/install/DEV/fs1/EBSapps/comn/clone  2> /tmp/adcfgclone_2838.err;
echo $? > /tmp/adcfgclone_2838.res

Log file located at /u01/install/DEV/fs1/EBSapps/comn/clone/bin/CloneContext_0401050637.log

Target System File Edition type [run] : run

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

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

Target System Database SID : DEV

Target System Database Server Node [target_appshost] : dbhost

Target System Database Domain Name [domain] : domain

Target System Base Directory : /u01/install/DEV

Target System Base Directory set to /u01/install/DEV

Target System Current File System Base set to /u01/install/DEV/fs1

Target System Other File System Base set to /u01/install/DEV/fs2

Target System Fusion Middleware Home set to /u01/install/DEV/fs1/FMW_Home

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

Target System Appl TOP set to /u01/install/DEV/fs1/EBSapps/appl

Target System COMMON TOP set to /u01/install/DEV/fs1/EBSapps/comn

Target System Instance Home Directory [/u01/install/DEV] : /u01/install/DEV

Target System Instance Top set to /u01/install/DEV/fs1/inst/apps/DEV_target_appshost

Do you want to preserve the Display [localhost:5.0] (y/n)  : n

Target System Display [target_appshost:0.0] : target_appshost:1.0

Target System Root Service [enabled] : enabled

Target System Web Administration [enabled] : enabled

Target System Web Entry Point Services [enabled] : enabled

Target System Web Application Services [enabled] : enabled

Target System Batch Processing Services [enabled] : enabled

Target System Other Services [disabled] : 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/install/DEV/fs1/inst/apps/DEV_target_appshost/admin/out/portpool.lst

Complete port information available at /u01/install/DEV/fs1/inst/apps/DEV_target_appshost/admin/out/portpool.lst

UTL_FILE_DIR on database tier consists of the following directories.

  1. /usr/tmp
  2. /usr/tmp
  3. /u01/install/DEV/11.2.0/appsutil/outbound/DEV_dbhost
  4. /usr/tmp

Choose a value which will be set as APPLPTMP value on the target node [1] : 1
Creating the new APPL_TOP Context file from :  /u01/install/DEV/fs1/EBSapps/comn/clone/context/apps/adxmlctx.tmp
The new APPL_TOP context file has been created :  /u01/install/DEV/fs1/inst/apps/DEV_target_appshost/appl/admin/DEV_target_appshost.xml

Log file located at /u01/install/DEV/fs1/EBSapps/comn/clone/bin/CloneContext_0401051142.log

Check Clone Context logfile /u01/install/DEV/fs1/EBSapps/comn/clone/bin/CloneContext_0401051142.log for details.

Running Rapid Clone with command:

Running:

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

FMW Pre-requisite check log file location : /u01/install/DEV/fs1/EBSapps/comn/clone/FMW/logs/prereqcheck.log

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

Beginning application tier Apply – Wed Apr  1 05:12:31 2015

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

Log file located at /u01/install/DEV/fs1/inst/apps/DEV_target_appshost/admin/log/clone/ApplyAppsTier_04010512.log

  /    100% completed  

Completed Apply…

Wed Apr  1 05:32:51 2015

 Executing command: /u01/install/DEV/fs1/EBSapps/10.1.2/bin/sqlplus @/u01/install/DEV/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 DEV? (y/n) [n] : y

Services not started

[applmgr@target_appshost bin]$

When asked the question:
“Do you want to startup the Application Services for mult35? (y/n)” you should answer ‘y’.

  1. Configure the Target System application tier server nodes (PATCH File System)

    1. Source the environment file of the Run Edition File System and run plon the Run Edition File System.

[root@target_appshost ~]# su – applmgr

  E-Business Suite Environment Information

  —————————————-

  RUN File System           : /u01/install/DEV/fs1/EBSapps/appl

  PATCH File System         : /u01/install/DEV/fs2/EBSapps/appl

  Non-Editioned File System : /u01/install/DEV/fs_ne

  DB Host: dbhost.domain  Service/SID: DEV

  E-Business Suite Environment Setting

  ————————————

  – Enter [R/r] for sourcing Run File System Environment file, or
  – Enter [P/p] for sourcing Patch File System Environment file, or
– Enter anything else to exit

  Please choose the environment file you wish to source [R/P]:R

  Sourcing the RUN File System …

[applmgr@target_appshost ~]$ cd $ADMIN_SCRIPTS_HOME

[applmgr@target_appshost 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.16

Enter the APPS User Password:

Enter the Weblogic AdminServer password :

 Checking the status of the Oracle WebLogic Administration Server….

 Running perl /u01/install/DEV/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/adProvisionEBS.pl ebs-get-serverstatus -contextfile=/u01/install/DEV/fs1/inst/apps/DEV_target_appshost/appl/admin/DEV_target_appshost.xml -servername=AdminServer -promptmsg=hide 

The Oracle WebLogic Administration Server is up.

Running:

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

 Setting the wls environment

Beginning application tier Stage – Wed Apr  1 07:38:32 2015

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

Log file located at /u01/install/DEV/fs1/inst/apps/DEV_target_appshost/admin/log/clone/StageAppsTier_04010738.log

  –     20% completed    

Completed Stage…

Wed Apr  1 07:45:41 2015

[applmgr@target_appshost scripts]$

Shutdown the Application running on RUN file system

Copy Oracle E-Business Suite application directories from the Run Edition File System to the Patch Edition File System. 

Note: Make sure you pay attention to symbolic links under <OracleAS Tools 10.1.2 ORACLE_HOME> and <COMMON_TOP> directories when copying files.

  1. Log on to the Patch Edition File System in the Target System as the applmgr user and enter the following commands:

$ cd <COMMON_TOP>/clone/bin
$ perl adcfgclone.pl appsTier 

[applmgr@target_appshost bin]$ cd /u01/install/DEV/fs2/EBSapps/comn/clone/bin
[applmgr@target_appshost bin]$ perl adcfgclone.pl appsTier

                     Copyright (c) 2011 Oracle Corporation
                        Redwood Shores, California, USA

                        Oracle E-Business Suite Rapid Clone

                                 Version 12.2

                      adcfgclone Version 120.63.12020000.37

Enter the APPS password :

Running:

/u01/install/DEV/fs2/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -classpath /u01/install/DEV/fs2/EBSapps/comn/clone/jlib/obfuscatepassword.jar:
/u01/install/DEV/fs2/EBSapps/comn/clone/jlib/ojmisc.jar:
/u01/install/DEV/fs2/EBSapps/comn/clone/jlib/java:
/u01/install/DEV/fs2/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.clone.util.OPWrapper -encryptpwd /u01/install/DEV/fs2/EBSapps/comn/clone/bin/../FMW/tempinfoApps.txt

Enter the Weblogic AdminServer password :

Running:

/u01/install/DEV/fs2/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -classpath /u01/install/DEV/fs2/EBSapps/comn/clone/jlib/obfuscatepassword.jar:
/u01/install/DEV/fs2/EBSapps/comn/clone/jlib/ojmisc.jar:
/u01/install/DEV/fs2/EBSapps/comn/clone/jlib/java:
/u01/install/DEV/fs2/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.clone.util.OPWrapper /u01/install/DEV/fs2/EBSapps/comn/clone/bin/../FMW/tempinfo.txt

Running:

/u01/install/DEV/fs2/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -classpath /u01/install/DEV/fs2/EBSapps/comn/clone/jlib/obfuscatepassword.jar:
/u01/install/DEV/fs2/EBSapps/comn/clone/jlib/ojmisc.jar:
/u01/install/DEV/fs2/EBSapps/comn/clone/jlib/java:
/u01/install/DEV/fs2/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.clone.util.OPWrapper /u01/install/DEV/fs2/EBSapps/comn/clone/bin/../FMW/EBSDataSource

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

Running:

/u01/install/DEV/fs2/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -cp /u01/install/DEV/fs2/EBSapps/comn/clone/jlib/java:
/u01/install/DEV/fs2/EBSapps/comn/clone/jlib/xmlparserv2.jar:
/u01/install/DEV/fs2/EBSapps/comn/clone/jlib/ojdbc6.jar:
/u01/install/DEV/fs2/EBSapps/comn/clone/jlib/obfuscatepassword.jar:
/u01/install/DEV/fs2/EBSapps/comn/clone/jlib/ojmisc.jar:
/u01/install/DEV/fs2/EBSapps/comn/clone/jlib/java:
/u01/install/DEV/fs2/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.context.CloneContext -e /u01/install/DEV/fs2/EBSapps/comn/clone/bin/../context/apps/CTXORIG.xml
-validate -pairsfile /tmp/adpairsfile_31120.lst
-stage /u01/install/DEV/fs2/EBSapps/comn/clone  2> /tmp/adcfgclone_31120.err;
echo $? > /tmp/adcfgclone_31120.res

Log file located at /u01/install/DEV/fs2/EBSapps/comn/clone/bin/CloneContext_0401144631.log

Target System File Edition type [run] : patch

Enter the full path of Run File System Context file : /u01/install/DEV/fs1/inst/apps/DEV_target_appshost/appl/admin/DEV_target_appshost.xml

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

Target System Fusion Middleware Home set to /u01/install/DEV/fs2/FMW_Home

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

Target System Appl TOP set to /u01/install/DEV/fs2/EBSapps/appl

Target System COMMON TOP set to /u01/install/DEV/fs2/EBSapps/comn

Target System Instance Top set to /u01/install/DEV/fs2/inst/apps/DEV_target_appshost

Target System Port Pool [0-99] : 1

Checking the port pool 1
done: Port Pool 1 is free

Report file located at /u01/install/DEV/fs2/inst/apps/DEV_target_appshost/admin/out/portpool.lst
Complete port information available at /u01/install/DEV/fs2/inst/apps/DEV_target_appshost/admin/out/portpool.lst

UTL_FILE_DIR on database tier consists of the following directories.

  1. /usr/tmp
  2. /usr/tmp
  3. /u01/install/DEV/11.2.0/appsutil/outbound/DEV_dbhost
  4. /usr/tmp

Choose a value which will be set as APPLPTMP value on the target node [1] : 1

Creating the new APPL_TOP Context file from :  /u01/install/DEV/fs2/EBSapps/comn/clone/context/apps/adxmlctx.tmp

The new APPL_TOP context file has been created :  /u01/install/DEV/fs2/inst/apps/DEV_target_appshost/appl/admin/DEV_target_appshost.xml

Log file located at /u01/install/DEV/fs2/EBSapps/comn/clone/bin/CloneContext_0401144631.log

Check Clone Context logfile /u01/install/DEV/fs2/EBSapps/comn/clone/bin/CloneContext_0401144631.log for details.

Running Rapid Clone with command:

Running:

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

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

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

Beginning application tier Apply – Wed Apr  1 14:48:10 2015

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

Log file located at /u01/install/DEV/fs2/inst/apps/DEV_target_appshost/admin/log/clone/ApplyAppsTier_04011448.log

  \    100% completed     

Completed Apply…

Wed Apr  1 15:06:46 2015

Looking for incomplete CLONE record in ad_adop_session_patches table

The CLONE record status is no rows selected

[applmgr@target_appshost bin]$

  1. Reset Password

  2. SYSADMIN Password

[applmgr@target_appshost ~]$ AFPASSWD -f SYSADMIN

Enter the ORACLE password of Application Object Library ‘APPSUSER’:

Connected successfully to APPS.

Log file: AFPWD_DEV_868117.log

Enter new password for user [SYSADMIN]:

Verify new password for user [SYSADMIN]:

[applmgr@target_appshost ~]$ cat AFPWD_DEV_868117.log

+—————————————————————————-+

Application Object Library – AFPASSWD

+—————————————————————————-+

Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.

+—————————————————————————-+

Current system time is 01-APR-15 12:01:56 

+—————————————————————————-+

Working…

Password is changed successfully for user SYSADMIN.

AFPASSWD completed successfully.

+—————————————————————————-+

Current system time is 01-APR-15 12:02:24 

+—————————————————————————-+

[applmgr@target_appshost ~]$

  1. APPS Password

    Source Run Filesystem and execute AFPASSSWD

[root@target_appshost ~]# su – applmgr

  E-Business Suite Environment Information

  —————————————-

  RUN File System           : /u01/install/DEV/fs1/EBSapps/appl

  PATCH File System         : /u01/install/DEV/fs2/EBSapps/appl

  Non-Editioned File System : /u01/install/DEV/fs_ne

  DB Host: dbhost.domain  Service/SID: DEV

  E-Business Suite Environment Setting

  ————————————

  – Enter [R/r] for sourcing Run File System Environment file, or

  – Enter [P/p] for sourcing Patch File System Environment file, or

  – Enter anything else to exit

  Please choose the environment file you wish to source [R/P]:R

  Sourcing the RUN File System …

[applmgr@target_appshost ~]$ AFPASSWD -c APPS -s APPLSYS

Enter the ORACLE password of Application Object Library ‘APPSUSER’:

Connected successfully to APPS.

Enter the password for your ‘SYSTEM’ ORACLE schema:

Connected successfully to SYSTEM.

Log file: AFPWD_DEV_158811.log

Enter new password for user:       <Enter new APPS password>

Verify new password for user:     <Re-Enter new APPS password>

AFPASSWD completed successfully.

[applmgr@target_appshost ~]$ sqlplus apps/****

SQL*Plus: Release 10.1.0.5.0 – Production on Sat Apr 4 14:47:09 2015

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 – 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> show user

USER is “APPS”

SQL> exit

Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 – 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

[applmgr@target_appshost ~]$ cat AFPWD_DEV_158811.log

+—————————————————————————-+

Application Object Library – AFPASSWD

+—————————————————————————-+

Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.

+—————————————————————————-+

Current system time is 04-APR-15 14:46:50 

+—————————————————————————-+

Working…

AFPASSWD completed successfully.

+—————————————————————————-+

Current system time is 04-APR-15 14:47:02 

+—————————————————————————-+

[applmgr@target_appshost ~]$

  1. Run autoconfig with the newly changed password.

    [applmgr@target_appshost ~]$ adautocfg.sh -appspass=devapps

    iii. Start AdminServer
    [applmgr@target_appshost ~]$ $INST_TOP/admin/scripts/adadminsrvctl.sh start

  2. Change the “apps” password in WLS Datasource as follows
  3. Log in to WLS Administration Console.
  4. Click Lock & Edit in Change Center.
  5. In the Domain Structure tree, expand Services, then select Data Sources.
  6. On the “Summary of JDBC Data Sources” page, select EBSDataSource.
  7. On the “Settings for EBSDataSource” page, select the Connection Pool tab.
  8. Enter the new password in the “Password” field.
  9. Enter the new password in the “Confirm Password” field.
  10. Click Save.
  11. Click Activate Changes in Change Center.

 

  1. Update Below Profiles at Site Level

Profile Option Name Value
Java Color Scheme Red
Site Name :::::::::::: [ DEV ]  – Cloned from CRP1 on 01-April-2015 ::::::::::::
Signon Password Length 6
Signon Password Hard To Guess Yes
Signon Password No Reuse 180
Sign-On:Notification Yes
ICX:Session Timeout 30

 Check the Login and release the environment 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s