When you install Oracle WebCenter you get also some new functions inside the WLST which allows you to export the metadata. To use this functions you need to do the following:
- Go to the location where your Oracle WC was installed. The default folder is Oracle_WC1
- Start the wlst.sh script inside. This will initialize a session with the newly installed functions. If everything was running well you will see a screen similar like the one bellow.
- Now you can connect to the WebLogic Server domain by executing the following:
connect('weblogic', 'welcome1', 't3://127.0.0.1:7001')
I use the Pre-Build Virtual Machine for Oracle WebCenter Portal, which you can download here.
- Export WebCenter Portal metadata from MDS using the following command:
application- the name of the deployed application
server- managed server on which the application runs
toLocation- location where the exported metadata will be saved
docs- the sub tree of metadata you want to export. In our case everything under /oracle/webcenter/
You can use this for example to synchronize metadata between the WebCenter Portal and the JDeveloper, if for example some portal object, for example pages, where created in runtime mode.