- Migrating Oracle Java Cloud Service Instances to Oracle WebLogic Server for OCI Using WDT
- Migrate an Instance
- Get Information About the Service Instances
Get Information About the Service Instances
Gather information about your source and target instances. You will use this information when you perform the migration.
- To get information of the source instance:
- Access the Oracle Java Cloud Service console.
- Click the name of your source instance.
- From the Overview page, record these
values.
- The public IP address of the first node that is running the Administration Server
- The host names of all Managed Server nodes (for
example,
myinstance-wls-2
) - The names of the Administration Server and all
Managed Servers (for example,
MyInstan_server_1
)
- Access the Oracle WebLogic Server administration console on the source
instance.
https://<source_admin_IP>:7002/console
If you did not enable console access when you created the source instance, see Enable Console Access for a Service Instance in Administering Oracle Java Cloud Service.
- After you sign in to the console, record the domain name (for example,
MyInstan_domain
). - From the Domain Structure panel, expand Environment, and then click Clusters.
- Record the names of the clusters (for example,
MyInstan_cluster
). - From the Domain Structure panel, expand Environment, and then click Machines.
- Record the names of the machines (for example,
MyInstan_machine_1
). - Return to the Instances page of the Oracle Java Cloud Service console.
- To get information of the target instance:
- Access the Oracle Cloud Infrastructure Console.
- From the navigation menu, click Compute, then click the name of your target instance.
- From the Compartment dropdown, select the compartment in which your domain is created.
- Click the name of the domain instance that has the Administration
Server node.For example:
myinstance-wls-0
- Based on whether the Oracle WebLogic Server compute instances are
assigned to a public subnet or private subnet, follow the steps:
- For public subnet:
Note:
Oracle recommends to use a private subnet.- Copy the public IP address value.
- Access the Oracle WebLogic Server
administration console on the target instance
using the public IP address.
https://<IP-address>:7002/console
The default SSL port is 7002, unless it was changed during stack creation.
- From the Domain Structure panel, expand Environment, and then click Clusters.
- Record the names of the clusters (for
example,
MyInstan_cluster
). - From the Domain Structure panel, expand Environment, and then click Machines.
- Record the names of the machines (for
example,
MyInstan_machine_1
).
- For private subnet:
- Copy the private IP address value.
- Return to the Compute Instances page.
- Click the name of the bastion instance
that's associated with the domain.
For example:
myinstance-bastion-instance
- Copy the public IP address value.
- In the terminal window, run the
following SSH command to access the bastion host:
ssh -C -D 1088 -i <path_to_private_key> opc@<bastion_public_ip>
where,
privateKeyPath
is the full path to the private SSH key that corresponds to the public SSH key that you specified when you created the domain andbastionPublicIP
is the public IP address of the bastion host. - In your browser, set up the SOCKS (version 5) proxy configuration. Specify your local computer and the same SOCKS port that you used in your SSH command.
- Access the Oracle WebLogic Server
administration console on the target instance using
the private IP address:
https://<private_ip_address>:7002/console
The default SSL port is 7002, unless it was changed during stack creation.
- From the Domain Structure panel, expand Environment, and then click Clusters.
- Record the names of the clusters (for
example,
MyInstan_cluster
). - From the Domain Structure panel, expand Environment, and then click Machines.
- Record the names of the machines (for
example,
MyInstan_machine_1
). - Access the Oracle WebLogic Server hosts
on the target instance:
ssh -i <path_to_privatekey> -o ProxyCommand="ssh -W %h:%p -i <path_to_privatekey> opc@<Public_IP>" opc@<target_admin_IP>
- To copy files to the target instance:
scp -i <path_to_privatekey> -o ProxyCommand="ssh -W %h:%p -i <path_to_privatekey> opc@<Public_IP>" <source_domain> opc@<target_admin_IP>:/<destination>
- For public subnet: