Thursday, May 2, 2013

Export/Import Policies in OAM 11gR2

One should use weblogic command line utilities to export/import access manager policies, partners and other config information.
Navigate to OIM_HOME on your system to run these commands


below is what i have in my local environment

Establish connection:

> cd C:\Oracle\Middleware\Oracle_IDM1\common\bin
> wlst.cmd
> connect('weblogic','password','t3://veeru-lab.veeru.com:7001')

Export Policies:

exportPolicy(pathTempOAMPolicyFile="/exampleroot/parent/tempfile.txt")

example:
> exportPolicy(pathTempOAMPolicyFile="C:/Oracle/Oracle_Assets/xml_export/policy02242013.xml")

once you export it, this is how it looks like















you just run for an export and see you have many files here. it is because each file reflects changes done per session. try to compare a couple of files using a comparison tool like Win merge and you will get to know what i am talking about. :)

Import Policies:

importPolicy(pathTempOAMPolicyFile="/exampleroot/parent/tempfile.txt")

example:
> importPolicy(pathTempOAMPolicyFile="C:/Oracle/Oracle_Assets/xml_export/policy_04222013.xml")


Export/Import delta:

exportPolicyDelta(pathTempOAMPolicyFile="<absoluteFilePath>")
importPolicyDelta(pathTempOAMPolicyFile="<absoluteFilePath>")

View Topology:

displayTopology(domainHome="<domainHomeName>")

example:
> displayTopology(domainHome="OAM10gApache2WebGate")


Thanks,
Veeru Yads

No comments:

Post a Comment

Other Posts