{"id":2923,"date":"2012-02-24T04:59:29","date_gmt":"2012-02-24T08:59:29","guid":{"rendered":"http:\/\/onlineappsdba.com\/index.php\/2012\/02\/24\/exporting-of-policies-in-oes-11g\/"},"modified":"2012-02-24T04:59:29","modified_gmt":"2012-02-24T08:59:29","slug":"exporting-of-policies-in-oes-11g","status":"publish","type":"post","link":"https:\/\/onlineappsdba.com\/index.php\/2012\/02\/24\/exporting-of-policies-in-oes-11g\/","title":{"rendered":"Exporting of policies in OES 11g"},"content":{"rendered":"<p><strong>Exporting of Policy to a xml file<br \/>\n<\/strong>Steps to migrate policies to a xml file are as follows:<\/p>\n<p>Note: My OES server is installed on linux enviroment.<\/p>\n<p>I. On the OES server\u00a0 installed box create a folder migration. Eg: \/OES\/migration<\/p>\n<p>II. Create a file jps-config.xml Eg: \/OES\/migration\/jps-config.xml<\/p>\n<p>III. Copy the content below to the jps-config.xml file create above and edit the DB connection parameters.<\/p>\n<p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243; standalone=&#8221;yes&#8221;?&gt;<br \/>\n&lt;jpsConfig xmlns=&#8221;http:\/\/xmlns.oracle.com\/oracleas\/schema\/11\/jps-config-11_1.xsd&#8221; xmlns:xsi=&#8221;http:\/\/www.w3.org\/2001\/XMLSchema-instance&#8221; xsi:schemaLocation=&#8221;http:\/\/xmlns.oracle.com\/oracleas\/schema\/11\/jps-config-11_1.xsd&#8221;&gt;<br \/>\n&lt;property value=&#8221;off&#8221; name=&#8221;oracle.security.jps.jaas.mode&#8221;\/&gt;<\/p>\n<p>&lt;serviceProviders&gt;<br \/>\n&lt;serviceProvider class=&#8221;oracle.security.jps.internal.policystore.xml.XmlPolicyStoreProvider&#8221; name=&#8221;policystore.xml.provider&#8221; type=&#8221;POLICY_STORE&#8221;&gt;<br \/>\n&lt;description&gt;XML-based PolicyStore Provider&lt;\/description&gt;<br \/>\n&lt;\/serviceProvider&gt;<br \/>\n&lt;serviceProvider class=&#8221;oracle.security.jps.internal.policystore.ldap.LdapPolicyStoreProvider&#8221; name=&#8221;policystore.provider&#8221; type=&#8221;POLICY_STORE&#8221;\/&gt;<br \/>\n&lt;\/serviceProviders&gt;<br \/>\n&lt;serviceInstances&gt;<\/p>\n<p>&lt;!&#8211; Source DB-based policy store instance &#8211;&gt;<br \/>\n&lt;serviceInstance provider=&#8221;policystore.provider&#8221; name=&#8221;policystore.db.source&#8221;&gt;<br \/>\n&lt;description&gt;DB Based Policy Store Service Instance&lt;\/description&gt;<br \/>\n&lt;property name=&#8221;policystore.type&#8221; value=&#8221;DB_ORACLE&#8221;\/&gt;<br \/>\n&lt;property name=&#8221;jdbc.url&#8221; value=&#8221;jdbc:oracle:thin:@dbhost:1521:SID&#8221;\/&gt;<br \/>\n&lt;property name=&#8221;jdbc.driver&#8221; value=&#8221;oracle.jdbc.driver.OracleDriver&#8221;\/&gt;<br \/>\n&lt;property name=&#8221;security.principal&#8221; value=&#8221;xxx_APM&#8221;\/&gt;<br \/>\n&lt;property name=&#8221;security.credential&#8221; value=&#8221;password&#8221;\/&gt;<br \/>\n&lt;property name=&#8221;oracle.security.jps.ldap.root.name&#8221; value=&#8221;cn=jpsroot&#8221;\/&gt;<br \/>\n&lt;property name=&#8221;oracle.security.jps.farm.name&#8221; value=&#8221;cn=oes_domain&#8221;\/&gt;<br \/>\n&lt;\/serviceInstance&gt;<br \/>\n&lt;!&#8211; Destination XML-based policy store instance &#8211;&gt;<br \/>\n&lt;serviceInstance name=&#8221;dst.xml&#8221; provider=&#8221;policystore.xml.provider&#8221; location=&#8221;\/OES\/migration\/system-jazn-data.xml&#8221;&gt;<br \/>\n&lt;description&gt;File Based Policy Store Service Instance&lt;\/description&gt;<br \/>\n&lt;\/serviceInstance&gt;<br \/>\n&lt;\/serviceInstances&gt;<br \/>\n&lt;jpsContexts default=&#8221;default&#8221;&gt;<br \/>\n&lt;jpsContext name=&#8221;default&#8221;&gt;<br \/>\n&lt;serviceInstanceRef ref=&#8221;policystore.db.source&#8221;\/&gt;<br \/>\n&lt;\/jpsContext&gt;<br \/>\n&lt;jpsContext name=&#8221;sourceContext&#8221;&gt;<br \/>\n&lt;serviceInstanceRef ref=&#8221;policystore.db.source&#8221;\/&gt;<br \/>\n&lt;\/jpsContext&gt;<br \/>\n&lt;jpsContext name=&#8221;destinationContext&#8221;&gt;<br \/>\n&lt;serviceInstanceRef ref=&#8221;dst.xml&#8221;\/&gt;<br \/>\n&lt;\/jpsContext&gt;<br \/>\n&lt;\/jpsContexts&gt;<br \/>\n&lt;\/jpsConfig&gt;<\/p>\n<p>IV. Copy the system-jazn-data.xml from the following location $ORACLE_HOME\/user_projects\/domains\/oes_domain\/config\/fmwconfig to \/OES\/migration<\/p>\n<p>V. On the OES server\u00a0 installed box navigate to the following location $ORACLE_HOME\/Oracle_IDM1\/common\/bin\/<\/p>\n<p>VI. Run the follwing command .\/wlst.sh<\/p>\n<p>VII. Connect the the weblogic domain where OES server is deployed. Eg: connect(&#8216;weblogic&#8217;,&#8217;password&#8217;,&#8217;t3:\/\/localhost:7001&#8242;)<\/p>\n<p>VIII. Execute the following command<\/p>\n<ul>\n<li>If you need to migrate entire policystore use this command:<\/li>\n<\/ul>\n<blockquote><p>Eg: migrateSecurityStore(type=&#8221;policyStore&#8221;,src=&#8221;sourceContext&#8221;,dst=&#8221;destinationContext&#8221;,configFile=&#8221;OES\/migration\/jps-config.xml&#8221;)<\/p><\/blockquote>\n<ul>\n<li>If you need to migration only a specific application policy:<\/li>\n<\/ul>\n<blockquote><p>\u00a0 Eg:\u00a0 migrateSecurityStore(type=&#8221;appPolicies&#8221;, src=&#8221;sourceContext&#8221;,dst=&#8221;destinationContext&#8221;,configFile=&#8221;\/OES\/migration\/jps-config.xml&#8221;,srcApp=&#8221;Application Name&#8221;, dstApp=&#8221;Application Name&#8221;,overWrite=&#8221;true&#8221;)<\/p><\/blockquote>\n<p>Verify the\u00a0 system-jazn-data.xml file and check if the content are updated.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Exporting of Policy to a xml file Steps to migrate policies to a xml file are as follows: Note: My [&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-2923","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>Exporting of policies in OES 11g -<\/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\/2012\/02\/24\/exporting-of-policies-in-oes-11g\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Exporting of policies in OES 11g -\" \/>\n<meta property=\"og:description\" content=\"Exporting of Policy to a xml file Steps to migrate policies to a xml file are as follows: Note: My [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/onlineappsdba.com\/index.php\/2012\/02\/24\/exporting-of-policies-in-oes-11g\/\" \/>\n<meta property=\"article:published_time\" content=\"2012-02-24T08:59:29+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\/2012\/02\/24\/exporting-of-policies-in-oes-11g\/\",\"url\":\"https:\/\/onlineappsdba.com\/index.php\/2012\/02\/24\/exporting-of-policies-in-oes-11g\/\",\"name\":\"Exporting of policies in OES 11g -\",\"isPartOf\":{\"@id\":\"https:\/\/onlineappsdba.com\/#website\"},\"datePublished\":\"2012-02-24T08:59:29+00:00\",\"author\":{\"@id\":\"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb\"},\"breadcrumb\":{\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2012\/02\/24\/exporting-of-policies-in-oes-11g\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/onlineappsdba.com\/index.php\/2012\/02\/24\/exporting-of-policies-in-oes-11g\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2012\/02\/24\/exporting-of-policies-in-oes-11g\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/onlineappsdba.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Exporting of policies in OES 11g\"}]},{\"@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":"Exporting of policies in OES 11g -","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\/2012\/02\/24\/exporting-of-policies-in-oes-11g\/","og_locale":"en_US","og_type":"article","og_title":"Exporting of policies in OES 11g -","og_description":"Exporting of Policy to a xml file Steps to migrate policies to a xml file are as follows: Note: My [&hellip;]","og_url":"https:\/\/onlineappsdba.com\/index.php\/2012\/02\/24\/exporting-of-policies-in-oes-11g\/","article_published_time":"2012-02-24T08:59:29+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\/2012\/02\/24\/exporting-of-policies-in-oes-11g\/","url":"https:\/\/onlineappsdba.com\/index.php\/2012\/02\/24\/exporting-of-policies-in-oes-11g\/","name":"Exporting of policies in OES 11g -","isPartOf":{"@id":"https:\/\/onlineappsdba.com\/#website"},"datePublished":"2012-02-24T08:59:29+00:00","author":{"@id":"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb"},"breadcrumb":{"@id":"https:\/\/onlineappsdba.com\/index.php\/2012\/02\/24\/exporting-of-policies-in-oes-11g\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/onlineappsdba.com\/index.php\/2012\/02\/24\/exporting-of-policies-in-oes-11g\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/onlineappsdba.com\/index.php\/2012\/02\/24\/exporting-of-policies-in-oes-11g\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/onlineappsdba.com\/"},{"@type":"ListItem","position":2,"name":"Exporting of policies in OES 11g"}]},{"@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\/2923","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=2923"}],"version-history":[{"count":0,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/posts\/2923\/revisions"}],"wp:attachment":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/media?parent=2923"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/categories?post=2923"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/tags?post=2923"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}