exportMetadata
Description
The application metadata can be transferred from one server location (for example, testing) to another server location (for example, production) by exporting and importing the metadata.Use this command to export metadata.
Syntax
exportMetadata(application, server, toLocation, [docs,] [restrictCustTo],
[excludeAllCust], [excludeBaseDocs], [excludeExtendedMetadata], [fromLabel],
[toLabel], [applicationVersion])
Argument | Definition |
---|---|
application
|
The name of the application from which the metadata is to be exported. |
server
|
The target server on which this application is deployed. |
toLocation
|
The target directory or archive file (.jar, .JAR, .zip or .ZIP) to which documents selected from the source partition will be transferred. The directory or archive file must be a local or network directory or file where the application is physically deployed. If the location is a directory, but the directory does not exist, the directory will be created. If the location is an archive file, an archive file will be created. If the archive file already exists, the exportMetadata operation will overwrite the file. This argument can be used as temporary file system for transferring metadata from one server to another. For more information, see "Moving Metadata from a Test System to a Production System" in the Oracle Fusion Middleware Administrator's Guide. |
docs
|
Optional. A list of
comma-separated, fully qualified document names or document name
patterns, or both. The patterns can have the following wildcard
characters: * and **.
This argument defaults to "/**", which exports all the metadata in the repository. The asterisk (*) represents all documents under the current namespace. The double asterisk (**) represents all documents under the current namespace and also recursively includes all documents in subnamespaces. For example, "/oracle/*" will include all documents under "/oracle/" but not include documents under "/oracle/mds/". "/oracle/**" will include all documents under "/oracle/" and also under "/oracle/mds/" and any other documents further in the namespace chain. |
restrictCustTo
|
Optional. A list of comma-separated customization layer names used to restrict the export operation to export only customization documents that match the specified customization layers. This argument will be ignored if the excludeAllCust argument is also specified. |
excludeAllCust
|
Optional. A Boolean value (true or false) that specifies whether or not to export all customization documents. This argument defaults to false. This argument overrides the restrictCustTo argument. |
excludeBaseDocs
|
Optional. A Boolean value (true or false) that specifies whether or not to export base documents. This argument defaults to false. |
excludeExtendedMetadata
|
Optional. A Boolean value (true or false) that specifies whether or not to export the Extended Metadata documents. This argument defaults to false. |
fromLabel
|
Optional. Transfers the documents from the source partition that is associated with this label. |
toLabel
|
Optional. Works with the fromLabel argument to transfer the delta between fromLabel to toLabel from the source partition. |
applicationVersion
|
Optional. The application version, if multiple versions of the same application are deployed. |
Examples
The following example exports all metadata files from the applicationmdsapp
deployed in the server srg
.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.jspxThe following example exports only the customization documents under the layer
user
without any base documents from label label1
to label label2
:wls:/weblogic/serverConfig> exportMetadata(application='mdsapp', server='srg',toLocation='/tmp/myrepos', restrictCustTo='user', excludeBaseDocs='true', fromLabel='label1', toLabel='label2', applicationVersion='11.1.1') List of documents successfully transferred: /mypackage/mdssys/cust/user/user1/write1.xml.xml /mypackage/mdssys/cust/user/user2/write2.xml.xml 2 documents successfully transferred.
No comments:
Post a Comment