Sie sind auf Seite 1von 12

Cloning Oracle Application Rel 11i, with Rapid Clone (ID 230672.

1) 1

Cloning Oracle Applications Release 11i with Rapid Clone

May 2011

Cloning creates an identical copy of an existing Oracle Applications System. There are various reasons for
cloning an Oracle Applications System such as:

Creating a copy of the production System for testing updates.


Migrating an existing System to new hardware.
Creating a stage area to reduce patching downtime.

This document describes the process of cloning an Oracle Applications Release 11i System. The most
current version of this note is document 230672.1 on My Oracle Support. A FAQ is also available
indocument 216664.1 on My Oracle Support.

Note: Rapid Clone is currently not supported on HP OpenVMS Alpha.


Attention: Windows users. This document typically uses UNIX syntax when specifying
directories; Please substitute the appropriate Windows syntax
Note: The Cloning methodology posted on this document requires full Autoconfig compliance.

Section 1: Prerequisites
Tasks to perform before using Rapid Clone.
Section 2: Clone Oracle Applications 11i
Tasks to prepare, copy, configure, and verify a cloned Applications System.
Section 3: Finishing Tasks
Tasks to complete the cloning process.
Section 4: Advanced Cloning Methods
Tasks for advanced options such as refreshing and Multi-Node cloning.

Conventions

Convention Meaning
Source System Applications System being cloned.
Target System Applications System being created as a copy of the Source.
User which owns the Applications File System (APPL_TOP and Application
APPLMGR
Tier technology stack)
User which owns the Database File System (RDBMS ORACLE_HOME and
ORACLE
Database files).
The CONTEXT_NAME variable refers to the name of the Applications Context
file. For Systems installed with Rapid Install 11.5.8 or earlier, this value will
CONTEXT_NAME
typically be set to [SID]. For new AutoConfig or Rapid Clone customers,
CONTEXT_NAME will be set to [SID]_[HOSTNAME].
Monospace Text Represents command line text. Type this command exactly as shown.
Cloning Oracle Application Rel 11i, with Rapid Clone (ID 230672.1) 2

Text enclosed in brackets represents a variable. Substitute a value for the


[]
variable text. Do not type the brackets.

Section 1: Prerequisites
Before cloning, prepare the Source System by applying patches and running AutoConfig.

1. Verify Source and Target Nodes software versions


In addition to the Oracle Applications software requirements (see the Oracle Applications Release
Notes and the Oracle Applications Installation Update Notes for your Platform), the following
software component versions must exist on the Source and/or Target Nodes. The location column
indicates the Node where the software component must be present.

Min.
Software Location Details
Version
Apply OUI22 patch 5035661 on every iAS and RDBMS
Oracle
All Source ORACLE_HOME to be cloned. Do not apply the patch to
Universal 2.2.0.19
System Nodes your RDBMS ORACLE_HOME, if you have Oracle 10g or
Installer
higher installed.
Use the Perl shipped with iAS1022 and RDBMS 9i if
Source and
available or download it from Perl.com. Perl must be in the
Perl 5.005 Target Database
PATH before cloning. Windows users: do not use Perl from
Nodes
MKSToolKit.
If the RDBMS ORACLE_HOME was not installed using
Source Database
JRE 1.1.8 Rapid Install, install JRE 1.1.8 into the [RDBMS
Node
ORACLE_HOME]/jre/1.1.8 directory.
Windows users only: install JRE 1.3.1 into the [RDBMS
Source Database
JRE 1.3.1 ORACLE_HOME]/jre/1.3.1 directory. SeeAppendix A for
Node
installation instructions.
Target middle-
Refer to Upgrading to JDK 1.3 with Oracle Applications 11i
JDK 1.3.1 Tier Applications
on My Oracle Support for instructions.
Nodes
2.3 Download from InfoZip. Zip must be in your PATH. If using
Zip (or All Source Nodes files bigger than 2Gb, you should use InfoZip ZIP 3.0 or
higher) higher.
5.52 Download from InfoZip. UnZip must be in your PATH. If
UnZip (or All Source Nodes using files bigger than 2Gb, you should use InfoZip UNZIP
higher) 5.52 or higher.
OS utilities (see 11i Install Manual) must be in the the PATH
OS utilities N/A All Target Nodes when running adcfgclone.pl (Unix: make,ld,cc,ar - Windows:
gnumake,link,cc,cmd)
2. Apply the latest AD Minipack
Apply patch 6502082 (11i.AD.I.6) or higher.
Please refer to My Oracle Support to obtain the latest MiniPack available for AD.

3. Windows users only:


Apply patch 2237858 to enable long file names support.
Cloning Oracle Application Rel 11i, with Rapid Clone (ID 230672.1) 3

4. Apply the latest AutoConfig Template patch


Update the Oracle Applications File System with the latest AutoConfig template files by applying
the TXK AutoConfig Template rollup patch to all Application Tier Server Nodes.
Please refer to document 165195.1 on My Oracle Support to obtain the latest Autoconfig Template
Rollup Patch available.

5. Apply the latest Rapid Clone patches


Update the Oracle Applications File System with the latest Rapid Clone files by applying the
following patches to all Application Tier Server Nodes:

3453499 : 11i.ADX.F
9171650 : 11i RAPIDCLONE CONSOLIDATED FIXES JUL/2010
9874305 : ADMKAPPSUTIL.PL COMPLAINS ABOUT UNZIP VERSION
10182813 : Required if using 11gR2 version of the Database
8977646 : Required for Windows Platforms

6. Setup Rapid Clone on the Applications Tier


If the Source Applications System was created with Rapid Install version 11.5.5 or earlier and has
not been migrated to AutoConfig, follow the instructions Migrating to AutoConfig on the
Applications Tier in document 165195.1 on My Oracle Support).
All users must run AutoConfig on the Applications Tier (see section 5: Maintaining System
Configuration in document 165195.1 on My Oracle Support).

7. Setup Rapid Clone on the Database Tier


Implement AutoConfig in the RDBMS ORACLE_HOME (Follow the instructions in
sectionMigrating to AutoConfig on the Database Tier in document 165195.1 on My Oracle
Support).

Attention: Every time that a new Rapid Clone or Autoconfig patch is applied on the APPL_TOP, the
RDBMS ORACLE_HOME must be updated with the files included on those patches.
Follow the instructions in section Maintaining System Configuration in document 165195.1 on My Oracle
Support to synchronize the Rapid Clone and Autoconfig files on the RDBMS ORACLE_HOME.

8. Maintain Snapshot information


Log in to each Application Tier Node as the APPLMGR user and run Maintain Snapshot
information in AD Administration.
See Oracle Applications Maintenance Utilities for more information.

Section 2: Clone Oracle Applications 11i


Use Rapid Clone to create template files for cloning on the Source System. After the Source System is
copied to the target, Rapid Clone updates these templates to contain the new target System configuration
settings. Rapid Clone will not change the Source System configuration.

There are three phases to the cloning process:

1. Prepare the Source System


Cloning Oracle Application Rel 11i, with Rapid Clone (ID 230672.1) 4

Execute the following commands to prepare the Source System for cloning.

a. Prepare the Source System Database Tier for cloning


Log on to the Source System as the ORACLE user and run the following commands:

cd [RDBMS ORACLE_HOME]/appsutil/scripts/[CONTEXT_NAME]
perl adpreclone.pl dbTier

b. Prepare the Source System Application Tier for cloning


Log on to the Source System as the APPLMGR user and run the following commands on
each Node that contains an APPL_TOP:

cd [COMMON_TOP]/admin/scripts/[CONTEXT_NAME]
perl adpreclone.pl appsTier

2. Copy the Source System to the Target System


Copy the Application Tier File System from the Source Applications System 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 Tier files are owned
by the ORACLE user.

a. Copy the Application Tier File System


Log on to the Source System Application Tier Nodes as the APPLMGR user.

Shut down the Application Tier Server processes


Copy the following Application Tier directories from the Source Node to the Target
Application Tier Node:

[APPL_TOP]
[OA_HTML]
[OA_JAVA]
[OA_JRE_TOP]
[COMMON_TOP]/util
[COMMON_TOP]/clone
[COMMON_TOP]/_pages (when this directory exists)
[806 ORACLE_HOME]
[iAS ORACLE_HOME]

b. Copy the Database Tier File System


Log on to the Source System Database Node as the ORACLE user.

Perform a normal shutdown of the Source System Database


Copy the Database (DBF) files from the Source to the Target System
Copy the Source Database ORACLE_HOME to the Target System
Start up the Source Applications System Database and Application Tier processes
Cloning Oracle Application Rel 11i, with Rapid Clone (ID 230672.1) 5

Note: Unix/Linux users, make sure that the softlinks are preserved when copying. Additionally, verify the
permissions of the executables under ORACLE_HOME/bin that can potentially be owned by root (i.e.
nmo, nmhs, nmb, etc).

3. Configure the Target System


Execute the following commands to configure the Target System. You will be prompted for the
Target System specific values (SID, Paths, Ports, etc).

a. Configure the Target System Database Server


Log on to the Target System as the ORACLE user and type the following commands to
configure and start the Database:

cd [RDBMS ORACLE_HOME]/appsutil/clone/bin
perl adcfgclone.pl dbTier

b. Configure the Target System Application Tier Server Nodes


Log on to the Target System as the APPLMGR user and type the following commands:

cd [COMMON_TOP]/clone/bin
perl adcfgclone.pl appsTier

Attention: Windows users only:


add [806 ORACLE_HOME]\bin to the System Path before running this step.

Section 3: Finishing Tasks


This section lists tasks that may be necessary depending on your implementation and the intended use of
the cloned System.

1. Update profile options


Rapid Clone updates only site level profile options. If any other profile options are set to instance
specific values, you must update them manually.

2. Update printer settings


If the new cloned System needs to utilize different printers, update the Target System with the new
printer settings now.

3. Update workflow configuration settings


Cloning an Oracle Applications instance will not update the host and instance specific information
used by Oracle Workflow. Review the following tables and columns to verify there is no instance
specific data in the Workflow configuration on the Target System.

Column
Table Name Column Value Details
Name
WF_NOTIFICATION_AT TEXT_VALUE Value starts with http://[old web host] : Update to new
Cloning Oracle Application Rel 11i, with Rapid Clone (ID 230672.1) 6

TRIBUTES web host


WF_ITEM_ATTRIBUTE_ Value starts with "http://[old web host] : Update to new
TEXT_VALUE
VALUES web host
Create a new System defined as the new global Database
WF_SYSTEMS GUID name using the Workflow Administrator Web Applications
responsibility.
Value needs to be replaced with the Database global
WF_SYSTEMS NAME
name
Update Database link with the new Database global
WF_AGENTS ADDRESS
name.
FND_FORM_FUNCTIO WEB_HOST_N
Update with the new web host name
NS AME
FND_FORM_FUNCTIO WEB_AGENT_
Update to point at the new PLSQL listener name
NS NAME
FND_CONCURRENT_R LOGFILE_NA
Update with the correct path to the logfile directory
EQUESTS ME
FND_CONCURRENT_R OUTFILE_NA
Update with the new directory path on the Target System
EQUESTS ME

4. Verify the APPLCSF variable setting


Source the APPS environment and review that the variable APPLCSF (identifying the top-level
directory for concurrent manager log and output files) points to an acceptable directory. To modify
it, change the value of s_applcsf in the contextfile and run AutoConfig.

5. Update the SESSION_COOKIE_DOMAIN value in ICX_PARAMETERS


If the Target System is in a different domain name than the Source System
andSESSION_COOKIE_DOMAIN was not null in the Source System, update that value to reflect the
new domain name.

6. Re-Implement SSL and SSO configuration


If the Source System was SSL or SSO enabled, and the Target is wished to be SSL or SSO enabled,
then reconfigure the Target by following the SSL/SSO documentation. Otherwise, if the Target is
wished to be non-SSL or non-SSO, then follow the same SSL/SSO documentation to undo the
SSL/SSO setup.

7. Windows users only reboot the Target machine


Once cloning is completed reboot to enable the services.

Section 4: Advanced Cloning Options


This section describes advanced cloning procedures.

1. Refreshing a Target System


You may need to refresh the Target System periodically to synchronize it with changes from the
Source.
Cloning Oracle Application Rel 11i, with Rapid Clone (ID 230672.1) 7

Attention: Backup the Target Context File on the Target System before refreshing the dbTier or appsTier.
To refresh the Target System, perform the following steps as described in previous sections:

a. Prepare the Source System

b. Copy the Source System to the Target System

Copy the Application Tier File System if the APPL_TOP, 806 ORACLE_HOME, or
iAS ORACLE_HOME needs to be refreshed. Copy the portion of the Application
Tier File System which has been updated.
Copy the Database Tier File System if the RDBMS ORACLE_HOME or the
Database needs to be refreshed. If refreshing the Database, the ORACLE_HOME
should be refreshed at the same time.

c. Configure the Target System


Specify the existing Target System Context File when running adcfgclone.pl commands:

cd [RDBMS ORACLE_HOME]/appsutil/clone/bin
perl adcfgclone.pl dbTier [Database Target Context
File]

Where Database Context File is:


[RDBMS ORACLE_HOME]/appsutil/[Target
CONTEXT_NAME].xml

cd [COMMON_TOP]/clone/bin
perl adcfgclone.pl appsTier [Appltop Target Context
File]

Where Appltop Context File is:


[APPL_TOP]/admin/[Target CONTEXT_NAME].xml

d. Finishing Tasks
2. Cloning a Single-Node System to a Multi-Node System
This procedure allows the original Single-Node System to be cloned into a Multi-Node System. An
Applications System comprises five Server types:

a. Database Server (Database Tier)


b. Forms Server (Application Tier)
c. Web Server (Application Tier)
d. Concurrent Processing Server (Application Tier)
e. Administration Server (Application Tier)

During the Single-Node to Multi-Node cloning process, each of these Servers can be placed on its
own Node, resulting in a Multi-Node Target System.

f. Perform prerequisites
Cloning Oracle Application Rel 11i, with Rapid Clone (ID 230672.1) 8

Perform these steps on all Source and Target Nodes.

g. Clone Oracle Applications 11i


Prepare, copy and configure the cloned Applications System. When creating more than one
Application Tier Server Node from a Single Node System, the copy and configure steps
must be performed on each target Node. You can specify the Server type for each Target
Node while answering the prompts during the configuration step.
The Database ORACLE_HOME and Database only need to be copied to the Node on which
the Database will be run.

h. Finishing Tasks

Note: Another way of changing a Single-Node System to a Multi-Node System is to share the
APPL_TOP. See document 233428.1 on My Oracle Support for details.

3. Cloning a Multi-Node System to a Multi-Node System with same number of Nodes


A Multi-Node System can be cloned provided the number of Nodes and distribution of Servers in
the Target System matches that of the Source System.

To clone a Multi-Node System to a Multi-Node System, perform the cloning process on each Node.
For example, if the Source System contains three Nodes, perform the cloning process three times.

a. Clone Source System Node 1 to Target System Node 1.


b. Clone Source System Node 2 to Target System Node 2.
c. Clone Source System Node 3 to Target System Node 3.

Attention: The Database Server Node must be cloned first.

4. Adding a new Node to an existing System


You can use Rapid Clone to clone a Node and add it to the existing Application System. The new
Node will run the same or a subset of the Server types running on the Source Node. Follow the
instructions in the Application Tier part of Clone Oracle Applications 11i:

a. Prepare the Source System, copy it to the new Node and configure it.
b. After adcfgclone.pl completes, Source the Applications environment and run the following
commands on the Target System:

cd [COMMON_TOP]/clone/bin
perl adaddnode.pl

Note: If the SQL*Net Access security is enabled in the existing System (enabled by default
from 11i10), you first need to authorize the new Node to access the Database through SQL*Net.
See Managed SQL*Net Access from Hosts in document 281758.1 on My Oracle Support for
instructions on how to achieve this from OAM.

5. Reducing the number of Nodes of a Multi-Node System (merge APPL_TOP)


Cloning Oracle Application Rel 11i, with Rapid Clone (ID 230672.1) 9

You can use Rapid Clone to clone a Multi-Node System to a Single-Node System (or a Multi-Node
System with fewer Nodes) by merging the APPL_TOPs fileSystem together. Follow the procedure
for Merging existing APPL_TOPs in document 233428.1 on My Oracle Support.

6. Cloning a RAC System


You can use Rapid Clone to clone a RAC System. While cloning, you have the possibility to
remove or add Nodes to the cluster in the Target RAC System.

Attention: The following steps apply only for 9i RAC Clusters. For 10g or 11g RAC
environments, please follow the instructions in Document 760637.1.

Note: For complete details on the certified RAC scenarios for E-Business Suite Cloning, refer
to Document 783188.1 available in My Oracle Support.
To clone a RAC System, perform the following tasks:

a. Verify the prerequisites


Apply TXK patch 3571388 (AutoConfig support for Oracle RAC instances)
Migrate the Source System cluster ORACLE_HOMES to AutoConfig as
documented in document 165195.1 on My Oracle Support

b. Prepare the Source System


Choose one of the ORACLE_HOMEs on the Source cluster. This ORACLE_HOME will be
used as a master to create all the Target cluster System ORACLE_HOME. Run "perl
adpreclone.pl dbTier" on it.

Note: You also have the option to clone each ORACLE_HOME from the Source RAC cluster
to the Target cluster. In that case, run adpreclone.pl on every ORACLE_HOME.

c. Copy the Source System to the Target System


Copy the master ORACLE_HOME from the Source System to each Node that will
compose the Target cluster. For example, if your Source RAC System had 2 Nodes,
and you want to clone it to a 3 Node Target RAC System, you should copy the
Source master ORACLE_HOME to the 3 Nodes on the Target System.
Copy the Database files from the Source to Target System.

d. Configure the Target System


Log on to any ORACLE_HOME in the Target cluster and run

cd [RDBMS ORACLE_HOME]/appsutil/clone/bin
perl adcfgclone.pl dbTier

This step configures the first Node of the Target System RAC cluster and recreates
the Database control files. The prompts, however, will gather information about
every Node in the Target RAC cluster and the data will be re-used when configuring
each subsequent Node in the next step.

For each remaning RDBMS ORACLE_HOME in the Target System, run the
Cloning Oracle Application Rel 11i, with Rapid Clone (ID 230672.1) 10

following command as the ORACLE File System owner:

cd [RDBMS ORACLE_HOME]/appsutil/clone/bin
perl adcfgclone.pl dbTier

e. Clone the Application Tier


Follow the steps in section 2 to prepare, copy and configure the Application Tier. When
prompted for the Database SID, specify any one of the RAC service names.

Note: To clone from RAC to non-RAC, follow the same above steps but copy the master
ORACLE_HOME to one Target Node only, and answer "No" to the question "Target instance is
a Real Application Cluster (RAC) instance (y/n)", when prompted by adcfgclone.pl.

7. Adding a Node to an existing RAC Cluster


You can use Rapid Clone to add one or several Nodes to an existing RAC Cluster.

Attention: The following steps apply only for 9i RAC Clusters. For 10g or 11g RAC
environments, please follow the instructions in Document 760637.1.

Note: For complete details on the certified RAC scenarios for E-Business Suite Cloning, refer
to Document 783188.1 available in My Oracle Support.
Perform the following tasks:

a. Choose any one of the ORACLE_HOMEs in the existing cluster and run the following
command:

cd [RDBMS ORACLE_HOME]/appsutil/clone/bin
perl adcfgclone.pl dbTier

This ORACLE_HOME will be used as a master to create the additional Node(s).

b. Copy the master ORACLE_HOME File System to the new Node(s).

c. On the init.ora, set the variable "cluster_Database_instances" to match the new number of
Nodes.

Note: After the RAC conversion, the context variable %s_dbClusterInst% will need to be set on
the Database Context files to reflect the new number of Nodes.
From the OAM Context Editor, set the variable with the new number and run Autoconfig on
each ORACLE_HOME.

d. Reconfigure the RAC Cluster to include the new Node(s):


Log on to the new Node, or any one of the new Nodes if adding more than one, and
run the following command:

cd [RDBMS ORACLE_HOME]/appsutil/clone/bin
perl adcfgclone.pl dbTier
Cloning Oracle Application Rel 11i, with Rapid Clone (ID 230672.1) 11

Note: You will be prompted for information about all the Nodes forming the new cluster and
asked to perform the next step before completing adcfgclone.pl on this Node.

When instructed so by the previous step, log on to every Node from the original
cluster and run the following command on each of them:

cd [RDBMS ORACLE_HOME]/appsutil/clone/bin
perl adcfgclone.pl addracNode [Context File]

Go back to the first Node and complete adcfgclone.pl

If you are adding more than one Node to the original cluster, log on to each of the
remaining new Nodes and run

cd [RDBMS ORACLE_HOME]/appsutil/clone/bin
perl adcfgclone.pl dbTier

8. Cloning a Shared File System


You can use Rapid Clone to clone a shared APPL_TOP System. Since all the Nodes share a unique
APPL_TOP you only need to fully clone one of the Source System Nodes to its Target machine and
add more Nodes directly sharing the APPL_TOP on the Target System. Choose one of the shared
APPL_TOP Nodes on Source System (the rest of this section will refer to it as Node A) and
perform the following tasks:

a. Perform prerequisites
Perform these steps on Node A and and every Target Nodes.

b. Clone Oracle Applications 11i


Perform a full clone (Prepare, copy and configure steps) of the Database Tier and Node A
(Application Tier).

c. Add the shared File System Nodes to the Target System


On the Target System, follow the instructions for adding a Node to a shared APPL_TOP
System in document 233428.1 on My Oracle Support and add more Nodes sharing the
Target System APPL_TOP to match the Source System topology.

Appendix A: Install JRE 1.3.1 into RDBMS ORACLE_HOME


Windows customers will need to perform the following steps:

Download JRE 1.3.1 from Sun MicroSystems.


Run the install executable
When prompted for the location to install jre, click browse and enter the location: [RDBMS
ORACLE_HOME]\jre\1.3.1
Accept the default installation options.
Cloning Oracle Application Rel 11i, with Rapid Clone (ID 230672.1) 12

JRE 1.3.1 will be installed into the [RDBMS ORACLE_HOME]\jre\1.3.1 directory.

Appendix B: Recreating Database control files manually in Rapid Clone.


This Appendix documents the steps to allow manual creation of the Target Database control files within the
Rapid Clone process. Examples of when to use this method are for Databases on raw partitions or hot
backup cloning. Replace section 2.3a (Configure the Target System Database Server) with the following
steps:

Log on to the Target System as the ORACLE user

Configure the [RDBMS ORACLE_HOME>

cd [RDBMS ORACLE_HOME]/appsutil/clone/bin
perl adcfgclone.pl dbTechStack

Create the Target Database control files manually

Start the Target System Database in open mode

Run the library update script against the Database

cd [RDBMS ORACLE_HOME]/appsutil/install/[CONTEXT NAME]


sqlplus "/ as sysdba" @adupdlib.sql [libext]

Where [libext] should be set to 'sl' for HP-UX, 'so' for any other UNIX platform,
or 'dll' for Windows.

Configure the Target Database (the Database must be open)

cd [RDBMS ORACLE_HOME]/appsutil/clone/bin
perl adcfgclone.pl dbconfig [Target Context File]

Where Target Context File is:


[RDBMS ORACLE_HOME]/appsutil/[Target CONTEXT_NAME].xml

Das könnte Ihnen auch gefallen