Thursday, March 21, 2013

Command to Import/Export/Delete MDS in SOA11G

Dear Team

Please find the below command to Import/Exort/Delete/Purge  MDS in SOA 11g



If the environment is SSL enabled ,Please make sure to set the CONFIG_JVM_ARGS before invoking wlst.sh




export CONFIG_JVM_ARGS="-Dweblogic.security.SSL.ignoreHostnameVerification=true -Dweblogic.security.TrustKeyStore=CustomTrust -Dweblogic.security.CustomTrustKeyStoreFileName=/var/domain/soa_01/keystore/WebLogicTrustKeyStore.jks -Dweblogic.security.CustomTrustKeyStorePassPhrase=wltkpwd -Dweblogic.security.CustomTrustKeyStoreType=JKS -Dweblogic.security.SSL.allowSmallRSAExponent=true"





wls:/weblogic/serverConfig> exportMetadata(application='mdsapp',server='srg',toLocation='/tmp/myrepos',docs='/**')

wls:/weblogic/serverConfig> deleteMetadata(application='mdsapp',server='srg', docs='/mypackage/*')

wls:/weblogic/serverConfig> importMetadata(application='mdsapp', server='srg',fromLocation='/tmp/myrepos',docs="/**")

wls:/weblogic/serverConfig> purgeMetadata('mdsapp', 'srg', 10)







Example :-

wls:/weblogic/serverConfig> deleteMetadata(application='mdsapp',

server='srg', docs='/mypackage/*', cancelOnException='false',

excludeExtendedMetadata='true',

excludeAllCust='true')

Executing operation: deleteMetadata.

"deleteMetadata" operation completed. Summary of "deleteMetadata" operation is:

List of documents successfully deleted:

/mypackage/jobs.xml

/mypackage/mo.xml

2 documents successfully deleted.

wls:/weblogic/serverConfig>





wls:/weblogic/serverConfig> exportMetadata(application='mdsapp',

server='srg',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

/sample1.jspx









wls:/weblogic/serverConfig> importMetadata(application='mdsapp', server='srg',

fromLocation='/tmp/myrepos',docs="/**")

Executing operation: importMetadata.

"importMetadata" operation completed. Summary of "importMetadata" operation is:

List of documents successfully transferred:

/app1/jobs.xml

/app1/mo.xml

2 documents successfully transferred.

wls:/weblogic/serverConfig>









wls:/weblogic/serverConfig> purgeMetadata('mdsapp', 'srg', 10)

Executing operation: purgeMetadata.

Metadata purged:Total number of versions: 10.

Number of versions purged: 0.

wls:/weblogic/serverConfig>












http://docs.oracle.com/cd/E14571_01/web.1111/e13813/custom_mds.htm#CHDHDCAI

No comments:

Post a Comment