Adding or Removing Servers Targeted to the MDS Repository

14-16 Oracle Fusion Middleware Administrators Guide Section 14.3.7.1 describes how to clone a partition and how to redeploy the application, specifying the partition that you have cloned. – Create a new partition, then export the metadata from the current partition and import the metadata into the new partition. Section 14.3.7.2 describes how to create the partition and export and import data and how to redeploy the application, specifying the new repository or partition. ■ Change the system data source. When you change the system data source, you can change the database or the schema in which it is stored. Section 14.3.4 describes how to change the system data source.

14.3.7.1 Cloning a Partition

You can clone a partition to the same repository or a different repository using the system MBean cloneMetadataPartition. Both the original repository and the target repository must be a database-based repository. To clone the partition, and then redeploy the application to a new repository or to the same repository: 1. Clone the partition, using the cloneMetadataPartition operation on the system MBean. The following example clones partition1 from the old repository to the new repository: a. In Fusion Middleware Control, from the navigation pane, navigate to the Managed Server from which the application is deployed. From the WebLogic Server menu, choose System MBean Browser. The System MBean Browser page is displayed. b. In the System MBean Browsers navigation pane, expand Application Defined MBeans, then expand oracle.mds.lcm. Expand the domain, and then MDSDomainRuntime. Select MDSDomainRuntime. c. In the Application Defined MBeans pane, select the Operations tab. The following figure shows the System MBeans Browser with the Application Defined MBeans pane: Managing the Metadata Repository 14-17 d. Select cloneMetadataPartiton. The Operation: cloneMetadataPartiton page is displayed. e. In the Parameters table, enter the following values: – For fromRepository, enter the name of the metadata repository that contains the metadata partition from which the metadata documents are to be cloned. – For fromPartition, enter the name of the partition from which the metadata documents are to be cloned. – For toRepository, enter the name of the metadata repository to which the metadata documents from the source repository partition are to be cloned. – For toPartition, enter the name of metadata repository partition to be used for the target partition. The name must be unique within the repository. If you do not supply a value for this parameter, the name of the source partition is used for the target partition. If the toRepository name is the same as the original repository, you must enter a partition name and the name must be unique within the reposi- tory. f. Click Invoke. g. Verify that the partition has been created by selecting the repository in the navigation pane. The partition is listed in the Partitions table on the Metadata Repository home page.