Exporting and Importing policies in Oracle Entitlement Server.

At times, it is important to import/export policies from Database. I am explaining the scripts to be used to achieve this.

The policies are present in the XML config file policyIX_config.xml in the location BEA_HOME/ales32-admin/bin.

To export policies from Database to an XML file:

Assume you are running from the location  BEA_HOME/ales32-admin/bin.

./policyIX.sh -export ../config/policyIX_config.xml policies_export.xml -passwdPrompt

-passwdPrompt is optional field and is the OES admin password.

The <export_configuration> element present in policyIX_config.xml specifies which policies, roles, identities etc., to be exported to the file policies_export.xml. If you are interested, open the  policyIX_config.xml and check for the various elements available.

The stuff that gets exported are Organizations, Resources, Policies, Roles, Actions etc.,

The same output of this command is as follows:

$ ./policyIX.sh -export ../config/policyIX_config.xml policies_export_mahendra.xml
Uploading file:/opt/oracle/bea/wls10_3/ales32-admin/bin/../config/policyIX_config.xml
Upload complete
Policy Propagation is finished
Downloading exported policy file…
Downloading finished
$

 

To import policies from XML file to the Database:

Assume you are running from the location  BEA_HOME/ales32-admin/bin.

./policyIX.sh -import -disableTransaction ../config/policyIX_config.xml policies_export.xml  -passwdPrompt

disableTransaction is used to prevent loading of policies in single transaction. This is recommended when loading a large policy set. It improves loading performance, but loaded policy data will not be rolled back if the loading fails.

References:

OES Docs

About the Author Mahendra

I am engulfed in Oracle Identity & Access Management domain. I have expertise on providing the optimized solutions for user provisioning, web access management, Single Sign-On and federation capabilities etc., I am also well versed with complex integrations within Identity Management and other product domains. I have expertise on building demos and implementation experience on products Oracle Access Manager, Oracle Adaptive Access Manager, Oracle Entitlement Server, Oracle Virtual Directory, Oracle Internet Directory etc., Look @ my blog: http://talkidentity.blogspot.com

Leave a Comment:

3 comments
neworacledba says March 2, 2010

Nice post on exporting and importing policies

Reply
» How to export Application specific policy data in OES 10g? Online Apps DBA: One Stop Shop for Apps DBA’s says August 29, 2012

[…] OES 10g? Posted in August 29th, 2012 byMahendra in Uncategorized Long time ago I wrote a post on exporting and importing policies in OES 10g but that is full export and import. However if you […]

Reply
» Policy import failed in delete_existing mode in OES 10g Online Apps DBA: One Stop Shop for Apps DBA’s says August 30, 2012

[…] in oes, troubleshooting Refer my previous posts on export and import the entire policy data here and application specific data here in OES […]

Reply
Add Your Reply

Not found