Cloning 1


Published on

  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Cloning 1

  1. 1. Pre-clone steps for Cloning Release 12 Oracle Applications E-Business SuitePart I: Pre-Clone StepsUnlike a regular Oracle database environment, cloning the E-Business Suite is a complexaffair. You need to prepare the source and target environments before a clone operationcan be performed.Part IA: Prepare clone environmentsAs a precaution, I advise you to follow any pre-reqs on My Oracle Support (formerlyMetalink) and to download and apply the latest AD, Autoconfig template, and RapidClone patches before we begin. This will save you the potential headache and risk offailed clone operations due to a patch that should have been applied before doing thecloning steps. 1. First make sure to source the environments for oracle and applmgr environments for the database and applications tiers. 2. Shutdown apps tier and run autoconfig on apps tier $ADMIN_SCRIPTS_HOME/ or $INST_TOP/admin/scripts/ $ADMIN_SCRIPTS_HOME/ or $INST_TOP/admin/scripts/ Note: you will need to enter your password for APPS for these scripts As a precaution, I advise you to first backup context file before cloning. 3. As applmgr user on apps tier, create the appsutil file for the pre-clone steps Oracle supplies a script called to generate the new appsutil file which you will need to do the pre-clone. On the applications tier as the applmgr OS user run: perl $AD_TOP/bin/admkappsutil.plReview the log files from the script to ensure that no errors have occurred before takingthe next step, then scroll down and verify it worked.Part IB: run pre-clone scripts for database tier
  2. 2. Now that we have completed the required prep work for our cloning operations, we needto run the pre-clone scripts for the database and applications tiers before we can clone theenvironment.Oracle Release 12 actually starting with release 11i for E-Business Suite has a suite ofperl scripts that perform the heavy lifting for us in terms of these cloning scripts. First, weneed to pre-clone the database tier and then we run the pre-clone script for the apps tier.Both the Sequence and syntax are critical here or the clone will fail.The pre-clone script for database and apps tier are called It lives under the$ORACLE_HOME/appsutil/scripts/ directory on the database tier.If you are a curious DBA like me, you can look at the script with your favorite editorsuch as VI or EMACS.Warning (Achtung!): Do not play around and make changes to any of these scriptswithout the advice of Oracle Support!Warning: Kids do not try changing these scripts on a production system! Tricks are forkids not silly rabbits to paraphrase my favorite cereal commercial.OK Lets run it!First you will need to enter the APPS password for the script to execute.Make sure that it runs for a few minutes and then completes without errors after whichwe verify the status in the logfile. It is always a good idea to scroll down and check tosee that all ran fine without errors.Ok so now we need to run the pre-clone script on the apps tier as the applmgr OS user.Since we are running this on Linux platform the script is a shell script.Part IC: Run the pre-clone scripts for apps tierThe pre-clone script for apps tier is located under the $INST_TOP/admin/scripts or$ADMIN_SCRIPTS_HOME directory and is called To execute it welogon as applmgr user and run perl $INST_TOP/admin/scripts/ appsTierand you need to enter the APPS password at the prompt.Be sure to use the syntax EXACTLY as shown above or the preclone will FAIL!This will run for a short time maybe 5-10 minutes and then complete. Verify that yourpreclone ran without errors. Check the log file generated by the script forthe apps tier to ensure no errors have occurred as shown in the examples below.
  3. 3. Now we are finally ready to clone! In future articles, I will show you the actual cloningsteps to clone R12 EBS.