5 Migrate an Instance to Oracle Java Cloud Service Using Application Migration Service
Use Application Migration in Oracle Cloud Infrastructure to migrate your Oracle WebLogic Server domain resources and applications from your existing Oracle Java Cloud Service instance in Oracle Cloud Infrastructure Classic to a new instance in Oracle Cloud Infrastructure.
Application Migration is available only in specific Oracle Cloud Infrastructure regions. See Overview of Application Migration in the Oracle Cloud Infrastructure documentation.
Application Migration does not support the migration of WebLogic Server domains that include these types of resources:
- Custom Identity or Trust Keystore
- Foreign JNDI Provider
- Foreign JMS Server
- JMS Bridge Destination
- Storage-and-Forward (SAF) Context
- JavaMail Session
- WebLogic Diagnostic Framework (WLDF) REST Notification Endpoint
If your source Oracle Java Cloud Service instance uses these resource types, then Oracle recommends using the Oracle Cloud Infrastructure Classic Java Migration Tool instead of Application Migration. See Migrate an Instance to Oracle Java Cloud Service Using Classic Tools.
Before you begin the migration process, see Prepare to Migrate Oracle Java Cloud Service to Oracle Cloud Infrastructure.
When you migrate an Oracle Java Cloud Service instance, the following terms are used:
- Source: The connection to your Oracle Cloud Infrastructure Classic account in Application Migration.
- Source Instance: The Oracle Java Cloud Service instance in Oracle Cloud Infrastructure Classic.
- Target Instance: The Oracle Java Cloud Service instance in Oracle Cloud Infrastructure.
Perform Prerequisite Tasks for Oracle Java Cloud Service
Before you use Application Migration Service to create an Oracle Java Cloud Service instance in an Oracle Cloud Infrastructure region, you must create the required infrastructure resources.
Create the following Oracle Cloud Infrastructure resources if they don't already exist:
- A compartment
- A virtual cloud network (VCN) and at least one subnet
- A storage bucket and user authentication token for backups (optional)
- Policies that allow Oracle Java Cloud Service to access the resources in your compartment
See Prerequisites for Oracle Platform Services in the Oracle Cloud Infrastructure documentation.
Application Migration Service automatically creates an Oracle Cloud Infrastructure Database before it creates the target instance. Oracle Java Cloud Service provisions the required infrastructure schema to this database.
Create a Source
Use Application Migration to connect to your Oracle Cloud Infrastructure Classic account and region.
- From the Oracle Cloud Infrastructure console, navigate to Application Migration.
- Select the Compartment in which to create the source.
- Click Sources.
- Click Create Source.
- Enter a Name and Description for the source.
- For Source Type, select Oracle Cloud Infrastructure - Classic.
- For Account, enter the name of your Oracle Cloud Infrastructure Classic account.
- Select the Oracle Cloud Infrastructure Classic Region in which you created your source Oracle Java Cloud Service instance.
- Enter credentials for this Oracle Cloud Infrastructure Classic account that have access to Oracle Java Cloud Service.
- Click Create.
For more information, see Manage Sources in the Oracle Cloud Infrastructure documentation.
Create a Migration
Use Application Migration to connect to the WebLogic Server domain for the Oracle Java Cloud Service instance within your source.
- From the Oracle Cloud Infrastructure console, navigate to Application Migration.
- Select the Compartment that contains your source.
- Click Sources, and then select your source.
- Click Actions for the Oracle Java Cloud Service instance that you want to migrate, and then click Create Migration.
- Enter a Name and Description for the migration.
- Enter the WebLogic Server administrator credentials for the Oracle Java Cloud Service instance.
- Set the Target Instance Type to Oracle Java Cloud Service.
- Click Create.
For more information, see Manage Migrations in the Oracle Cloud Infrastructure documentation.
Configure and Run a Migration
Use Application Migration to create the target Oracle Java Cloud Service instance in Oracle Cloud Infrastructure. Specify a network, databases, and other details.
- From the Oracle Cloud Infrastructure console, navigate to Application Migration.
- Select the Compartment that contains your migration.
- Click Migrations, and then select your migration.
- Click Configure.
- In the Configure Service section, click Configure.
- Select the Availability Domain in which you want to create the target instance.
- Select the Virtual Cloud Network and Subnet in which you want to create the target instance.
- Enter the System Database Administrator Password for the new Oracle Cloud Infrastructure Database.
- Upload or paste the public SSH Key to use for the target instance and database.
- Enter the WebLogic Server administrator credentials for the target instance.
- Click Configure to return to the Configure Migration page.
- If your source instance includes custom Java Database Connectivity (JDBC) data sources, then provide the location and password of the new application databases in Oracle Cloud
Infrastructure.
- Click Save and Run.
- When prompted for confirmation, click Start.
Use Application Migration to monitor the progress of your work request.
If the work request indicates that the import step of the migration failed, you can get additional information by connecting to the first node in the target instance. Access the log files found at /u01/weblogic-deploy
and /u01/jcsmig
. After correcting the problem, you can run the migration again.
For more information, see Manage Migrations in the Oracle Cloud Infrastructure documentation.
Copy Supporting Files to the Target Instance
Identify and copy any files to your target Oracle Java Cloud Service instance that are not automatically managed by Application Migration.
Application Migration migrates the following types of files from your source instance's domain configuration to your target instance's domain configuration:
- Application deployments
- Library deployments
- Custom keystores
Other files that your applications or domain resources require are not automatically managed by Application Migration, including files that are located outside the DOMAIN_HOME
directory. You must manually copy these files to the target instance.
Recreate Oracle Fusion Middleware Security Resources
If you created any custom users, groups, roles or policies in your source Oracle Java Cloud Service instance, then you must recreate them in the target instance.
Application Migration does not automatically migrate any Oracle Fusion Middleware security resources that you created to support your applications, including users, roles and policies. Perform this task if your source domain includes applications that use Oracle Fusion Middleware (FMW), Oracle Platform Security Services (OPSS), Oracle Application Development Framework (ADF) or Oracle Web Services Manager (WSM).
Migrate Oracle Identity Cloud Service Roles and Policies
If your source Oracle Java Cloud Service instance uses Oracle Identity Cloud Service for authentication, then you must migrate the administrator roles and web tier policy to the target instance.
The source and target instances are each associated with a security application in Oracle Identity Cloud Service. The security application grants administrative rights for the WebLogic Server domain to specific users and groups in Oracle Identity Cloud Service.
Your source and target instances must be in the same identity domain.
- Access the Oracle Identity Cloud Service console.
- Click the navigation drawer , and then select Applications.
- Export the administrator roles for your source instance.
- Export the web tier policy for your source instance.
- Click the security application for your source instance,
JaaS_<source_instance_name>
. - Click Web Tier Policy.
- Click Export. Save the file
CloudGatePolicy.txt
to your computer. - From the navigation links at the top of the page, click Applications.
- Click the security application for your source instance,
- Import the administrator roles to your target instance.
- Import the web tier policy to your target instance.
- Assign any custom applications to the roles for your target instance.
- Click the security application for your source instance,
JaaS_<source_instance_name>
. - Click Application Roles.
- If there is an Applications Assigned link for the first role, click this link, and then record the application names for this role.
- Repeat the previous step for all remaining roles in this application.
- From the navigation links at the top of the page, click Applications.
- Click the security application for your target instance,
JaaS_<target_instance_name>
. - Click Application Roles.
- Click Menu for the first role, and then select Assign Applications.
- Select the same applications that are assigned to this role in the source instance, and then click OK.
- Repeat the previous step for all remaining roles in this application.
- From the navigation links at the top of the page, click Applications.
- Click the security application for your source instance,
- Configure any custom security settings for your target instance.