{"id":439,"date":"2008-04-10T06:13:54","date_gmt":"2008-04-10T10:13:54","guid":{"rendered":"http:\/\/onlineappsdba.com\/index.php\/2008\/04\/10\/back-to-basics-of-cloning\/"},"modified":"2008-04-27T13:41:48","modified_gmt":"2008-04-27T17:41:48","slug":"back-to-basics-of-cloning","status":"publish","type":"post","link":"https:\/\/onlineappsdba.com\/index.php\/2008\/04\/10\/back-to-basics-of-cloning\/","title":{"rendered":"Back to Basics of Cloning!!!!"},"content":{"rendered":"<p>Hello all, As per the request and with experience I am again returing to Cloning of Oracle Application. I know most of them know what exactly happens in cloning but still here I am trying to touch the depths.<\/p>\n<p>Before starting I want to ask question.\u00a0<strong>Why you need to do cloning ?<\/strong> Why we need to duplicate Oracle Application.<\/p>\n<p>We need cloning for various of reasons. suppose I have got production instance and want to test some application. Now here I want to test the application, need to apply some product specific patches which might affect whole application then I have to give downtime which will affect business. So if I had the same this on whic hI can play and test my application or code or say I can apply some patches and at the same time business also run then nothing like it. This can be achieved by cloning or duplicating the application.<\/p>\n<p>Duplicating the application is not easy or its just not simply copy the application, it wont work in any case. Logically it sounds fine just to copy the filesystem and relink it and start the application but its not that easy.<\/p>\n<p>Basically for cloning Oracle Application it can be categorised into three major categories.<\/p>\n<p>-Preparing the Source System<br \/>\n-Copy the file System<br \/>\n-Preparing or say Configuring the Target System<\/p>\n<p>You can achive first and third steps using a Rapid Clone utility which Oracle provides for cloning<\/p>\n<p>There can be many ways and methods to clone Oracle Application which many organisations follows but the only supported method provided by Oracle is using Rapid clone.<\/p>\n<p>Rapid Clone is the new cloning utility introduced in Release 11.5.8. Rapid Clone leverages the new installation and configuration technology utilized by Rapid Install.<\/p>\n<p>Basically there are <strong>two cloning methodology using Autoconfig and without using autoconfig<\/strong>. First one that is using autoconfig is completely replaced by Rapidclone.<\/p>\n<p>Non-autocofig cloning methodology was generally used before 11.5.5 that is non autoconfig enabled system.<\/p>\n<p>Here I will discuss Rapid Clone method of cloning and also throw some light on cloning 11.0.3 oracle application as some users are still using that.<\/p>\n<p><strong>So first about the Rapid clone method<\/strong>.<\/p>\n<p>In Category 1 that is first you need to make source for clone. You need to dress up Source system so that only configuration files and not the whole file system is copied.<\/p>\n<p>Pre-requiste Steps<\/p>\n<p>To start with cloning you need to first check about some pre-requisites some utilities should be of required version<\/p>\n<p>Here are they,<\/p>\n<p>Oracle Universal Installer should be of 2.2.0.19 version<br \/>\nPerl should be of 5.005 version minimum<br \/>\nJRE 1.1.8 and 1.3.1<br \/>\nJDK 1.3.1<br \/>\nZip utility of version 2.3 minimum<br \/>\nLatest Autoconfig Templates patches are applied. TXK-O is the latest till date.<br \/>\nLatest Rapid Clone patches should be applied. Latest is ADX.F till date.<\/p>\n<p>After check ing the pre-requisites now your system is ready to clone.<\/p>\n<p>Preparing the Source system:<\/p>\n<p>After checking the above mentioned pre-requisites now you have to prepare the source system which need to be cloned.<\/p>\n<p>In a broad way what this step will do is this will create the staged clone directory which will be having the driver files and configuration file of the source.<\/p>\n<p>So what exactly is going to happen in this step. Lets get in more details<\/p>\n<p>Basically you have to run the adpreclone.pl script once for Application tier and one for the datbase (even if you are on single node ! )<\/p>\n<p>Lets first check for the Database tier<\/p>\n<p><strong>On Source system, run following as ORACLE user<\/strong><\/p>\n<p>cd RDBMS Oracle_Home\/appsutil\/scripts\/_perl .\/adpreclone.pl dbTier<\/p>\n<p>After running this it goes in two stages<\/p>\n<p><strong>dbTechstack and Database<\/strong><\/p>\n<p>What exactly it will do is<br \/>\nIt will create stage cloned area at $ORACLE_HOME\/appsutil\/clone This clone directory has got following main directories<br \/>\ndata,jre,bin,db,html,context<\/p>\n<p>It will prepare datbase techstack at dbTechStack stage. Major activities it will take care of at this stage.<\/p>\n<p><strong>-Creates template files at <\/strong>$ORACLE_HOME\/appsutil\/template<br \/>\n<strong>-Creates driver files at <\/strong>$ORACLE_HOME\/appsutil\/driver\/instconf.drv<br \/>\n-Converts inventory from binary to xml<\/p>\n<p>It will prepare datbase at the database stage. Major activities includes<\/p>\n<p><strong>-Create datbase control file script<br \/>\n<\/strong>$Oracle_Home\/appsutil\/clone\/context\/data\/stage\/addbhomsrc.xml<br \/>\n$Oracle_Home\/appsutil\/clone\/context\/data\/stage\/adcrdb.zip<br \/>\nadcrdbclone.sql<\/p>\n<p><strong>-Generates database creation driver file<\/strong><br \/>\n$Oracle_Home\/appsutil\/clone\/context\/data\/driver\/data.drv<\/p>\n<p><strong>-Copy JDBC Libraries<br \/>\n<\/strong>$Oracle_Home\/appsutil\/clone \/clone\/jlib\/classes111.zip<\/p>\n<p>So all this happens on database side<\/p>\n<p>Now <strong>lets concentrate on Application tier side<\/strong>. Again it goes almost in the same way that is in two stages.<\/p>\n<p>As a APPLMGR user on application tier this script is run<br \/>\ncd $COMMON_TOP\/admin\/scripts\/_perl .\/adpreclone.pl appsTier<\/p>\n<p>It will also create the staged clone directory at $COMMON_TOP\/clone<br \/>\nIt goes in two stages. Lets see one by one<\/p>\n<p><strong>atTechStack that is Application tier techstack<\/strong>.<\/p>\n<p>&#8211; Creates template files for<br \/>\nOracle_iAS_Home\/appsutil\/template<br \/>\nOracle_806_Home\/appsutil\/template<\/p>\n<p>-Creates Techstack driver files for<br \/>\nOracle_iAS_Home\/appsutil\/driver\/instconf.drv<br \/>\nOracle_806_Home\/appsutil\/driver\/instconf.drv<\/p>\n<p>appltop preparation<\/p>\n<p>-It will create application top driver file<br \/>\n$COMMON_TOP\/clone\/appl\/driver\/appl.drv<\/p>\n<p>-Copy JDBC libraries<br \/>\n$COMMON_TOP\/clone\/jlib\/classes111.zip<\/p>\n<p>So this all happens in dressing the source system<\/p>\n<p>After then we need to copy the files.<\/p>\n<p>Copy following files<\/p>\n<p>APPL_TOP<br \/>\nOA_HTML ($COMMON_TOP\/html)<br \/>\nJAVA_TOP<br \/>\nCOMMON_TOP\/util<br \/>\nCOMMON_TOP\/clone<br \/>\n8.0.6 ORACLE_HOME<br \/>\niAS ORACLE_HOME<br \/>\nDB ORACLE_HOME<br \/>\ndbf files<\/p>\n<p>After this stage now you need to configure the Target node. Basically you will run adcfgclone.pl same for databse tier and for application tier.<br \/>\nLet go in bit more detail:<\/p>\n<p>First we will see for the database tier<\/p>\n<p>On the target node you will run<br \/>\nORACLE_DB_HOME\/appsutil\/clone\/bin\/perl adcfgclone.pl dbTier<\/p>\n<p>Again there are two stages :<\/p>\n<p><strong>First will look at dbTechstack<\/strong><br \/>\nIt will use the driver files and templates which were created at source and has been copied to target.<\/p>\n<p>Following scripts are run<br \/>\n-adchkutl.sh<br \/>\n-adclonectx.pl<br \/>\n-runInstallConfigDriver &#8212;- located in $Oracle_Home\/appsutil\/driver\/instconf.drv<br \/>\n-Relinking $Oracle_Home\/appsutil\/install\/adlnkoh.sh<\/p>\n<p>Now for database<br \/>\n-Driver file<br \/>\n$Oracle_Home\/appsutil\/clone\/context\/data\/driver\/data.drv<br \/>\n-Create database adcrdb.zip<br \/>\n-Autoconfig is run<br \/>\n-Control file creation adcrdbclone.sql<\/p>\n<p>Now on application tier<br \/>\nfrom COMMON_TOP\/clone\/bin\/perl adcfgclone.pl appsTier<\/p>\n<p><strong>Stage at TechStack<br \/>\n<\/strong>-Creates context file for target adclonectx.pl<br \/>\n-Run driver files<br \/>\n$Oracle_806_Home\/appsutil\/driver\/instconf.drv<br \/>\n$Oracle_iAS_Home\/appsutil\/driver\/instconf.drv<\/p>\n<p>Relinking of Oracle Home<br \/>\n$Oracle_806_Home\/bin\/adlnk806.sh<br \/>\n$Oracle_iAS_Home\/bin\/adlnkiAS.sh<\/p>\n<p>at the end for ApplTop stage<br \/>\nIt runs driver and then autoconfig<\/p>\n<p>So this will totally configure your application which has been copied.<\/p>\n<p>At the end you have to some finishing tasks<\/p>\n<p>-Update Printer settings<br \/>\n-Update Workflow Configuration settings<br \/>\n-Update Profile options<\/p>\n<p>This completes you application cloning completely.<\/p>\n<p>So Happy reading folks !!!!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello all, As per the request and with experience I am again returing to Cloning of Oracle Application. I know [&hellip;]<\/p>\n","protected":false},"author":115,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-439","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Back to Basics of Cloning!!!! -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/onlineappsdba.com\/index.php\/2008\/04\/10\/back-to-basics-of-cloning\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Back to Basics of Cloning!!!! -\" \/>\n<meta property=\"og:description\" content=\"Hello all, As per the request and with experience I am again returing to Cloning of Oracle Application. I know [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/onlineappsdba.com\/index.php\/2008\/04\/10\/back-to-basics-of-cloning\/\" \/>\n<meta property=\"article:published_time\" content=\"2008-04-10T10:13:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2008-04-27T17:41:48+00:00\" \/>\n<meta name=\"author\" content=\"Masroof Ahmad\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Masroof Ahmad\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2008\/04\/10\/back-to-basics-of-cloning\/\",\"url\":\"https:\/\/onlineappsdba.com\/index.php\/2008\/04\/10\/back-to-basics-of-cloning\/\",\"name\":\"Back to Basics of Cloning!!!! -\",\"isPartOf\":{\"@id\":\"https:\/\/onlineappsdba.com\/#website\"},\"datePublished\":\"2008-04-10T10:13:54+00:00\",\"dateModified\":\"2008-04-27T17:41:48+00:00\",\"author\":{\"@id\":\"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb\"},\"breadcrumb\":{\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2008\/04\/10\/back-to-basics-of-cloning\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/onlineappsdba.com\/index.php\/2008\/04\/10\/back-to-basics-of-cloning\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2008\/04\/10\/back-to-basics-of-cloning\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/onlineappsdba.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Back to Basics of Cloning!!!!\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/onlineappsdba.com\/#website\",\"url\":\"https:\/\/onlineappsdba.com\/\",\"name\":\"\",\"description\":\"Oracle Implementation &amp; Training Experts\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/onlineappsdba.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb\",\"name\":\"Masroof Ahmad\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/onlineappsdba.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g\",\"caption\":\"Masroof Ahmad\"},\"url\":\"https:\/\/onlineappsdba.com\/index.php\/author\/masroof\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Back to Basics of Cloning!!!! -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/onlineappsdba.com\/index.php\/2008\/04\/10\/back-to-basics-of-cloning\/","og_locale":"en_US","og_type":"article","og_title":"Back to Basics of Cloning!!!! -","og_description":"Hello all, As per the request and with experience I am again returing to Cloning of Oracle Application. I know [&hellip;]","og_url":"https:\/\/onlineappsdba.com\/index.php\/2008\/04\/10\/back-to-basics-of-cloning\/","article_published_time":"2008-04-10T10:13:54+00:00","article_modified_time":"2008-04-27T17:41:48+00:00","author":"Masroof Ahmad","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Masroof Ahmad","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/onlineappsdba.com\/index.php\/2008\/04\/10\/back-to-basics-of-cloning\/","url":"https:\/\/onlineappsdba.com\/index.php\/2008\/04\/10\/back-to-basics-of-cloning\/","name":"Back to Basics of Cloning!!!! -","isPartOf":{"@id":"https:\/\/onlineappsdba.com\/#website"},"datePublished":"2008-04-10T10:13:54+00:00","dateModified":"2008-04-27T17:41:48+00:00","author":{"@id":"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb"},"breadcrumb":{"@id":"https:\/\/onlineappsdba.com\/index.php\/2008\/04\/10\/back-to-basics-of-cloning\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/onlineappsdba.com\/index.php\/2008\/04\/10\/back-to-basics-of-cloning\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/onlineappsdba.com\/index.php\/2008\/04\/10\/back-to-basics-of-cloning\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/onlineappsdba.com\/"},{"@type":"ListItem","position":2,"name":"Back to Basics of Cloning!!!!"}]},{"@type":"WebSite","@id":"https:\/\/onlineappsdba.com\/#website","url":"https:\/\/onlineappsdba.com\/","name":"","description":"Oracle Implementation &amp; Training Experts","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/onlineappsdba.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb","name":"Masroof Ahmad","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/onlineappsdba.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g","caption":"Masroof Ahmad"},"url":"https:\/\/onlineappsdba.com\/index.php\/author\/masroof\/"}]}},"_links":{"self":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/posts\/439","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/users\/115"}],"replies":[{"embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/comments?post=439"}],"version-history":[{"count":0,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/posts\/439\/revisions"}],"wp:attachment":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/media?parent=439"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/categories?post=439"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/tags?post=439"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}