Oracle by Example brandingCreating a Custom Oracle Java Cloud Service Instance on Oracle Cloud Infrastructure Classic

section 0Before You Begin

This tutorial shows you how to create a custom instance in Oracle Java Cloud Service on Oracle Cloud Infrastructure Classic and associate it with an existing Oracle Database Cloud Service deployment. The custom instance you create will have a 2-node WebLogic Server cluster on Oracle Cloud Infrastructure Classic VMs, Oracle Traffic Director as a load balancer, with backup to object storage enabled.

This tutorial takes approximately 15 minutes to complete, excluding the wait time needed for provisioning to complete.

Background

With Oracle Java Cloud Service, you can quickly create and manage a Java Platform, Enterprise Edition (Java EE) application environment in the cloud, without installing and configuring any software yourself. The environment is based on Oracle WebLogic Server, Oracle Coherence and Oracle Traffic Director, and is automatically integrated with Oracle Database Cloud Service.

What Do You Need?


section 1Launch the Instance Creation Wizard

  1. Sign in to Oracle Cloud at https://cloud.oracle.com/en_US/sign-in.
  2. From the Oracle Cloud Infrastructure Console, click the Navigation menu Dashboard Menu Icon at the top left corner of the page, expand Platform Services, and then select Java.

    Note: On some older Oracle Cloud accounts, you use the Oracle Cloud Infrastructure Classic Console. Click the Navigation menu Dashboard Menu Icon, and then select Java.

  3. If this is the first time you have accessed Java Cloud Service then you may be presented with a Welcome screen. If this happens then you can continue to the console by clicking Go to Console.
  4. Click Create Instance.
    Create Instance button
    Description of the illustration create_instance_button.png

section 2Configure Basic Service Information

  1. Enter a unique Instance Name for your Java Cloud Service instance. This tutorial uses the name MyJCS.
  2. If it is not configured by default, enter your email address in Notification Email.
  3. For Software Edition, select High Performance Edition.
  4. If the Region field is displayed, accept the default option No Preference.
  5. Leave the Tags field blank.
  6. Accept the default values for the remaining fields on this page:
    Field Value
    Service Level Oracle Java Cloud Service
    Software Release Oracle WebLogic Server 12c (12.2.1.3)
    Metering Frequency Hourly - Note that this field does not appear on this page if you have a Universal Cloud Credits subscription.
  7. Click Next.

section 3Configure Service Details

  1. Click the Advanced tab.
    Simple and Advanced tabs
    Description of the illustration simple_and_advanced_tabs.png
  2. Accept the default Compute Shape, OC3 (1 OCPU, 7.5GB RAM).
  3. Click Edit next to the SSH Public Key field.
  4. Select the radio button Create a New Key and then click Enter.
    Create key radio button
    Description of the illustration create_key.png
  5. Click Download to save the file sshkeybundle.zip to your local machine.
  6. Click Done.
  7. Select the Enable access to Administration Consoles checkbox.
    Enable access checkbox
    Description of the illustration enable_access.png
  8. In the WebLogic Access section, enter suitable values for the Local Administrative User Name and Password, and then reenter the password in the Confirm Password field.
  9. For Provision Data Grid Cluster in the Coherence Data Tier section, select Yes.
  10. Accept the detault values in the remaining fields.
    Field Value
    Compute Shape OC3 - 1.0 OCPU, 7.5GB RAM
    Cluster Size 1
    Managed Servers Per Node 1

section 4Configure the Database and Load Balancer

  1. In the Database Configuration section, use the Database Instance Name field to select an existing Oracle Database Cloud Service deployment.
    Database Configuration section
    Description of the illustration select_dbcs.png
  2. Enter values for the remaining fields in this section. If necessary, contact your database administrator:
    Field Value
    PDB Name If you do not want to use the default Pluggable Database (PDB) in this deployment, enter a different value
    Administrator Username Enter a database user with system privileges, so that Java Cloud Service can create the required schemas.
    Password Enter the password for this database user.
    Add Application Schema Accept No Application Schema added.
  3. In the Load Balancer section, for the Provision Local Load Balancer field, select Yes.
  4. Accept the default values for the remaining Load Balancer fields:
    Field Value
    Compute Shape OC3 (1 OCPU, 7.5GB RAM)
    Add Another Active OTD Node Leave check box unchecked.
    Load Balancer Policy Least Connection Count

section 5Configure Backups

  1. Set the Backup Destination field to Both Cloud Storage and Local Storage.
  2. For Cloud Storage Container, delete the name of the default container and enter the URL STORAGE_REST_ENDPOINT/MyJCS-Backup.
    Use the Oracle Storage Cloud REST endpoint that you identified before beginning this tutorial. For example: https://foo.storage.oraclecloud.com/v1/MyService-bar/MyJCS-Backup
  3. Enter the user name and password of an Oracle Cloud user with the Oracle Cloud Infrastructure Object Storage Container Administrator role in the Username and Password fields, respectively.
    The user name and password you used to log into Oracle Cloud will normally have the correct permissions required to create the container.
  4. Select the Create Cloud Storage Container checkbox.

section 6Complete the Service Creation

  1. Click Next.
  2. On the Confirmation page, review your selections and click Create.
    When you return to the Oracle Java Cloud Service console, you will see your new service instance listed. It will have a status of "Creating service".
    Java Cloud Service instance in progress
    Description of the illustration jcs_creating_service.png
  3. Periodically refresh this page until the service instance creation is completed.
    Java Cloud Service instance is running
    Description of the illustration jcs_instance_created.png
    You will also receive an email notification when the instance is ready.
  4. Click the instance name, MyJCS, to view the Instance Overview page.

more informationWant to Learn More?