Steps to export the MetaData from MDS for an application running on weblogic server. Here we are using WebLogic Scripting Tools to export.
1. Run wlst.sh from $BEAHOME/oracle_common/common/bin/wlst.sh
2. Connect the Weblogic server as mention:
wls:/offline> connect()
Please enter your username :weblogic
Please enter your password :
Please enter your server URL [t3://localhost:7001] :t3://localhost:9113
Connecting to t3://localhost:9113 with userid weblogic ...
Successfully connected to managed Server 'managedServer1' that belongs to domain 'DefaultDomain'
3. To list all the available commands
wls:/DefaultDomain/serverConfig> help('all') or wls:/dev2/serverConfig> help();
4. For get specific command description
wls:/DefaultDomain/serverConfig> help('exportMetadata')
5. The following example exports all metadata files from the application "app1" deployed in the server "server1":
wls:/weblogic/serverConfig> exportMetadata(application='app1', server='server1', toLocation='/tmp/myrepos',docs='/**')
Location changed to domainRuntime tree. This is a read-only tree with DomainMBean as the root.
For more help, use help(domainRuntime)
Executing operation: exportMetadata.
"exportMetadata" operation completed. Summary of "exportMetadata" operation is:
List of documents successfully transferred:
/mypackage/write.xml
/mypackage/write1.xml
/mypackage/mdssys/cust/user/user1/write1.xml.xml
/mypackage/mdssys/cust/user/user2/write2.xml.xml
/sample1.jspx
5 documents successfully transferred.