Beruflich Dokumente
Kultur Dokumente
1]
Modified 12-JUN-2009 Type HOWTO Status PUBLISHE
D
In this Document
Goal
Solution
Section 1. Before starting to clone
Section 2. Preparing Source System
Section 3. Copy the files to the Target system
Section 4. Configure Target system
References
Applies to:
Goal
The idea is to provide a detailed explanation into what each step is trying to achieve making it
easier to identify which part of the clone has failed and why.
Locations of log files are listed, which should be uploaded when reporting a cloning issue to
Oracle Support.
Solution
Important: There are several steps to applying a rapid clone patch. Checking the recently
applied patch list, or querying the AD_BUGS table, is not sufficient in verifying that the latest
cloning code exists.
Important: When applying a Rapid Clone patch using adpatch, ensure all of the following steps
are performed:-
Apply the RapidClone patch using adpatch to Apps Tier nodes.
Run AutoConfig on all Apps Tier nodes
This will ensure the new templates supplied by the patch are instantiated.
Rapid Clone scripts, such as adpreclone.pl, are also instantiated using the latest templates
> $COMMON_TOP/admin/scripts/$CONTEXT_NAME/adautocfg.sh
appspass=<appspwd>
Copy the new templates and code from the patch to the DB Tier
Applying the Rapid Clone using adpatch will only deliver the templates and java code to the Apps
Tiers, not the DB Tier, so this step is to collect the required files and copy them to the DB Tier:-
This will collect the required templates and code,used by AutoConfig on the DB tier, and
compress them into the $APPL_TOP/admin/out/appsutil.zip file.
The new templates,scripts and java code are delivered by appsutil.zip to the DB Tier.
However, these still need to instantiated into the configuration files and scripts.
To do this, run AutoConfig on the DB Tier.
RapidClone scripts such as adpreclone.pl are also instantiated using the latest templates.
Once this step has been completed successfully, all the java .class files under
RDBMS $ORACLE_HOME/appsutil/java/oracle
$JAVA_TOP/oracle.
Important: If it is not immediately evident that the appsutil.zip steps above have been followed,
after applying a new AutoConfig or Rapid Clone patch, then do the steps again.
Failure to do this may result in issues that have been resolved in a later version of the software.
Apps Tier(s) :
$ORACLE_HOME/appsutil/driver
For the appsTier, both the 8.0.6 and iAS ORACLE_HOMES will have the appsutil/template and
appsutil/driver directories once the preclone stage is completed
For the dbTier, these directories will already exist, but new templates and the new instconf.drv
will be added
Important: The information in the stage area is only updated when running adpreclone.pl.
Whenever an AutoConfig or Rapid Clone patch is applied, and AutoConfig executed, it will not
automatically update the stage area. Only adpreclone.pl will do this. The script adpreclone.pl
must be run (after running AutoConfig) to ensure new code, templates and scripts are copied into
the stage area before performing a clone.
If this is not done, then the code used to configure the Target system will not be the code from the
latest patches applied. This must be done on all nodes, db and appsTier(s).
Rapid Clone:
dbTier : $ORACLE_HOME/appsutil/log/$CONTEXT_NAME/StageDBTier_xxxxxx.log
appsTier : $APPL_TOP/admin/$CONTEXT_NAME/log/StageAppsTier_xxxxxx.log
Important: These log files will contain the $Header version of the class file used.
Ensure this is the version delivered via the latest Rapid Clone patch.
If it is not the latest version, ask customer to follow "Section 1: Before starting to clone" above,
and rerun adpreclone.pl steps.
Once this adpreclone.pl step has been completed successfully, all the java .class files under the
following directories should be identical to those under $JAVA_TOP/oracle :
o RDBMS $ORACLE_HOME/appsutil/java/oracle
o RDBMS $ORACLE_HOME/appsutil/clone/jlib/java/oracle
o $COMMON_TOP/clone/jlib/java/oracle
If they are not, ensure to follow the pre-req AutoConfig steps, and rerun adpreclone on all DB and
Apps Tier nodes.
Highly recommended: It is highly recommended customers rename any existing clone stage
area, and allow RapidClone to create a new one. This should avoid any known issues that are
caused by old redundant files from a previous clone.
On the DB Tier:-
Rename RDBMS $ORACLE_HOME/appsutil to $ORACLE_HOME/appsutil_old
On the Apps Tier, run "perl $AD_TOP/bin/admkappsutil.pl"
Copy the appsutil.zip to the RDBMS $ORACLE_HOME and unzip
Copy the Context file from RDBMS $ORACLE_HOME/appsutil_old to the new
$ORACLE_HOME/appsutil
Run AutoConfig on the DB Tier
Do the "Prepare Source system" steps i.e "perl adpreclone.pl dbTier"
When copying files to the Target, 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.
When copying the datafiles, ensure the DB is shutdown cleanly prior to the copy.
If there is any DB activity while the datafiles are copied, the clone will fail to recreate the control
files with error:-
If a clone must be performed using a hot backup, then follow the alternative cloning steps in
Appendix B of Note:230672.1.
DB Tier :
Apps Tier:
The configuration phase will reconfigure the copied instance after gathering the required
information.
adchkutl.sh
The first step performed is the OS utility check (adchkutl.sh).
This ensures make, cc, ld and ar executables are available in the PATH.
CloneContext.class
This will create the Target Context file from the values entered on the screen.
For a full list of the questions, see Note:216664.1
All the questions, values entered, results of the port availability check etc will be logged in
a log file located in same location as the adcfgclone.pl script:-
dbTier : $ORACLE_HOME/appsutil/clone/bin
appsTier(s) : $COMMON_TOP/clone/bin
appsTier(s): $TMP/CloneContext_xxxxxx.log
dbTier: $ORACLE_HOME/appsutil/clone/bin/CloneContext_xxxxxx.log
appsTier(s): $COMMON_TOP/clone/bin/CloneContext_xxxxxx.log
ApplyDBTier.class/ApplyAppsTier.class
Once the XML is created, or passed as a parameter on the command line, then the
configuration phase begins.
This part will instantiate all the templates created during the preparation phase under:
$ORACLE_HOME/appsutil/template.
$ORACLE_HOME/appsutil/driver/instconf.drv
$ORACLE_HOME/install/make.log
Create the Control files (DB Tier only)
Once the templates are instantiated, and the ORACLE_HOME is relinked, then the
control files can be recreated.
The templates used here are located in
$ORACLE_HOME/appsutil/clone/data/stage/adcrdb.zip
The files in this zip file are used to create a SQL file called
adcrdbclone.sql
adcrdb.sh.
$ORACLE_HOME/appsutil/install/$CONTEXT_NAME
If there are any problems creating the control files, then check the log files :
$ORACLE_HOME/appsutil/log/$CONTEXT_NAME/adcrdb_<SID>.txt
$ORACLE_HOME/appsutil/log/$CONTEXT_NAME/ApplyDBTier_xxxxxx.log
refer to "Section 3 - Copy the files to the Target system" above on why this problem occurs.
AutoConfig
The next phase will run AutoConfig using use the usual templates and drivers associated
with AutoConfig on db or appsTier.
The following log files will contain the information on the results of running AutoConfig
$ORACLE_HOME/appsutil/log/$CONTEXT_NAME/ApplyDBTier_xxxxxx.log
$APPL_TOP/admin/$CONTEXT_NAME/log/ApplyAppsTier_xxxxxx.log
Update the oraInventory (OracleHomeCloner.class)
Once the Target instance is configured, it will update the Global Inventory will the
locations of the new ORACLE_HOMES
The global inventory is found by checking the Inventory Pointer file.
This can be found as follows :
The global inventory will be updated with the locations of the new iAS and RDBMS
ORACLE_HOMES
Any problems with this step will be detailed in the log files:-
<path to oraInventory>/logs/OracleHomeCloner_<MMDDHHMM>.log
<path to oraInventory>/logs/apps<Year>-<Mon>-<Day>-<Hour>-<Min>-<Sec>-
<AM/PM>.log
If there are problems with the Global Inventory refer to Note 295185.1
References
Related
Products
Oracle E-Business Suite > Applications Technology > Lifecycle Management >
Oracle Applications Manager
Keywords
ORA-1194
Back to top