Monday, February 27, 2012

Oracle SOA 11.1.1.5 Transferring Metadata using WLST

Transferring Metadata using WLST

To use WLST to transfer metadata:
  1. Export the metadata from the original partition using the exportMetadata command:
    exportMetadata(application='sampleApp', server='server1',
           toLocation='/tmp/myrepos/mypartition', docs='/**')
    
    This command exports a versioned stripe of the metadata documents from the metadata partition to a file system directory. Only customization classes declared in the cust-config element of adf-config.xml are exported. If there is no cust-config element declared in adf-config.xml, all customization classes are exported.
    To export all customizations, use the option restrictCustTo="%".
  2. If the production application is on a different system, copy the exported metadata to that system.
  3. Import the metadata to the other partition using the WLST importMetadata command:
    importMetadata(application='sampleApp', server='server1',
           fromLocation='/tmp/myrepos/mypartiton', docs='/**')
    
    The value of the fromLocation parameter must be on the same system that is running WLST or on a mapped network drive or directory mount. You cannot use direct network references such as \\mymachine\repositories\.
    Only customization classes declared in the cust-config element of adf-config.xml are imported. If there is no cust-config element declared in adf-config.xml, all customization classes are imported.
    To import all customizations, use the option restrictCustTo="%".

2 comments:

  1. How can i deploy files to mds from windows machine to mds residing on linux machine?
    I tried the following but not working. Can anyone help me?
    connect('weblogic','welcome1','t3://hostname:7011')

    importMetadata(application='soa-infra', server='SOASvr1', fromLocation='C:/tmp/deploy', docs='/**')

    ReplyDelete
  2. Error:
    Location changed to custom tree. This is a writable tree with No root.
    For more help, use help(custom)

    ReplyDelete

ForgeRock IAM : OpenDS (Open Directory Server). Importing LDIF files

The most efficient method of importing LDIF data is to take the OpenDJ server offline. Alternatively, you can schedule a task to import the ...