Creating a New Partition and Reassociating the Application to It

14-24 Oracle Fusion Middleware Administrators Guide metadata as it was at the time the label was created remains available until the label is deleted. When an application that contains a MAR is deployed, a label with the prefix postDeployLabel_ is created. For example: postDeployLabel_mdsappdb_ mdsappdb.mar_2556916398. Each time you patch the MAR, a new deployment label is created, but the previous deployment label is not deleted Similarly, when you undeploy an application that contains a MAR, the application is undeployed, but the label remains in the metadata repository partition. If you delete a deployment label, when the application is restarted, the MAR is automatically redeployed, and the deployment label is also recreated. The following topics describe how to manage labels: ■ Creating Metadata Labels ■ Listing Metadata Labels ■ Promoting Metadata Labels ■ Purging Metadata Labels ■ Deleting Metadata Labels

14.3.12.1 Creating Metadata Labels

To create a label for a particular version of objects in a partition in an MDS Repository, you use the WLST command createMetadataLabel. For example, to create a label named prod1 for the application my_mds_app, use the following command: createMetadataLabelapplication=my_mds_app, server=server1, name=prod1 Executing operation: createMetadataLabel. Created metadata label prod1. If the application has more than one version, you must use the applicationVersion parameter to specify the version.

14.3.12.2 Listing Metadata Labels

You can list the metadata labels for a particular application. To do so, use the WLST command listMetadataLabel. For example, to list the labels for the application my_mds_app, use the following command: listMetadataLabelsapplication=my_mds_app, server=server1 Executing operation: listMetadataLabels. Database Repository partition contains the following labels: prod1 prod2 postDeployLabel_mdsappdb_mdsappdb.mar_2556916398 If the application has more than one version, you must use the applicationVersion parameter to specify the version.

14.3.12.3 Promoting Metadata Labels

You can promote documents associated with a metadata label so that they become the latest version. That is, you can promote them to the tip. Promote a label if you want to roll back to an earlier version of all of the documents captured by the label.