Followers

Thursday, February 5, 2015

MDS Export using WLST

1. Launch Weblogic Scripting Tool:
Weblogic_HOME/common/bin>wslt.cmd
2. Connect to weblogic:
connect('weblogic','welcome1','t3://localhost:7001')
3. Verify the list of all available commands:
help(all)
4. List all applications:
listApplications()
5. Check the syntax of the export Metadata command:
help('exportMetadata')
6. Execute the export
exportMetadata(application='soa-infra', server='soa_server1', toLocation='c:\\export')
Please note that on Windows both
toLocation='c:\\export') and toLocation='c:\export') (where the difference is one or two slashes after 'c:') will work.
However, toLocation='c:\export\my_export') will fail with the following error:
Traceback (innermost last):
  File "<console>", line 1, in ?
  File "C:\WLS103~1\ORACLE~1\common\wlst\mdsWLSTCommands.py", line 237, in exportMetadata
  File "C:\WLS103~1\ORACLE~1\common\wlst\mdsWLSTCommands.py", line 733, in executeAppRuntimeMBeanOperation
  File "C:\WLS103~1\ORACLE~1\common\wlst\mdsWLSTCommands.py", line 996, in saveStackAndRaiseException
  WLSTException: MDS-90035: The target directory or archive "c:   ar\export" for exporting metadata is
 invalid.MDS-91009: Operation "exportMetadata" failure. Use dumpStack() to view the full stacktrace.
But, toLocation='c:\\export\\my_export') will work fine

No comments:

Post a Comment