3 Migrate an Oracle Java Cloud Service Instance to Oracle Cloud Infrastructure
Create a new Oracle Java Cloud Service instance in Oracle Cloud Infrastructure, and then use the Oracle WebLogic Server Deploy Tooling to migrate your Oracle WebLogic Server domain resources and applications from your existing instance in Oracle Cloud Infrastructure Classic.
When you migrate an Oracle Java Cloud Service instance, the following terms are used:
- Source: The Oracle Java Cloud Service instance in Oracle Cloud Infrastructure Classic.
- Target: The Oracle Java Cloud Service instance in Oracle Cloud Infrastructure.
Note:
The migration of a single Oracle Java Cloud Service instance takes approximately one day (8 hours). This does not include the time required to migrate any application databases.Topics:
- Perform Oracle Cloud Infrastructure Prerequisites
- Create the Target Instance
- Migrate the Application Databases
- Get Information About the Application Databases
- Get Information About the Service Instances
- Create a Backup of the Target Instance
- Stop All Oracle WebLogic Server Processes on the Target Instance
- Install the Oracle WebLogic Server Deploy Tooling
- Discover the Oracle WebLogic Server Domain on the Source Instance
- Edit the Domain Model and Copy It to the Target Instance
- Update the Oracle WebLogic Server Domain on the Target Instance
- Copy Supporting Files to the Target Instance
- Configure Node Manager SSL on the Target Instance
- Start All Oracle WebLogic Server Processes on the Target Instance
- Create the Trust Service Identity Asserter on the Target Instance
- Troubleshoot Migration Problems
Perform Oracle Cloud Infrastructure Prerequisites
Before you create an Oracle Java Cloud Service instance in an Oracle Cloud Infrastructure region, you must create the required infrastructure and database resources.
Create the Target Instance
Create a new Oracle Java Cloud Service instance in an Oracle Cloud Infrastructure region. This instance must have the same topology and configuration as the source instance in Oracle Cloud Infrastructure Classic.
If your source and target instances are located in the same Oracle Cloud account, they cannot have identical instance names.
The domain, server, and cluster names in a service instance are derived from the first eight characters of the instance name. For example, the following instance names are different, but result in identical domain, server, and cluster names in Oracle WebLogic Server:
MyJCSInstance
MyJCSInstanceOCI
From the Oracle Java Cloud Service console:
For more information, see Create an Oracle Java Cloud Service Instance Attached to a Public Subnet on Oracle Cloud in Administering Oracle Java Cloud Service.
Migrate the Application Databases
If the applications in your Oracle Java Cloud Service instance use database instances that were created in an Oracle Cloud Infrastructure Classic region, migrate these application databases to Oracle Cloud Infrastructure Database.
See Migrate a single-instance database from Oracle Database Cloud Service to a Virtual Machine DB System
- Create the Oracle Cloud Infrastructure Database instances in the same region and virtual cloud network (VCN) as your target Oracle Java Cloud Service instance.
- If the databases and target Oracle Java Cloud Service instance are on different subnets, then configure security rules that allow the service instance's subnet to communicate with the database ports.
Get Information About the Application Databases
Gather information about the Oracle Cloud Infrastructure Database instances that your target Oracle Java Cloud Service instance will use to access your application schemas. You will use this information to perform the migration.
Get Information About the Service Instances
Gather information about your source and target Oracle Java Cloud Service instances. You will use this information when you perform the migration.
Create a Backup of the Target Instance
Before you update your target Oracle Java Cloud Service instance in Oracle Cloud Infrastructure, create a backup of the service instance.
If you encounter problems during or after the migration process, you can restore this backup and try again.
Stop All Oracle WebLogic Server Processes on the Target Instance
Before you perform the migration on the target Oracle Java Cloud Service instance, you must stop all Oracle WebLogic Server and Node Manager processes.
Install the Oracle WebLogic Server Deploy Tooling
Download and install the Oracle WebLogic Server Deploy Tooling to your source and target Oracle Java Cloud Service instances.
Oracle WebLogic Server Deploy Tooling is an open-source project. It provides scripts that enable you to discover and export the configuration and application files from one Oracle WebLogic Server domain, and then import the configuration and applications into another domain.
Discover the Oracle WebLogic Server Domain on the Source Instance
Run the Oracle WebLogic Server Deploy Tooling on your source Oracle Java Cloud Service instance to capture its domain configuration, applications and other supporting files.
Edit the Domain Model and Copy It to the Target Instance
Oracle WebLogic Server Deploy Tooling exports a domain as a YAML file, which is referred to as the metadata model. Modify the YAML file so that it matches the configuration of your target Oracle Java Cloud Service instance.
For security purposes, Oracle WebLogic Server Deploy Tooling excludes the values of all password configuration attributes in the model file.
The domain model syntax allows you to externalize variables in a separate properties file. Oracle recommends that you use a separate file to configure the passwords that are required in your domain configuration, including data source and keystore passwords. To refer to a variable in the model file, use the @@PROP:<property_name>@@
format .
Update the Oracle WebLogic Server Domain on the Target Instance
Run the Oracle WebLogic Server Deploy Tooling on your target Oracle Java Cloud Service instance to update its domain configuration and to deploy your applications.
Copy Supporting Files to the Target Instance
Identify and copy any files to your target Oracle Java Cloud Service instance that are not managed by Oracle WebLogic Server Deploy Tooling.
Oracle WebLogic Server Deploy Tooling automatically finds and archives the following types of files in your source instance's domain configuration. It also adds these files 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 Oracle WebLogic Server Deploy Tooling, including files that are located outside the DOMAIN_HOME
directory. You must manually copy these files to the target instance.
Configure Node Manager SSL on the Target Instance
If you configured your source Oracle Java Cloud Service instance to use custom identity or trust keystores, then you must manually configure the Node Manager on each node in the target instance to use the custom keystores.
Start All Oracle WebLogic Server Processes on the Target Instance
After you update the domain configuration on the target Oracle Java Cloud Service instance, you must restart all Oracle WebLogic Server and Node Manager processes.
The Administration Server must be running before you start any Managed Servers.
- Start the Administration Server on the first node and verify that it started successfully.
- Start the Managed Servers on all nodes.
If you previously shut down the server processes by using the kill
command, then Node Manager restarts them for you automatically. Otherwise, you must start the server processes manually.
Create the Trust Service Identity Asserter on the Target Instance
After you update the domain configuration on the target Oracle Java Cloud Service instance, you must manually create the Trust Service Identity Assertion provider in the Oracle WebLogic Server security realm.
The Oracle WebLogic Server Deploy Tooling does not automatically migrate the Trust Service Identity Assertion provider from your source instance to your target instance. Create the provider if it is missing from your target instance.
Troubleshoot Migration Problems
If you encounter problems migrating your Oracle Java Cloud Service instance to Oracle Cloud Infrastructure, inspect the log files for the migration tools and servers. After correcting the problems, you can restore the target instance to its initial state, and then try the migration again.