Beruflich Dokumente
Kultur Dokumente
1]
Cloning creates an identical copy of an existing Oracle Applications System. There are various
reasons for cloning an Oracle Applications System such as:
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 in document 216664.1 on My Oracle Support.
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.
Applications System being created as a copy of the
Target System
Source.
APPLMGR User which owns the Applications File System
(APPL_TOP and Application Tier technology stack)
User which owns the Database File System (RDBMS
ORACLE
ORACLE_HOME and 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 typically
CONTEXT_NAME
be set to [SID]. For new AutoConfig or Rapid Clone
customers, CONTEXT_NAME will be set to
[SID]_[HOSTNAME].
Represents command line text. Type this command
Monospace Text
exactly as shown.
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.
Minimum
Software Location Details
Version
Apply OUI22 patch 5035661 on every iAS
Oracle and RDBMS ORACLE_HOME to be cloned.
All Source
Universal 2.2.0.19
System Nodes Do not apply the patch to your RDBMS
Installer ORACLE_HOME, if you have Oracle 10g or
higher installed.
Use the Perl shipped with iAS1022 and
Source and RDBMS 9i if available or download it from
Target
Perl 5.005
Database
Perl.com. Perl must be in the PATH before
Nodes cloning. Windows users: do not use Perl from
MKSToolKit.
If the RDBMS ORACLE_HOME was not
Source installed using Rapid Install, install JRE 1.1.8
JRE 1.1.8
Database Node into the [RDBMS ORACLE_HOME]/jre/1.1.8
directory.
Windows users only: install JRE 1.3.1 into the
Source [RDBMS ORACLE_HOME]/jre/1.3.1
JRE 1.3.1
Database Node directory. See Appendix A for installation
instructions.
Target middle-
Refer to Upgrading to JDK 1.3 with
Tier
JDK 1.3.1 Oracle Applications 11i on My Oracle
Applications
Nodes Support for instructions.
Download from InfoZip. Zip must be in your
2.3 All Source
Zip PATH. If using files bigger than 2Gb, you
(or higher) Nodes
should use InfoZip ZIP 3.0 or higher.
Download from InfoZip. UnZip must be in
5.52 All Source
UnZip your PATH. If using files bigger than 2Gb, you
(or higher) Nodes
should use InfoZip UNZIP 5.52 or higher.
OS utilities (see 11i Install Manual) must be in
All Target the the PATH when running adcfgclone.pl
OS utilities N/A
Nodes (Unix: make,ld,cc,ar - Windows:
gnumake,link,cc,cmd)
o 3453499 : 11i.ADX.F
o 9171650 : 11i RAPIDCLONE CONSOLIDATED FIXES JUL/2010
o 9874305 : ADMKAPPSUTIL.PL COMPLAINS ABOUT UNZIP VERSION
o 10182813 : Required if using 11gR2 version of the Database
o 8977646 : Required for Windows Platforms
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.
9. 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.
cd [RDBMS ORACLE_HOME]/appsutil/scripts/[CONTEXT_NAME]
perl adpreclone.pl dbTier
cd [COMMON_TOP]/admin/scripts/[CONTEXT_NAME]
perl adpreclone.pl appsTier
[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]
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.
cd [RDBMS ORACLE_HOME]/appsutil/clone/bin
perl adcfgclone.pl dbTier
cd [COMMON_TOP]/clone/bin
perl adcfgclone.pl appsTier
4.
Attention: Backup the Target Context File on the Target System before refreshing the dbTier or
appsTier.
2. To refresh the Target System, perform the following steps as described in previous sections:
a. Prepare the Source System
cd [RDBMS ORACLE_HOME]/appsutil/clone/bin
perl adcfgclone.pl dbTier [Database Target Context
File]
cd [COMMON_TOP]/clone/bin
perl adcfgclone.pl appsTier [Appltop Target Context
File]
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
Perform these steps on all Source and Target Nodes.
h. Finishing Tasks
o Prepare the Source System, copy it to the new Node and configure it.
o 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
6.
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.
7.
8. Reducing the number of Nodes of a Multi-Node System (merge APPL_TOP)
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.
Attention: The following steps apply only for 9i RAC Clusters. For 10g or 11g RAC
environments, please follow the instructions in Document 760637.1.
10.
Note: For complete details on the certified RAC scenarios for E-Business Suite Cloning,
refer to Document 783188.1 available in My Oracle Support.
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.
b.
c. Copy the Source System to the Target System
o 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.
o Copy the Database files from the Source to Target System.
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.
cd [RDBMS ORACLE_HOME]/appsutil/clone/bin
perl adcfgclone.pl dbTier
e.
f. 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.
12.
13. 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.
14.
Note: For complete details on the certified RAC scenarios for E-Business Suite Cloning,
refer to Document 783188.1 available in My Oracle Support.
16. This ORACLE_HOME will be used as a master to create the additional Node(s).
. Copy the master ORACLE_HOME File System to the new Node(s).
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.
b.
c. Reconfigure the RAC Cluster to include the new Node(s):
o 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
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.
d.
o 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]
o 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
. Perform prerequisites
Perform these steps on Node A and and every Target Nodes.
a. Clone Oracle Applications 11i
Perform a full clone (Prepare, copy and configure steps) of the Database Tier and
Node A (Application Tier).
cd [RDBMS ORACLE_HOME]/appsutil/clone/bin
perl adcfgclone.pl dbTechStack
Where [libext] should be set to 'sl' for HP-UX, 'so' for any other UNIX platform,
or 'dll' for Windows.
cd [RDBMS ORACLE_HOME]/appsutil/clone/bin
perl adcfgclone.pl dbconfig [Target Context File]
Cloning Oracle Application 11i /R12 with Rapid Clone - Database (9i/10g/11g) Using Hot Backup on
Open Database [ID 760772.1]
In this Document
Goal
Solution
References
Applies to:
Goal
This purpose of this article is to help to duplicate/clone the Active/Open database to another machine
Solution
Release 11i : Note 230672.1 - 'Cloning Oracle Applications Release 11i with Rapid Clone' until 2.2a
steps.
Release 12 : Note 406982.1 - 'Cloning Oracle Applications Release 12 with Rapid Clone' until 2.2a
steps.
This Note helps you to implement the steps mentioned in "Appendix B: Recreating database control files
manually in Rapid Clone" as per above Clone Note.
Step 1: Please run adpreclone If you have applied any patches to apps or db
if you havent applied any patches to apps or db , then you can skip adpreclone step.
Step 2: Obtain a trace file script to recreate the controlfile. On the source database issue the following
command:
The trace file script will be put into the user_dump_dest directory. The name of the trace file script will be
something like PROD_ora_12345.trc.
Compare the date and time of the new trace file script to the time in which you entered the ALTER
DATABASE BACKUP CONTROLFILE TO TRACE command.
This will ensure you will be using the most recent trace file script, the one you created in this step
to:
If you want to change the Database Name , You need to use the clause SET DATABASE <new dbname>
in the create control file script as follows:
The ARCHIVELOG mode may be changed to NOARCHIVELOG if you wish to run the copied database in
noarchive log mode. Change all directories in the create controlfile clause to point to the correct
directories for the new target database, if necessary.
Leave "only" the CREATE CONTROLFILE clause. The other statements, like the recover command, will
be done manually. Be sure you also remove the STARTUP NOMOUNT command.
Note: Please ensure that there is no new datafile/tablespace added to Database after you generate
controlfile script as above
Step 4: On the source database make an online copy of all datafiles using:
Then do:
Do NOT copy the controlfiles and redo log files as they will be recreated. You must copy the datafiles only
after the ALTER .. BEGIN BACKUP command has been executed, otherwise the datafiles may be
corrupted.
The names of the datafiles and tablespaces to which the datafiles belong can be obtained using the
following command:
Note: Instead of performing step 4 and step 5 to create a new online backup, you may instead use a
previously taken online backup of your database.If you choose to use a previous online backup be sure to
copy the required archived redo logs taken with the the previous online backup.
Step 5: After all datafiles have been copied and the tablespaces taken out of backup mode issue the
following command:
You will need all of the archivelog files from the start of datafile copy commands including the one just
created with the command ALTER SYSTEM ARCHIVE LOG CURRENT.
Step 6: Copy the database (DBF) files,controlfile script and archive log files from the source to the target
system
Step 7: So, As mentioned in 230672.1 (Appendix B), Replace section 2.2a (Configure the target system
database server) with the following steps:
Execute the following commands to configure the target system. You will be prompted for the target
system specific values (SID, Paths, Ports, etc)
cd <RDBMS ORACLE_HOME>/appsutil/clone/bin
perl adcfgclone.pl dbTechStack
Step 7: On the target system issue STARTUP NOMOUNT command. For example:
Step 8: Run the prepared script created in step 3 to create the new controlfile. For example:
SQL> @PROD_ora_12345.trc
You will be prompted to apply all of the archived redo logs from the source database including
the last archive redo log file created with the ALTER DATABASE ARCHIVE LOG CURRENT
command from step 5.
After applying all of these archive log files issue the CANCEL command.
Step 10: Open the database with resetlogs:
At this point the target database will have been successfully cloned and opened.
Step 11: Create Temporary Tablespace if not created in Source, else you shall add Temporary
tablespace
You can check if tablespace TEMP has tempfiles or datafiles using the following SQL:
Or
Step 12: Run the library update script against the database
where <libext> is "sl" for HP-UX, "so" for any other UNIX platform and
not required for Windows.
Step 13: Configure the target database (the database must be open)
cd <RDBMS ORACLE_HOME>/appsutil/clone/bin
perl adcfgclone.pl dbconfig <target context file>
Please follow the remaining steps as per Cloning for your EBS version :
Release 11i : Note 230672.1 - 'Cloning Oracle Applications Release 11i with Rapid Clone'
Release 12 : Note 406982.1 - 'Cloning Oracle Applications Release 12 with Rapid Clone'
References