{"id":7409,"date":"2014-03-20T19:56:13","date_gmt":"2014-03-20T23:56:13","guid":{"rendered":"http:\/\/onlineappsdba.com\/?p=7409"},"modified":"2016-05-04T08:17:31","modified_gmt":"2016-05-04T12:17:31","slug":"addpartnerformultidatacentre-is-not-updating-mdc-partners-in-oam-config-xml-in-oam-11g-r2-ps2","status":"publish","type":"post","link":"https:\/\/onlineappsdba.com\/index.php\/2014\/03\/20\/addpartnerformultidatacentre-is-not-updating-mdc-partners-in-oam-config-xml-in-oam-11g-r2-ps2\/","title":{"rendered":"addPartnerForMultiDataCentre is not updating MDC partners in oam-config.xml in OAM 11g R2 PS2"},"content":{"rendered":"<p>In OAM 11g R2 PS2, I was working on Multi Data Center setup by following the <a href=\"http:\/\/docs.oracle.com\/cd\/E40329_01\/admin.1112\/e27239\/mdc.htm#BJFIIEFH\">documentation<\/a>. I had to run the WLST command <strong>addPartnerForMultiDataCentre<\/strong> by giving partnerInfo.properties file as input.<\/p>\n<p>What does this command do?<\/p>\n<p>In MDC, when the failover happens from DC1 to DC2, all the webgate requests will be routed to DC2 to serve. The user session would have cookies\/session pertaining to DC1. When the DC2 OAM servers serve the user request, then DC2 specific cookies\/session has to be present. Before that, DC2 OAM servers will talk to DC1 OAM servers through back channel using Access Gate.<\/p>\n<p><strong>partnerInfo.properties<\/strong> contains the below details:<\/p>\n<p>remoteDataCentreClusterId=DC2_CLUSTER<br \/>\noamMdcAgentId=ACCESS_GATE_NAME<br \/>\nPrimaryHostPort=DC2_OAM_SERVER_NAME:port<br \/>\nSecondaryHostPort=<br \/>\nAccessClientPasswd=ACCESS_GATE_PASSWORD<br \/>\noamMdcSecurityMode=open<br \/>\nagentVersion=11g<br \/>\ntrustStorePath=<br \/>\nkeyStorePath=<br \/>\nglobalPassPhrase=<br \/>\nkeystorePassword=<\/p>\n<p>Let me explain every parameter:<\/p>\n<p><strong>remoteDataCentreClusterId<\/strong>: This is the secondary Data center Cluster Name.<\/p>\n<p><strong>oamMdcAgentId<\/strong>: Access Gate name which is making back channel call to DC1 for validating\/requesting user session details. By default in OAM 11g R2 PS2, accessgate-oic is created. I have used this in my case. Also, ensure that Allow Management operations flag is enabled in this AG profile. For quick test, you can verify the regular webgate profiles and see that this flag is disabled by default.<\/p>\n<p><strong>PrimaryHostPort &amp; SecondaryHostPort<\/strong>: Secondary DC OAM server host name and port eg., oam2.oracle.com:5575 and oam2.oracle.com:5576 respectively.<\/p>\n<p><strong>oamMdcSecurityMode<\/strong>: Mode in which AG is running.<\/p>\n<p><strong>agentVersion:<\/strong> AG version defined in profile.<\/p>\n<p><strong>trustStorePath, keyStorePath, globalPassPhrase, keystorePassword<\/strong>: If AG is set in simple\/cert mode, provide the keystore and relevant details.<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Steps to run the command<\/strong><\/span>:<\/p>\n<ul>\n<li>Run .\/wlst.sh from $ORACLE_HOME\/common\/bin<\/li>\n<li>connect to weblogic admin server.<\/li>\n<li>Run WLST command addPartnerForMultiDataCentre(propfile=&#8221;\/opt\/oam\/MDC\/partnerInfo.properties&#8221;)<\/li>\n<li>You should see successful message as shown belowls:\/oam_domain\/serverConfig&gt;addPartnerForMultiDataCentre(propfile=&#8221;\/opt\/oam\/MDC\/partnerInfo.properties&#8221;)<br \/>\nPartner added successfully.<br \/>\nsuccess:<\/li>\n<\/ul>\n<ul>\n<li>I had executed this command in both data centers. After execution, we can verify this in oam-config.xml under the section\u00a0MultiDataCenterPartners as shown below<\/li>\n<\/ul>\n<p>&lt;Setting Name=&#8221;MultiDataCenterPartners&#8221; Type=&#8221;htf:map&#8221;&gt;<br \/>\n&lt;Setting Name=&#8221;CLUSTER_NAME&#8221; Type=&#8221;htf:map&#8221;&gt;<br \/>\n&lt;Setting Name=&#8221;oamMdcSecurityMode&#8221; Type=&#8221;xsd:string&#8221;&gt;open&lt;\/Setting&gt;<br \/>\n&lt;Setting Name=&#8221;periodForWatcher&#8221; Type=&#8221;xsd:string&#8221;&gt;2000&lt;\/Setting&gt;<br \/>\n&lt;Setting Name=&#8221;maxConnPool&#8221; Type=&#8221;xsd:string&#8221;&gt;10&lt;\/Setting&gt;<br \/>\n&lt;Setting Name=&#8221;minConnPool&#8221; Type=&#8221;xsd:string&#8221;&gt;1&lt;\/Setting&gt;<br \/>\n&lt;Setting Name=&#8221;delayForWatcher&#8221; Type=&#8221;xsd:string&#8221;&gt;1000&lt;\/Setting&gt;<br \/>\n&lt;Setting Name=&#8221;oamMdcAgentId&#8221; Type=&#8221;xsd:string&#8221;&gt;accessgate-oic&lt;\/Setting&gt;<br \/>\n&lt;Setting Name=&#8221;accessClientPasswd&#8221; Type=&#8221;xsd:string&#8221;&gt;qqwer3235123asdf&lt;\/Setting&gt;<br \/>\n&lt;Setting Name=&#8221;PrimaryHostPort&#8221; Type=&#8221;xsd:string&#8221;&gt;HOST:PORT&lt;\/Setting&gt;<br \/>\n&lt;Setting Name=&#8221;agentVersion&#8221; Type=&#8221;xsd:string&#8221;&gt;11g&lt;\/Setting&gt;<br \/>\n&lt;Setting Name=&#8221;serverConnTimeout&#8221; Type=&#8221;xsd:string&#8221;&gt;3600&lt;\/Setting&gt;<br \/>\n&lt;Setting Name=&#8221;SecondaryHostPort&#8221; Type=&#8221;xsd:string&#8221;&gt;&lt;\/Setting&gt;<br \/>\n&lt;\/Setting&gt;<\/p>\n<ul>\n<li>It worked as expected in DC1. When I executed in DC2, it displayed successful message but it is not updated in oam-config.xml.<\/li>\n<\/ul>\n<p><span style=\"text-decoration: underline;\"><strong>Fix<\/strong>:<\/span><\/p>\n<p>DC2 MDC cluster is write protected. To verify, open the oam-config.xml and look for the element WriteEnabledFlag as shown below.<\/p>\n<p><em>\u00a0 &lt;Setting Name=&#8221;WriteEnabledFlag&#8221; Type=&#8221;xsd:boolean&#8221;&gt;false&lt;\/Setting&gt;<\/em><br \/>\nSince it is set to false,\u00a0 any changes made through WLST will not take effect. So run below WLST command to fix this or you can manually edit the oam-config.xml carefully.<\/p>\n<pre>setMultiDataCenterWrite(WriteEnabledFlag = \"true\")<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In OAM 11g R2 PS2, I was working on Multi Data Center setup by following the documentation. I had to [&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":[429],"tags":[],"class_list":["post-7409","post","type-post","status-publish","format-standard","hentry","category-oam"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>addPartnerForMultiDataCentre is not updating MDC partners in oam-config.xml in OAM 11g R2 PS2 -<\/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\/2014\/03\/20\/addpartnerformultidatacentre-is-not-updating-mdc-partners-in-oam-config-xml-in-oam-11g-r2-ps2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"addPartnerForMultiDataCentre is not updating MDC partners in oam-config.xml in OAM 11g R2 PS2 -\" \/>\n<meta property=\"og:description\" content=\"In OAM 11g R2 PS2, I was working on Multi Data Center setup by following the documentation. I had to [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/onlineappsdba.com\/index.php\/2014\/03\/20\/addpartnerformultidatacentre-is-not-updating-mdc-partners-in-oam-config-xml-in-oam-11g-r2-ps2\/\" \/>\n<meta property=\"article:published_time\" content=\"2014-03-20T23:56:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-05-04T12:17:31+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=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2014\/03\/20\/addpartnerformultidatacentre-is-not-updating-mdc-partners-in-oam-config-xml-in-oam-11g-r2-ps2\/\",\"url\":\"https:\/\/onlineappsdba.com\/index.php\/2014\/03\/20\/addpartnerformultidatacentre-is-not-updating-mdc-partners-in-oam-config-xml-in-oam-11g-r2-ps2\/\",\"name\":\"addPartnerForMultiDataCentre is not updating MDC partners in oam-config.xml in OAM 11g R2 PS2 -\",\"isPartOf\":{\"@id\":\"https:\/\/onlineappsdba.com\/#website\"},\"datePublished\":\"2014-03-20T23:56:13+00:00\",\"dateModified\":\"2016-05-04T12:17:31+00:00\",\"author\":{\"@id\":\"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb\"},\"breadcrumb\":{\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2014\/03\/20\/addpartnerformultidatacentre-is-not-updating-mdc-partners-in-oam-config-xml-in-oam-11g-r2-ps2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/onlineappsdba.com\/index.php\/2014\/03\/20\/addpartnerformultidatacentre-is-not-updating-mdc-partners-in-oam-config-xml-in-oam-11g-r2-ps2\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2014\/03\/20\/addpartnerformultidatacentre-is-not-updating-mdc-partners-in-oam-config-xml-in-oam-11g-r2-ps2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/onlineappsdba.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"addPartnerForMultiDataCentre is not updating MDC partners in oam-config.xml in OAM 11g R2 PS2\"}]},{\"@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":"addPartnerForMultiDataCentre is not updating MDC partners in oam-config.xml in OAM 11g R2 PS2 -","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\/2014\/03\/20\/addpartnerformultidatacentre-is-not-updating-mdc-partners-in-oam-config-xml-in-oam-11g-r2-ps2\/","og_locale":"en_US","og_type":"article","og_title":"addPartnerForMultiDataCentre is not updating MDC partners in oam-config.xml in OAM 11g R2 PS2 -","og_description":"In OAM 11g R2 PS2, I was working on Multi Data Center setup by following the documentation. I had to [&hellip;]","og_url":"https:\/\/onlineappsdba.com\/index.php\/2014\/03\/20\/addpartnerformultidatacentre-is-not-updating-mdc-partners-in-oam-config-xml-in-oam-11g-r2-ps2\/","article_published_time":"2014-03-20T23:56:13+00:00","article_modified_time":"2016-05-04T12:17:31+00:00","author":"Masroof Ahmad","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Masroof Ahmad","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/onlineappsdba.com\/index.php\/2014\/03\/20\/addpartnerformultidatacentre-is-not-updating-mdc-partners-in-oam-config-xml-in-oam-11g-r2-ps2\/","url":"https:\/\/onlineappsdba.com\/index.php\/2014\/03\/20\/addpartnerformultidatacentre-is-not-updating-mdc-partners-in-oam-config-xml-in-oam-11g-r2-ps2\/","name":"addPartnerForMultiDataCentre is not updating MDC partners in oam-config.xml in OAM 11g R2 PS2 -","isPartOf":{"@id":"https:\/\/onlineappsdba.com\/#website"},"datePublished":"2014-03-20T23:56:13+00:00","dateModified":"2016-05-04T12:17:31+00:00","author":{"@id":"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb"},"breadcrumb":{"@id":"https:\/\/onlineappsdba.com\/index.php\/2014\/03\/20\/addpartnerformultidatacentre-is-not-updating-mdc-partners-in-oam-config-xml-in-oam-11g-r2-ps2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/onlineappsdba.com\/index.php\/2014\/03\/20\/addpartnerformultidatacentre-is-not-updating-mdc-partners-in-oam-config-xml-in-oam-11g-r2-ps2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/onlineappsdba.com\/index.php\/2014\/03\/20\/addpartnerformultidatacentre-is-not-updating-mdc-partners-in-oam-config-xml-in-oam-11g-r2-ps2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/onlineappsdba.com\/"},{"@type":"ListItem","position":2,"name":"addPartnerForMultiDataCentre is not updating MDC partners in oam-config.xml in OAM 11g R2 PS2"}]},{"@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\/7409","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=7409"}],"version-history":[{"count":0,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/posts\/7409\/revisions"}],"wp:attachment":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/media?parent=7409"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/categories?post=7409"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/tags?post=7409"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}