Creating a New Partition and Reassociating the Application to It
You can create a new partition in the new repository by redeploying the application and specifying the new partition. Then, you transfer the metadata to the new partition using WLST.
You can use this procedure to transfer metadata between two different types of repositories (file-based to database-based or from an Oracle Database to another database).
To create a new partition and reassociate the application to it:
- Export the metadata from the source partition to a directory on the file system using the WLST e
xportMetadatacommand:exportMetadata(application='sampleApp', server='server1', toLocation='/tmp/myrepos/mypartition', docs='/**') - Redeploy the application,You can deploy the following into Oracle WebLogic Server:
- A complete Java EE application packaged as an Enterprise Archive (EAR) file.
- Standalone modules packaged as Java Archive files (JARs) containing Web Services, Enterprise JavaBeans (EJBs), application clients (CARs), or resource adapters (RARs).
- An ADF application. Oracle Application Development Framework (Oracle ADF) is an end-to-end application framework that builds on Java Platform, Enterprise Edition (Java EE) standards, and open-source technologies to simplify and accelerate implementing service-oriented applications.
- An Oracle SOA Suite composite application. A SOA composite application is a single unit of deployment that greatly simplifies the management and lifecycle of SOA applications.
- An Oracle WebCenter application. WebCenter applications differ from traditional Java EE applications in that they support run-time customization, including the application’s pages, the portlets contained within these pages, and document libraries.
A Metadata Archive (MAR) is a compressed archive of selected metadata, such as the application-level deployment profile, for an application. A MAR is used to deploy metadata content to the metadata service (MDS) repository. The following application types use a MAR as a container for content that is deployed to the MDS Repository: ADF applications, SOA composite applications, and Oracle WebCenter applications.
When you do so, you specify the new partition and repository in the Application Attributes page:
- To change the repository, click the icon next to the Repository Name. In the Metadata Repositories dialog box, select the repository and click OK.
- To change the partition, enter the partition name in Partition Name.
- Import the metadata from the file system to the new partition using the WLST i
mportMetadatacommand:importMetadata(application='sampleApp', server='server1', fromLocation='/tmp/myrepos/mypartiton', docs='/**') - Optionally, deregister the original repository, as described in Section 13.3.3.2 or Section 13.3.2.2.
Alternatively, you can create a new partition using the WLST command createMetadataPartition. The partition name must be unique within the repository. If the partition parameter is missing, the name of the source partition is used for the target partition. The following example creates the partition partition1:
createMetadataPartition(repository='mds-repos1', partition='partition1')
Laisser un commentaire