Label

Tuesday, June 27, 2017

Migrate application roles in OBIEE 11g

Create a xml file (jps-config.xml) for the migration purpose. change the file locations as per your  understanding.


Below are the steps to be performed on target server. - copy your source  system-jazn-data.xml in /tmp/src    -- from source server or Domain.
- copy your taget system-jazn-data.xml in /tmp/tgt
- provide 777 to /tmp/src and /tmp/tgt 
- create a backup of the target system-jazn-data.xml. you can get it from  $DOAMIN_HOME/config/fmwconfig/system-jazn-data.xml

create a xml file named jps-config.xml and place the below xml  contents in it, be sure modify the location of the files as per according.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<jpsConfig xmlns="http://xmlns.oracle.com/oracleas/schema/11/jps-config-11_1.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.oracle.com/oracleas/schema/11/jps-config-11_1.xsd"
schema-major-version="11" schema-minor-version="1">
<!-- This property is for jaas mode. Possible values are "off", "doas" and "doasprivileged" -->
<property name="oracle.security.jps.jaas.mode" value="off"/>
 <propertySets>
<!-- SAML Trusted Issuer -->
<propertySet name="saml.trusted.issuers.1">
<property name="name" value="www.oracle.com"/>
</propertySet> </propertySets>
 <serviceProviders>
<serviceProvider type="POLICY_STORE" name="policystore.xml.provider" class="oracle.security.jps.internal.policystore.xml.XmlPolicyStoreProvider"> <description>XML-based
 PolicyStore Provider</description> </serviceProvider> </serviceProviders>
 <serviceInstances>
 <!-- JPS XML Policy Store Service Instance -->
<serviceInstance name="srcpolicystore.xml" provider="policystore.xml.provider" location="/tmp/src/system-jazn-data.xml">
<description>File Based Policy Store Service Instance</description>
</serviceInstance>
 <serviceInstance name="policystore.xml" provider="policystore.xml.provider" location="/tmp/tgt/system-jazn-data.xml">
<description>File Based Policy Store Service Instance</description>
</serviceInstance>
 </serviceInstances>
 <jpsContexts default="default">
<!-- This is the default JPS context. All the mandatory services and Login Modules must be configured in this default context -->
<jpsContext name="sourceFileStore">
<serviceInstanceRef ref="srcpolicystore.xml"/>
</jpsContext> <jpsContext name="targetFileStore">
<serviceInstanceRef ref="policystore.xml"/>
</jpsContext>
</jpsContexts>
</jpsConfig> 


Invoke wlst prompt.

$MIDDLEWARE_HOME/oracle_common/common/bin/wlst.sh

Connect to Admin server.
connect ('weblogic','Welcome1','t3://testbiserver.dev.com:34201')

Migrate application roles.
migrateSecurityStore(type="policystore", configFile="/tmp/jps-config.xml", src="sourceFileStore", dst="targetFileStore")

move system-jazn-data.xml from /tmp/tgt to $DOAMIN_HOME/config/fmwconfig   on target location.

No comments:

Post a Comment