{"id":168,"date":"2007-08-19T17:15:00","date_gmt":"2007-08-19T21:15:00","guid":{"rendered":"http:\/\/onlineappsdba.com\/?p=168"},"modified":"2007-12-05T09:55:41","modified_gmt":"2007-12-05T13:55:41","slug":"stagingcloning-10g-as-prod-to-test","status":"publish","type":"post","link":"https:\/\/onlineappsdba.com\/index.php\/2007\/08\/19\/stagingcloning-10g-as-prod-to-test\/","title":{"rendered":"Staging\/Cloning 10g AS Prod to Test"},"content":{"rendered":"<p>This is second post w.r.t. cloning Oracle 10g Application Server. For first post on overview of 10g Application Server Middle Tier cloning visit <a href=\"http:\/\/becomeappsdba.blogspot.com\/2007\/08\/cloning-staging-oracle-10g-application.html\">https:\/\/onlineappsdba.com\/index.php\/2007\/08\/17\/cloning-staging-oracle-10g-application-server\/<\/a><\/p>\n<p>This post covers basic understanding of staging (cloning) 10g Application Server both <span id=\"SPELLING_ERROR_0\" class=\"blsp-spelling-corrected\">infrastructure<\/span> and middle tier.<\/p>\n<p><strong>Assumptions with this cloning<br \/>\n<\/strong>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n1. You have 10g Application Server Middle Tier (Portal or BI type) and <span id=\"SPELLING_ERROR_1\" class=\"blsp-spelling-corrected\">Infrastructure<\/span> tier (<span id=\"SPELLING_ERROR_2\" class=\"blsp-spelling-error\">OID<\/span>, <span id=\"SPELLING_ERROR_3\" class=\"blsp-spelling-error\">SSO<\/span>, MR)<br \/>\n2. You have source instance (PROD) which you wish to clone to target instance (DEV\/Test)<\/p>\n<p><strong>Broad Level Steps<br \/>\n<\/strong>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p><strong><em>A. Export Data from source Instance<br \/>\n<\/em><\/strong>1. Install Target Instance (Dev\/Test) Infrastructure tier (Try to keep same <span id=\"SPELLING_ERROR_4\" class=\"blsp-spelling-error\">OID<\/span> realm as source instance prod)<br \/>\n2. Export User data from source <span id=\"SPELLING_ERROR_5\" class=\"blsp-spelling-error\">OID<\/span> Instance (using <span id=\"SPELLING_ERROR_6\" class=\"blsp-spelling-error\">ldifwrite<\/span>)<br \/>\n3. Export Group data from source <span id=\"SPELLING_ERROR_7\" class=\"blsp-spelling-error\">OID<\/span> Instance (using <span id=\"SPELLING_ERROR_8\" class=\"blsp-spelling-error\">ldifwrite<\/span>)<br \/>\n4. Export <span id=\"SPELLING_ERROR_9\" class=\"blsp-spelling-error\">DAS<\/span> data from source <span id=\"SPELLING_ERROR_10\" class=\"blsp-spelling-error\">OID<\/span> Instance (using <span id=\"SPELLING_ERROR_11\" class=\"blsp-spelling-error\">ldifwrite<\/span> )<br \/>\n5. Copy password file from source <span id=\"SPELLING_ERROR_12\" class=\"blsp-spelling-error\">OID<\/span> using <span id=\"SPELLING_ERROR_13\" class=\"blsp-spelling-error\">ldap<\/span> search command (Do this step if you want to retain similar password policy on target instance as source)<br \/>\n6. Export portal, portal_app, portal_public, discoverer5 and various other custom <span id=\"SPELLING_ERROR_14\" class=\"blsp-spelling-error\">schemas<\/span> from source instance<br \/>\n7. Export <span id=\"SPELLING_ERROR_15\" class=\"blsp-spelling-error\">SSO<\/span> data using <strong><em><span id=\"SPELLING_ERROR_16\" class=\"blsp-spelling-error\">ssomig<\/span><\/em><\/strong> utility from source instance<br \/>\n8. Export <span id=\"SPELLING_ERROR_17\" class=\"blsp-spelling-error\">EUL<\/span> (End User Layer) discoverer data from source using <span id=\"SPELLING_ERROR_18\" class=\"blsp-spelling-error\">eulapi<\/span><\/p>\n<p><strong><em>B. Install Target Instance<br \/>\n<\/em><\/strong>1. Install Infrastructure tier (Keep <span id=\"SPELLING_ERROR_19\" class=\"blsp-spelling-error\">OID<\/span> realm similar to source instance)<br \/>\n2. Install Middle Tier<\/p>\n<p><strong>C. Clean\/Clear\/Delete Target Instance Data<br \/>\n<\/strong>1. Delete Users\/Groups from target Instance using <span id=\"SPELLING_ERROR_20\" class=\"blsp-spelling-error\">bulkdelete<\/span>.sh (<span id=\"SPELLING_ERROR_21\" class=\"blsp-spelling-error\">OID<\/span> script)<br \/>\n2. Drop portal, portal_public, discoverer5 and various other <span id=\"SPELLING_ERROR_22\" class=\"blsp-spelling-error\">schemas<\/span><\/p>\n<p><strong>D. Load data from source to target <span id=\"SPELLING_ERROR_23\" class=\"blsp-spelling-corrected\">Instance<\/span><br \/>\n<\/strong>1. Load User\/Groups from source to target using <span id=\"SPELLING_ERROR_24\" class=\"blsp-spelling-error\">bulkload<\/span>.sh (<span id=\"SPELLING_ERROR_25\" class=\"blsp-spelling-error\">OID<\/span> script)<br \/>\n2. Import <span id=\"SPELLING_ERROR_26\" class=\"blsp-spelling-error\">SSO<\/span> data using <strong><em><span id=\"SPELLING_ERROR_27\" class=\"blsp-spelling-error\">ssomig<\/span> <\/em><\/strong>utility with option -import<br \/>\n3. Create <strong><em>portal<\/em><\/strong> &amp; <strong><em>portal_public<\/em><\/strong> user using script <strong><em><span id=\"SPELLING_ERROR_28\" class=\"blsp-spelling-error\">wdbisys<\/span>.<span id=\"SPELLING_ERROR_29\" class=\"blsp-spelling-error\">sql<\/span> <\/em><\/strong>&amp; <strong><em><span id=\"SPELLING_ERROR_30\" class=\"blsp-spelling-error\">cruser<\/span>.<span id=\"SPELLING_ERROR_31\" class=\"blsp-spelling-error\">sql<\/span><\/em><\/strong> resp.<br \/>\n4. Create discoverer5, portal_app and various other custom schema<br \/>\n5. Import portal and other schema data using database <em><strong>IMP<br \/>\n<\/strong><\/em>6. Create any custom <span id=\"SPELLING_ERROR_32\" class=\"blsp-spelling-error\">OC<\/span>4J and deploy application from source to target instance<br \/>\n7. Import <span id=\"SPELLING_ERROR_33\" class=\"blsp-spelling-error\">EUL<\/span> data using <strong><em><span id=\"SPELLING_ERROR_34\" class=\"blsp-spelling-error\">eulapi<\/span><br \/>\n<\/em><\/strong><\/p>\n<p>For step by step procedure on creating replica \/ clone of 10g Application Server Production Instance to Test Instance<\/p>\n<p><a goog_ds_charindex=\"5010\" href=\"http:\/\/download.oracle.com\/docs\/cd\/B14099_19\/core.1012\/b13995\/prodtest.htm#CHDHBJCH\">Click Here<\/a><br \/>\n<strong><em><br \/>\nIssue in Documentation<\/em><\/strong> : Oracle Document mentioned above doesn&#8217;t cover discoverer5 schema import\/export so if you hit any issues with discoverer import discoverer5 schema<\/p>\n<p><strong><span style=\"color: #ff0000\">Cloning E-Business Instance integrated with 10g AS Portal,Discoverer, OID and <span id=\"SPELLING_ERROR_35\" class=\"blsp-spelling-error\">SSO<\/span> coming soon &#8230;<\/span><\/strong><\/p>\n<p class=\"blogger-post-footer\">http:\/\/teachMeOracle.com\/forum<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is second post w.r.t. cloning Oracle 10g Application Server. For first post on overview of 10g Application Server Middle [&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-168","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>Staging\/Cloning 10g AS Prod to Test -<\/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\/2007\/08\/19\/stagingcloning-10g-as-prod-to-test\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Staging\/Cloning 10g AS Prod to Test -\" \/>\n<meta property=\"og:description\" content=\"This is second post w.r.t. cloning Oracle 10g Application Server. For first post on overview of 10g Application Server Middle [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/onlineappsdba.com\/index.php\/2007\/08\/19\/stagingcloning-10g-as-prod-to-test\/\" \/>\n<meta property=\"article:published_time\" content=\"2007-08-19T21:15:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2007-12-05T13:55:41+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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2007\/08\/19\/stagingcloning-10g-as-prod-to-test\/\",\"url\":\"https:\/\/onlineappsdba.com\/index.php\/2007\/08\/19\/stagingcloning-10g-as-prod-to-test\/\",\"name\":\"Staging\/Cloning 10g AS Prod to Test -\",\"isPartOf\":{\"@id\":\"https:\/\/onlineappsdba.com\/#website\"},\"datePublished\":\"2007-08-19T21:15:00+00:00\",\"dateModified\":\"2007-12-05T13:55:41+00:00\",\"author\":{\"@id\":\"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb\"},\"breadcrumb\":{\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2007\/08\/19\/stagingcloning-10g-as-prod-to-test\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/onlineappsdba.com\/index.php\/2007\/08\/19\/stagingcloning-10g-as-prod-to-test\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2007\/08\/19\/stagingcloning-10g-as-prod-to-test\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/onlineappsdba.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Staging\/Cloning 10g AS Prod to Test\"}]},{\"@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":"Staging\/Cloning 10g AS Prod to Test -","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\/2007\/08\/19\/stagingcloning-10g-as-prod-to-test\/","og_locale":"en_US","og_type":"article","og_title":"Staging\/Cloning 10g AS Prod to Test -","og_description":"This is second post w.r.t. cloning Oracle 10g Application Server. For first post on overview of 10g Application Server Middle [&hellip;]","og_url":"https:\/\/onlineappsdba.com\/index.php\/2007\/08\/19\/stagingcloning-10g-as-prod-to-test\/","article_published_time":"2007-08-19T21:15:00+00:00","article_modified_time":"2007-12-05T13:55:41+00:00","author":"Masroof Ahmad","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Masroof Ahmad","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/onlineappsdba.com\/index.php\/2007\/08\/19\/stagingcloning-10g-as-prod-to-test\/","url":"https:\/\/onlineappsdba.com\/index.php\/2007\/08\/19\/stagingcloning-10g-as-prod-to-test\/","name":"Staging\/Cloning 10g AS Prod to Test -","isPartOf":{"@id":"https:\/\/onlineappsdba.com\/#website"},"datePublished":"2007-08-19T21:15:00+00:00","dateModified":"2007-12-05T13:55:41+00:00","author":{"@id":"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb"},"breadcrumb":{"@id":"https:\/\/onlineappsdba.com\/index.php\/2007\/08\/19\/stagingcloning-10g-as-prod-to-test\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/onlineappsdba.com\/index.php\/2007\/08\/19\/stagingcloning-10g-as-prod-to-test\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/onlineappsdba.com\/index.php\/2007\/08\/19\/stagingcloning-10g-as-prod-to-test\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/onlineappsdba.com\/"},{"@type":"ListItem","position":2,"name":"Staging\/Cloning 10g AS Prod to Test"}]},{"@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\/168","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=168"}],"version-history":[{"count":0,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/posts\/168\/revisions"}],"wp:attachment":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/media?parent=168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/categories?post=168"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/tags?post=168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}