Friday, March 8, 2013

OIM 11g R2: Exporting and Importing MDS Data

MDS Data Purpose: Some configurations for Oracle Identity Manager (OIM) are now stored in an MDS repository rather than on a file system on the OIM Server. Troubleshooting configuration issue can sometimes require exporting MDS data.

Follow below step to Export and Import MDS Data

  • Weblogic Server should be running while doing following operation

1) Create directory where you want to export your MDS Data.

2) Go to IDM_HOME/common/bin folder and run wlst.cmd (in windows) or (in unix)

3) Run "connect()" command

4) Enter following details

Please enter your username: weblogic (Enter weblogic username)
Please enter your password:  ****** (Enter weblogic Password)
Please enter your server URL: t3://localhost:7001 (Enter weblogic server URL)

5) Run the following command to export data.

exportMetadata(application='OIMMetadata', server='oim_server1', toLocation='provide full location')

6) Data will be exported to given directory as shown below.

Below are steps for importing MDS Data.

1) Add or Modify files (below I have added one file, I used it for creating custom schedule task)

2) Run below command to import.

3) Out put looks like this

4) use "disconnect()" to disconnect.


  1. Thanks for the detailed steps with screenshots.
    I tried the same steps but I am getting below mentioned error

    SyntaxError: invalid syntax
    Traceback (innermost last):
    (no code object) at line 0
    File "", line 1

  2. Hi Sheetal,

    Try the following Command...

    exportMetadata(application='OIMMetadata', server='oim_server1', toLocation='/tmp/OIM/MDSData')

    braces are (,) not < or > and use exportMetadata command.


  3. Thanks Chinni... It worked.. :)

  4. Nice. I suppose this is an alternative way compare to EM Fusion Midleware Control.
    Thanks for sharing.

  5. Yup Didier... we can see it this way :)


Other Posts