Setup Menus in Admin Panel

DBATalent

Cold cloning Oracle E-Business Suite R12

Knowledge Base > Oracle Applications > Cold cloning Oracle E-Business Suite R12

in Oracle Applications

The following document provides a brief insight about how to cold clone Oracle E-Business Suite to a remote machine assuming both are running Oracle enterprise Linux 6.4

Contents:

Introduction:

Cloning is the act of creating an identical copy of an existing Oracle E-Business Suite system. The system to be cloned is referred to as the source system, and the newly created system is referred to as the target system.

Cloning has various uses, such as:

  • Creating a copy of a production system for patch testing
  • To add new nodes, or rename an instance
  • Creating a staging area to reduce the downtime required for patching
  • Refreshing a test system from a production system
  • Moving an existing system to a different machine or platform

Cloning an Oracle E-Business Suite Release 12 system can be accomplished by running the Rapid Clone tool.

 

Pre-clone checks:

  • Two machines must be running the same version of the same operating system. Source system can be running an earlier version of the same operating system that is being used on the target system.  But it is not supported to clone from a later version of an operating system to an earlier one.
  • Install required RPM’s and perform other prerequisites on target machine as per the installation document.
  • Make sure to source the environments for oracle and applmgr environments for the database and applications tiers.

 

Pre-clone Tasks:

We need to run the pre-clone scripts for the database and applications tiers before we can clone the environment.

  • Prepare the source system database tier:

The pre-clone script for database tier is called adpreclone.pl. It lives under the
$ORACLE_HOME/appsutil/scripts/. This script prepares the source system database tier for cloning by creating all the necessary directories, scripts and drivers. This script does not make any changes to the source system. It only creates clone stage area for dbTier in,

$ORACLE_HOME/appsutil/clone

For generating the clone stage area run ‘adpreclone.pl’ as shown in the picture below. This script can be found in ‘$ORACLE_HOME/appsutil/scripts/<SID_hostname>’ directory.

cold_clone_ebs_dbatalent_1

After the script is executed succesfully, a new folder ‘clone’ gets created as shown below,

cold_clone_ebs_dbatalent_2

  • Prepare the source system application tier:

The pre-clone script for application tier is also called adpreclone.pl. It lives under
$ORACLE_HOME/appsutil/scripts/. This script prepares the source system application tier for cloning by creating all the necessary directories, scripts and drivers. This script does not make any changes to the source system. It only creates clone stage area for application tier in,

$COMMON_TOP/clone

For generating the clone stage area run ‘adpreclone.pl’ as shown in the picture below. This script can be found in ‘$ADMIN_SCRIPTS_HOME’ directory.

cold_clone_ebs_dbatalent_3

cold_clone_ebs_dbatalent_4

Once the script is successfully run, a directory ‘clone’ gets created under $COMMON_TOP as shown below,

cold_clone_ebs_dbatalent_5

 

Cloning E-Business Suite:

  • Shutdown application tier services and database tier services by using the scripts provided.
  • Copy source system db and apps files to target system same file path by directly copying them to another server or you can compress the files and copy which will save bandwidth and time.

To compress database and application tier use the following commands.

$ tar -cf dbtier.tar /u01/oraR12/db

$tar -cf appstier.tar /u01/oraR12/apps

After copy, to uncompress these file use the following commands,

$ tar -xf dbtier.tar

$ tar -xf appstier.tar

Here we are going to directly copy between two machines without compressing the files as below,

cold_clone_ebs_dbatalent_6

  • After successful copy, navigate to ‘/u01/oraR12/db/tech_st/11.1.0/appsutil/clone/bin’ and run ‘adcfgclone.pl’ in the format shown below.

cold_clone_ebs_dbatalent_7

Essentials operations Rapid clone performs on database tier are mentioned below.

  1. Creates the Database context file
  2. Registers the ORACLE_HOME in the Global Inventory
  3. Relinks the ORACLE_HOME
  4. Configures the ORACLE_HOME
  5. Recreates the database control files
  6. Starts the database
  7. Configures the database
  8. Starts the database listener

 

The Rapid Clone utility will present the values required for creating new context file for database tier. Enter the values as shown below.

cold_clone_ebs_dbatalent_8(1)

 

cold_clone_ebs_dbatalent_9

 

After creating the context file, rapid clone will start the database tier and exit. Cloning the database tier is now complete.

  • Now, login as ‘applmgr’ and navigate to ‘/u01/applR12/apps/apps_st/comn/clone/bin’ and and run ‘adcfgclone.pl’ in the format shown below.

cold_clone_ebs_dbatalent_10

 

 

Essentials operations Rapid clone performs on application tier are mentioned below.

  1. Creates the Applications context file
  2. Registers the OracleAS 10.1.2 and OracleAS 10.1.3 ORACLE_HOMEs in the Global Inventory
  3. Relinks the OracleAS ORACLE_HOMEs
  4. Configures the OracleAS ORACLE_HOMEs
  5. Configures the APPL_TOP
  6. Creates the INST_TOP
  7. Starts application tier server processes

 

The Rapid Clone utility will present the values required for creating new context file for database tier. Enter the values as shown below.

cold_clone_ebs_dbatalent_11

 

cold_clone_ebs_dbatalent_12

 

After creating the context file, rapid clone will start the database tier and exit. This completes cold cloning of Oracle E-Business Suite. The login page can be accessed and looks like below.

cold_clone_ebs_dbatalent_13

0