Tuesday, September 27, 2011

Exporting WebCenter Metadata using WLST

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://')


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:

exportMetadata(application='Portal_application1',server='WC_CustomPortal', toLocation='/u01/app',docs='/oracle/webcenter/**')

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.


  1. Thank you for the post !

    Does this require WC_spaces to be up and running at the time of execution of the wlst command?

  2. Hi there,

    actually I did this on environment where Spaces was not installed but only WebCenter Portal Framework, so it should work for WCP without the need to install Spaces.