Migrate Workloads Manually

You can migrate resources and applications manually from the on-premises domain to the new domain.

The domain created will have the topology defined during creation, with one managed server per machine.

To deploy resources, use the WebLogic Administrator Console.

To deploy applications, use one of the following methods:

  • Deploy applications through the WebLogic Administrator Console.

    This method is best when moving with few applications. This method requires you to recreate resources manually.

  • Deploy applications from the JDeveloper or Eclipse integrated development environment (IDE).

    This method is best when moving few applications for developers using JDeveloper. This method requires you to recreate resources manually.

Recreate the Source Domain Resources

You must manually recreate resources if you migrate the domain using WebLogic Server Administrator console or JDeveloper.

  1. Access the Weblogic Server Administrator console on Oracle Cloud Infrastructure.
  2. Click Lock & Edit to make changes in production domain.
  3. Click Service and Data Sources in the domain structure hierarchy.
  4. Click New and then select New Data Source.
  5. Specify the following and click Next.
    • Name: Make sure that the name you specify matches the name of the on-premises resource.
    • JNDI Name: Make sure that the name you specify matches the JDNI name of the data source in the source domain in the format jdbc.<ConnectionNameDS>.
    • Database Type: Select the database type or use accept the default.
  6. Select a Database Driver or accept the default and click Next.
  7. Accept the default Transaction Options and click Next.
  8. Specify the following connection properties and the click Next. Recall that the database connection string of the form <hostname>:<port>/<cdb_root_name>.<subdomain> provides most of these values.
    • Database Name: The database name should of the form: <your_pdb_name>.<subdomain> where <your_pdb_name> is the name of the PDB (not the CDB if using a database system) for the database you migrated to Oracle Cloud Infrastructure and the subdomain is the subdomain obtained from the database connection string.
    • Host Name: Specify the host name obtained from the database connection string.
    • Port: Specify the port name obtained from the database connection string. The default is 1521.
    • Database User Name: Specify the database user name.
    • Password: Specify and confirm the user password.
  9. Click Next
  10. Click Test connection
  11. Click Next
  12. For targets, select all servers or the cluster where applications that need the resource will be deployed.
  13. Click Finish.
  14. Click Activate Changes to add the newly created data source to the list of data sources.

Deploy Applications

To manually deploy applications, use one of the following methods.

  • Deploy applications through the WebLogic Administrator Console.

    This method is best when moving with few applications. This method requires you to recreate resources manually.

  • Deploy applications from the JDeveloper or Eclipse integrated development environment (IDE).

    This method is best when moving few applications for developers using JDeveloper. This method requires you to recreate resources manually.

Deploy Applications Using the WebLogic Administrator Console

You can deploy applications using WebLogic Server Administrator console.

  1. Access the Weblogic Server Administrator console on Oracle Cloud Infrastructure.
  2. Click Lock & Edit to make changes in production domain.
  3. Click Deployments in the domain structure hierarchy.
  4. Install the application:
    1. Click Install, then click Upload your file, then click Browse.
    2. Locate and select the local file to upload and click Upload. When the upload completes, click Next.
    3. Verify the deployment information and click Next.
    4. Select Install this deployment as an application and click Next.
    5. For targets, select all servers or the cluster where applications will be deployed and click Next.
    6. Under Sources Accessibility, select Copy this application onto every target for me and click Next.
    7. Click Finish.
    8. Click Activate Changes.
  5. Start the application and locate the application root path:
    1. Click Deployments in the domain structure hierarchy, then click the Control tab.
    2. Select the application, click Start and then select Start Servicing all requests
    3. Verify the deployment and click Yes to continue.
    4. To locate the application root path, click Deployments in the domain structure hierarchy, then click the Control tab.
    5. Click the application, then click the Testing tab and expand the tree to see the URL path where the application is running. The URL contains the fully qualified host name and application root path in the form<fqdn_host_name>:<port>/<application_root_path> .
  6. Access the application using the application root path at the IP address of the WebLogic Server load balancer in the form <Load_Balancer_IP>/<application_root_path>.
    1. To locate the IP address of the load balancer, sign in to the Oracle Cloud Infrastructure console if necessary, and open the navigation menu.
    2. Under Solutions and Platform go to Resources Manager and click Stacks
    3. Select the compartment where the Oracle Cloud Marketplace image was deployed
    4. Click the stack, then go to Jobs and select the latest job that deployed the stack.
    5. Under Outputs, find the WebLogic Server Load Balancer IP.
    6. Combine the load balancer IP and the application root path in the form <Load_Balancer_IP>/<application_root_path> to access the appliction.

Deploy the Application from JDeveloper or Eclipse

If you choose to deploy resources manually, you can also use JDeveloper or Eclipse to deploy applications.

Before you can deploy applications from JDeveloper, you must first connect JDeveloper to the domain used for Oracle WebLogic Server for Oracle Cloud Infrastructure. You must create an ingress rule, a network channel, and finally the connection itself. See Connect to a Domain Using Oracle JDeveloper in Using Oracle WebLogic Server for Oracle Cloud Infrastructure.
Deploy the application with JDeveloper:
  1. Make sure that security settings for the deployment profile you intend to user are set to Use Existing settings in weblogic-application.xml, and that the option to Auto-Generate and Synchronize WebLogic JDBC descriptors is not selected. To find a deployment profile, click the Application menu, then select Properties, Deployment Profile, and Weblogic.
  2. Click the Application menu, then click Deploy, and then select an existing deployment profile to create a new deployment.
  3. Select Application Server, then select the previously created application server and follow prompts to choose the specific server or cluster as the target.
  4. When you are done, click Finish.
  5. Monitor the deployment progress in the Deployment Log window.