Transferring Metadata Using Fusion Middleware Control

Managing the Metadata Repository 14-25 To promote a label to the tip, use the WLST command promoteMetadataLabel. For example to promote the label prod1, use the following command: promoteMetadataLabelapplication=my_mds_app, server=server1, name=prod1 Location changed to domainRuntime tree. This is a read-only tree with DomainMBean as the root. For more help, use helpdomainRuntime Executing operation: promoteMetadataLabel. Promoted metadata label prod1 to tip. If the application has more than one version, you must use the applicationVersion parameter to specify the version.

14.3.12.4 Purging Metadata Labels

You can purge metadata labels that match the given name pattern or age, allowing you to purge labels that are no longer in use. This reduces the size of the database, improving performance. You must delete the labels associated with unused metadata documents before you can purge the documents and revision history from the repository. You may want to delete a label for older applications that were undeployed, but the labels were not deleted. Each time you patch the MAR, a new label is created, but the previous label is not deleted. You can use Fusion Middleware Control or WLST to purge metadata labels, as described in the following topics: ■ Purging Metadata Labels Using Fusion Middleware Control ■ Purging Metadata Labels Using WLST

14.3.12.4.1 Purging Metadata Labels Using Fusion Middleware Control To metadata labels

using Fusion Middleware Control: 1. Expand the farm, then expand Metadata Repositories. 2. Select the repository. The repository home page is displayed. 3. Select a partition and click Manage Labels. The Manage Labels page is displayed, as shown in the following figure: 14-26 Oracle Fusion Middleware Administrators Guide By default, the table lists all metadata labels created in the selected partition that are more than one year old and that are not deployed or associated with a sandbox. 4. By default, labels associated with sandboxes and deployed applications are not shown. To display those labels, select Sandboxes or Deployment or both. Note the following: ■ You cannot delete a label associated with a sandbox. ■ If you select Deployment, the labels that are associated with MAR deployments are displayed. 5. To filter the labels displayed by name, enter the filter criteria in the box above Name. The characters are case sensitive. You can use the following wildcards: ■ Percent : Matches any number of characters ■ Underscore _: Matches a single character ■ Backslash \: Used as an escape character for the wildcards For example, the string postDeployLabel returns any label beginning with postDeployLabel. As a result, it displays labels associated with a deployed MAR. 6. To filter the labels by those older than a particular time, select the time in Older Than. For example, if you specify 2 months, the labels older than 2 months are returned. 7. Select the label and click Delete Selected. 8. In the confirmation box, click OK. If you want to purge all unused labels, for a particular deployed application: 1. Select Deployment. 2. Filter by name, using the string postDeployLabel_application_name. 3. Select all but the latest which is in use to delete. The most recent label---the one that is currently being used---is listed first. 4. Click Delete Selected. 14.3.12.4.2 Purging Metadata Labels Using WLST You can purge metadata labels that match the given pattern or age, using the WLST command purgeMetadataLabels. The command purges the labels that match the criteria specified, but it does not delete the metadata documents that were specified by the labels. For example, to purge all metadata labels that match the specified namePattern and that are older than 30 minutes: purgeMetadataLabelsrepository=mds-myRepos, partition=partition1, namePattern=prod, olderThanInMin=30 Location changed to domainRuntime tree. This is a read-only tree with DomainMBean as the root. For more help, use helpdomainRuntime Executing operation: purgeMetadataLabels. The following metadata labels were purged: repository=mds-soa,parititon=partition1,namePattern=prod,olderThanInMin=30: