Configure Classic Migration Service and Migrate to Oracle SOA Cloud Service

Migrate applications to an existing or new Oracle SOA Suite on Marketplace or Oracle SOA Cloud Service instance.

The configuration information that you must provide for the migration depends on the type of the target instance, and whether you want to migrate to an existing instance or create an instance in Oracle Cloud Infrastructure. You can migrate an application to an Oracle SOA Suite on Marketplace or Oracle SOA Cloud Service instance. We recommend that you migrate an application to Oracle SOA Suite on Marketplace.

Migrating to an Existing Oracle SOA Suite on Marketplace Instance

Configure Classic Migration Service to migrate an application to an existing Oracle SOA Suite on Marketplace instance in Oracle Cloud Infrastructure in the target environment.

Ensure that you complete the following tasks before configuring the migration.

  • Identify an existing Oracle SOA Suite on Marketplace instance in Oracle Cloud Infrastructure or create an instance to host the application that you want to migrate. This instance must be connected to a database in Oracle Cloud Infrastructure. Ensure that the database and the instance are in the same public or private subnet in Oracle Cloud Infrastructure. See Create and View Oracle SOA Suite on Marketplace Instances.
  • Note the Resource Manager stack OCID of the target instance. You must provide this information to configure the migration.
    1. Open the Oracle Cloud Infrastructure Console navigation menu and click Developer Services. In the Resource Manager section, click Stacks.
    2. Select the compartment that contains the target stack to which you want to migrate an application.
    3. Click the name of the stack to view the detail page for that stack and then copy the OCID of the stack.
  • Create a secret that contains the private SSH key.

    Before creating the target instance, you must first create an SSH public/private key pair. While creating the target instance, you provide the public SSH key. While configuring the migration, you must provide the corresponding private SSH key. To provide the private SSH key, you must create a secret in Oracle Cloud Infrastructure. See Managing Secrets. After you create the secret, copy the OCID of the secret because it is required to configure the migration.

  • Ensure that the target instance is available and is in the running state when you migrate your application.
  • Ensure that you configure and run the migration in the region where the target instance exists.
  • Enter the required configuration values for the existing instance in the target environment.
    1. Open the navigation menu on the Oracle Cloud Infrastructure Console, click OCI Classic Services, and then click Migrations in the Classic Migration section to display the Migrations in compartment page and a list of migrations.
    2. Select the compartment from the Compartment menu that contains the migration that you want to configure.
    3. From the list of migrations, click the ellipsis at the end of the row containing your migration and click Configure to display the Configure Migration page for your migration.

      Alternatively, click the name of your migration from the list of migrations on the page to display the details page for that migration. Click the Configure button to display the Configure Migration page.

    4. In the Configure Service section, click Edit and enter the following information:
      • Oracle WebLogic Server Administrator User Name: Enter the name of the Oracle WebLogic administrator user for the existing target instance.
      • WebLogic Server Admin Password: Enter the password for the specified user in plain-text format.
      • Target Service Name: Enter the existing Oracle SOA Cloud Service target instance name.
      • PaaS Administrator Username: Enter the username of a PaaS administrator who has access to the target Oracle Analytics Cloud instance in Oracle Cloud Infrastructure. Ensure that the user is assigned the AUTONOMOUS_ANALYTICS_ServiceAdministrator and AUTOANALYTICS_APPID_ROLE roles.
      • Name of the Secret OCID for PaaS Administrator Password in compartment: Select the secret in Oracle Cloud Infrastructure that contains the password for the specified PaaS administrator. Click the Change Compartment link to change compartments, if necessary.
      • Secret OCID for PaaS Administrator Password: Enter the OCID of the secret that contains the password for the specified PaaS administrator in Oracle Cloud Infrastructure. If you have already selected the name of the secret in the Name of the Secret OCID for PaaS Administrator Password field, then the OCID of the selected secret displays.
      • PaaS Identity Domain: Optionally, enter the PaaS Service Manager identity domain associated with the account.
    5. Review the information you provided. Click Save and Run to start the migration.
    6. When prompted for confirmation, click Start.

    Next: If the application migrates successfully, then a confirmation message displays. After the application is migrated to the target environment, complete the post-migration tasks.

    If the migration fails, then the status of the migration changes to Migration failed and the status of the migrate application work request is Failed. Click the Migrate Application work request to view the logs and errors to identify the issues. After resolving the issues, you can start the migration.

  • Use the migrate-application command and required parameters to migrate the application:

    oci application-migration migration migrate-application [OPTIONS]

    For a complete list of flags and variable options for CLI commands, see the CLI Command Reference.

    Next: If the application migrates successfully, then a confirmation message displays. After the application is migrated to the target environment, complete the post-migration tasks.

    If the migration fails, then the status of the migration changes to Migration failed and the status of the migrate application work request is Failed. Click the Migrate Application work request to view the logs and errors to identify the issues. After resolving the issues, you can start the migration.

  • Run the MigrateApplication operation to migrate the application.

    This is an example of the values you can provide for the serviceConfig field while migrating an Oracle SOA Cloud Service application to an existing Oracle SOA Suite on Marketplace instance in Oracle Cloud Infrastructure.

    {
      "serviceConfig": {
        "WeblogicAdminUser": {
          "name": "WebLogic Admin User",
          "group": "Target SOA On Marketplace",
          "type": "user_name",
          "value": "weblogic",
          "description": "Weblogic Admin User",
          "isRequired": true,
          "isMutable": true
        },
        "rmStackOcid": {
          "name": "Resource Manager Stack Ocid",
          "group": "Target SOA On Marketplace",
          "type": "OCID",
          "value": "ocid1.unique_id",
          "description": "OCID of the Resource Manager stack which has precreated SOA Marketplace instance",
          "isRequired": true,
          "isMutable": true
        },
        "sshKeySecretOcid": {
          "name": "SSH Private Key Secret Ocid",
          "group": "Target SOA On Marketplace",
          "type": "OCID",
          "value": "ocid1.unique_id",
          "description": " The Secrets OCID that contains ssh private key for your weblogic admin instance",
          "isRequired": true,
          "isMutable": true
        },
        "WeblogicAdminPassword": {
          "name": "Weblogic Admin Password",
          "group": "Target SOA On Marketplace",
          "type": "password",
          "value": "xxxxxxx",
          "description": "Weblogic Admin Password",
          "isRequired": true,
          "isMutable": true
        }
      }
    }

    Next: If the application migrates successfully, then a confirmation message displays. After the application is migrated to the target environment, complete the post-migration tasks.

    If the migration fails, then the status of the migration changes to Migration failed and the status of the migrate application work request is Failed. Click the Migrate Application work request to view the logs and errors to identify the issues. After resolving the issues, you can start the migration.

Migrating to a New Oracle SOA Suite on Marketplace Instance

Configure Classic Migration Service to migrate an application to a new Oracle SOA Suite on Marketplace instance in Oracle Cloud Infrastructure in the target environment.

As part of the migration process, Classic Migration Service creates an Oracle SOA Suite on Marketplace instance in Oracle Cloud Infrastructure. The name of the migrated application is the same as its name in its source environment. If there are any dependencies, such as an associated database system, then Classic Migration Service creates an Oracle Cloud Infrastructure database system. To name the database system, Classic Migration Service appends db to the name of the application. For example, if you want to migrate an Oracle SOA Cloud Service application named MyApp in the source environment, then Classic Migration Service creates the application with the same name, MyApp, in Oracle Cloud Infrastructure, and the associated database system is named MyAppdb.

    1. Open the navigation menu on the Oracle Cloud Infrastructure Console, click OCI Classic Services, and then click Migrations in the Classic Migration section to display the Migrations in compartment page and a list of migrations.
    2. Select the compartment from the Compartment menu that contains the migration that you want to configure.
    3. From the list of migrations, click the ellipsis at the end of the row containing your migration and click Configure to display the Configure Migration page for your migration.

      Alternatively, click the name of your migration from the list of migrations on the page to display the details page for that migration. Click the Configure button to display the Configure Migration page.

    4. In the Configure Service section, click Edit and enter the following information:
      • Availability Domain: Select the availability domain where you want to create the service instance that hosts the migrated application.
      • Select Virtual Cloud Network in compartment: Select the VCN where you want to create the service instance that hosts the migrated application. Click the Change Compartment link to select a different compartment.
      • Subnet: Select the public subnet where you want Classic Migration Service to create the target instance that hosts the migrated application.
      • System Database Administrator Username: The SYS database administrator. Provide this username while accessing the Oracle Cloud Infrastructure database system that is created in the target environment. Classic Migration Service populates the value for this field. Do not change this value.
      • System Database Administrator Password: Set a password for the SYS database administrator.

        The password must be 9 to 30 characters in length and contain at least two uppercase, two lowercase, two numeric, and two special characters. The special characters must be _, #, or -. The password must not contain the user name (SYS, SYSTEM, and so on) or the word oracle either in forward or reversed order and regardless of casing.

      • Add SSH Public Key: Upload an SSH public key file or paste the SSH public key that you use to connect to the migrated instance and database in the target environment. Click the corresponding radio button, depending on your choice.
      • WebLogic Administrative User: Enter the name of the Oracle WebLogic administrator user for the target service instance.
      • WebLogic Administrative Password: Set the password for the Oracle WebLogic administrator for the target service instance.

        The password must start with a letter, be between 8 and 30 characters long, contain at least one number, and, optionally, any number of the special characters ($ # _).

    5. Click Configure to return to the Configure Migration page.
    6. Review the information you provided. Click Save and Run to start the migration.
    7. When prompted for confirmation, click Start.

    The target domain is provisioned as a Terraform stack using Resource Manager. To access the new domain, see the following topics:

    If the work request indicates that the stack creation failed, then use Resource Manager to view the log files. See Stack Creation Failed.

    If the work request indicates that the import step of the migration failed, then you can get additional information by connecting to the first node in the target domain.

    After correcting any problems, you can run the migration again.

    Next: If the application migrates successfully, then a confirmation message displays. After the application is migrated to the target environment, complete the post-migration tasks.

    If the migration fails, then the status of the migration changes to Migration failed and the status of the migrate application work request is Failed. Click the Migrate Application work request to view the logs and errors to identify the issues. After resolving the issues, you can start the migration.

  • Use the migrate-application command and required parameters to migrate the application:

    oci application-migration migration migrate-application [OPTIONS]

    For a complete list of flags and variable options for CLI commands, see the CLI Command Reference.

    Next: If the application migrates successfully, then a confirmation message displays. After the application is migrated to the target environment, complete the post-migration tasks.

    If the migration fails, then the status of the migration changes to Migration failed and the status of the migrate application work request is Failed. Click the Migrate Application work request to view the logs and errors to identify the issues. After resolving the issues, you can start the migration.

  • Run the MigrateApplication operation to migrate the application.

    This is an example of the values you can provide for the serviceConfig field while migrating an Oracle SOA Cloud Service application to a new Oracle SOA Suite on Marketplace instance in Oracle Cloud Infrastructure.

    {
      "configuration": {
        "serviceConfig": {
          "subnetId": {
            "name": "Subnet ID",
            "group": "Target SOA On Marketplace",
            "type": "subnet",
            "value": "ocid1.subnet.oc1.iad.unique_id",
            "description": "Subnet ID",
            "isRequired": true,
            "isMutable": true
          },
          "soacsPublicKey": {
            "name": "Public Key",
            "group": "Target SOA On Marketplace",
            "type": "text",
            "value": "ssh-rsa AAAAB...",
            "description": "Authorize this Public Key",
            "isRequired": true,
            "isMutable": true
          },
          "availabilityDomain": {
            "name": "Availability Domain",
            "group": "Target SOA On Marketplace",
            "type": "ad",
            "value": "HeYD:US-ASHBURN-AD-1",
            "description": "Availability Domain",
            "isRequired": true,
            "isMutable": true
          },
          "WeblogicAdminUser": {
            "name": "WebLogic Admin User",
            "group": "Target SOA On Marketplace",
            "type": "user_name",
            "value": "weblogic",
            "description": "Weblogic Admin User",
            "isRequired": true,
            "isMutable": true
          },
          "soacsDBPassword": {
            "name": "Database Password",
            "group": "Target SOA On Marketplace",
            "type": "password",
            "value": "xxxxxxxx",
            "description": "Database Password (used by SYS, SYSTEM and PDB Admin)",
            "isRequired": true,
            "isMutable": true
          },
          "WeblogicAdminPassword": {
            "name": "Weblogic Admin Password",
            "group": "Target SOA On Marketplace",
            "type": "password",
            "value": "xxxxxxxx",
            "description": "Weblogic Admin Password",
            "isRequired": true,
            "isMutable": true
          },
          "soacsDBUser": {
            "name": "Database User",
            "group": "Target SOA On Marketplace",
            "type": "user_name",
            "value": "SYS",
            "description": "Database User",
            "isRequired": true,
            "isMutable": false
          }
        }
      }
    }

    Next: If the application migrates successfully, then a confirmation message displays. After the application is migrated to the target environment, complete the post-migration tasks.

    If the migration fails, then the status of the migration changes to Migration failed and the status of the migrate application work request is Failed. Click the Migrate Application work request to view the logs and errors to identify the issues. After resolving the issues, you can start the migration.