Most of Oracle Identity Manager (OIM) 11g configuration files are stored in database under Metadata Services (MDS). OIM 11g is covered in my book
This post is quick how to export/import files from/to MDS which is also covered in Oracle Documentation here
1. cd $ORACLE_HOME/server/bin
2. Open file weblogic.properties and update following
wls_servername=oim_server1 (This is name of OIM server, you can get server name from weblogic console)
application_name=oim ( oim if file is OOB file or OIMMetadata if this is custom file)
metadata_from_loc=/home/fusionapps/scripts/metadata (Location of directory on file system that contains file which you wish to import; used during import process)
metadata_to_loc=/home/fusionapps/scripts/metadata (Location of file on file system which you wish to import, used during import process)
metadata_files=/db/* (Name of file which you wish to export/import like /db/oim-config.xml or user * which represents all files in that folder)
3. Set OIM_ORACLE_HOME to OIM ORACLE_HOME
export OIM_ORACLE_HOME=/oracle/apps/idam11115/mid/iam (replace value with OIM Oracle Home)
4. Execute export/import command like
./weblogicExportMetadata.sh
or
./weblogicImportMetadata.sh
5. When prompted for username/password enter weblogic administrator username/password
6. When prompted for Server URL , enter Admin Server URL like t3://onlineAppsDBA.com:14000 (here onlineAppsDBA.com is server name on which OIM Server is running and 14000 is port of OIM Server) – [Thanks Sunny for pointing this out]
For any errors check log file under $DOMAIN_HOME/servers/<OIMSrverName>/logs
Related Posts for Identity Manager
- Oracle Identity Manager (User Provisioning – Thor)
- Installing Oracle Identity Manager (Thor Xellerate)
- Oracle Identity Manager 9.1 released
- Oracle Identity Manager (Thor Xellerate) Architecture
- Resource, Reconciliation, Provisioning and Connector in Oracle Identity Manager #OIM
- Oracle Identity Manager (OIM) Connector for Oracle Internet Directory (OID) : Architecture and Overview
- Step by Step Installation of OIM Design Console 9.1.0
- Error while running PurgeCache in OIM 11g : LoginException unable to find LoginModule class : WebLogic Full Clinet
- Integrate OIM 11g with OID using connector for Provisioning / Reconcilliation – Installation
- PurgeCache in OIM 11g : CategoryName
- OIM LDAP Sync : Overview and Key Points
- OIM 11g : How to export/import/delete Files from MDS
- Where are OAM details stored in OIM (account unlock, password reset)
- libOVD adapters in OIM LDAP Integration : LDAPsync – view and modify Adapter settings (bindDN and bindPassword)
- Error Starting OIM Design Console (xlclient.sh) on Linux java.lang. NoClassDefFoundError
- OIM 11g Challenge Questions (PCQ) for forgot password
- Oracle EBS Integration with OIM (Identity Manager) : Things you should know
- Users not synced from OID to OIM : Debug Scheduled Job
- OIM Connector for Microsoft : AD, Exchange, Windows, Password Management
- Connector Server for OIM connectors : .NET or JAVA
- OIM 11g Challenge Questions – Everything you must know
- OIM 11g How to add Challenge Questions
- OIM : Assign AD resource : An error occurred because the Adapters are not compiled : How to compile adapters in OIM
- OIM User Creation : An Error occurred while performing create user operation. Unable to get LDAP connection
- OIM – AD integration : Active Directory Group Lookup Recon failed with error Remote Framework Key is invalid
- Microsoft Active Directory (AD) to Oracle Identity Manager (OIM) Password Synchronization: Things you must know : Part I
- Provision resource “Microsoft Exchange” to user in OIM : Status remains in Provisioning : Part I
- Target Resource (or Managed Resource) vs Trusted Source (or Authoritative Source) Mode : OIM integration with applications (AD, OID, OVD, EBS, SAP, HR, LDAP)
- 500 Internal server accessing OIM application : com.bea. security.MicroSM. getInstance oracle.iam. platform. authz.impl
- Your account is locked. You can unlock your account by going to Forgot Password
- OIM 11g : How to find User and Manager details : USR table
- OIM 11g : User Detail/Attribute (Description) not visible in OIM User screen : EBS / OID / OIM integration
- OIM 11g: The add proxy operation for user XXXXX failed with following error oracle. bpel. services. workflow. client. workflowservieclientException javax.xml.ws.WebServiceException could not determine wsdl ports
- Oracle Identity Manager BP07 for 11gR1 PS1 11.1.1.5.7 (16097399) is now available – (Part of Identity Management SUite BP03 16209876)
- OIM 11g : SQL to List User’s Manager
- OIM integrated with OAM (SSO) showing OIM login screen : User Soft Locked





Good hands-on exercises (installation, patching, cloning), very experienced trainer worth every penny 
8 users commented in " OIM 11g : How to export/import/delete Files from MDS "
Follow-up comment rss or Leave a Trackback[...] OIM stores OAM details in MDS (database) under /db/oim-config.xml. You can export this file from MDS to file system using steps mentioned here [...]
Hi,
I am trying to export UserProfile using MDS utilities, Getting the following error.
Problem invoking WLST – Traceback (innermost last):
File “C:\Oracle\Middleware\Oracle_IDM1\server\bin\weblogicExportMetadata.py” line 22, in?
File “C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\mdsWLSTCommands.py”, Line 237, in exportMetadata
File “C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\mdsWLSTCommands.py”, Line 733, in executeAppRunTimeMBeanOperation
File “C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\mdsWLSTCommands.py”, Line 996, in saveStackAndRaiseException
WLSTException:MDS-01160: Expecting absolute document reference. Reference “dboim-config.xml” is a relative reference to the document. MDS-91009: Operation “exportMetadata” failure. Use dumpStack() to view the full stacktrac.e
Please help me on this.
I am using following in the weblogic.properties file
application_name=oim
metadata_from_loc = C:\Oracle\Middleware\server\metadata
metadata_to_loc = C:\Oracle\Middleware\server\metadata
metadata_files=\db\oim-config.cml
Using weblogicExportMetadata.bat (Windows machine)
Thanks
Sudhakar
@ Sudhakar,
For windows
metadata_to_loc : paths include // as file or directory separator.
metadata_files=/db/oim-config.xml
Thanks Atul
That worked, But still I am unable to get the Exported file
I need RA_HRDATASOURCEGTC41.xml from the DB.
Specified this in weblogic.properties file
application_name=oim
metadata_from_loc=C:\Oracle\Middleware\Oracle_IDM1\server\metadata
metadata_to_loc=C:\Oracle\Middleware\logs
metadata_files=/db/RA_HRDATASOURCEGTC41.xml
Set OIM_ORACLE_HOME = C:\Oracle\Middleware\Oracle_IDM1
worked finally
Thanks
Sudhakar
Hi Arun,
Thanks for sharing the information. I would like to make one clarification though: the server URL is not Admin Server URL, its OIM Server URL.
Thanks
Sunny
@ Sunny,
Thanks for pointing this out.
Hi Atul,
I could not export /db/oim-config.xml until I changed application_name to OIMMetadata instead of oim. I think it should be corrected.
Thanks for all
Nacho
Leave A Reply