Database Reference
In-Depth Information
4.
Click on the
createMetadataPartition
operation and in the parameter list
enter a valid name of an existing MDS repository and a suitable partition
name to create a new partition.
Alternatively, you can also create a new partition using the
cre-
ateMetadataPartition
command from the WLST command line. It is im-
portant to note that a partition name must be unique within a repository. The fol-
lowing script creates a partition named
soacustom
in the
mds-custom
repos-
itory:
createMetadataPartition(repository=
'mds-custom'
, partition=
'soacustom'
)
Cloning a partition
Another efficient way to create a new metadata partition is to clone an existing
partition from a source repository to a different repository. Cloning a partition is
advantageous as it preserves the metadata version history including all custom-
izations made to the deployed composites.
Note that cloning a partition is permitted only if the source
and the target repository are both database-based repositor-
ies with backend databases of the same type and version.
The
MDSDomainRuntime
MBean contains, among other operations, the oper-
ation to clone a partition. The
cloneMetadataPartition
operation can be
invoked by passing a list of input parameters that specifies the
fromRepos-
itory, fromPartition, toRepository
, and
toPartition
. The argu-
ments required for the function are self-explanatory and should be replaced with
actual values specific to your environment. Have a look at the steps outlining the
details to clone a partition dynamically at runtime: