Before You Begin with Oracle Java Cloud Service

Before you begin using Oracle Java Cloud Service to create service instances, you must have subscriptions to Oracle Storage Cloud Service and Oracle Database Cloud Service. You must also satisfy certain prerequisites.

Oracle Database Cloud Service Database Deployment

Oracle Java Cloud Service uses Oracle Database Cloud Service to host the Oracle Infrastructure schemas required for Oracle Java Cloud Service.

Prior to creating an Oracle Java Cloud Service instance, use your Oracle Database Cloud Service subscription to create a database deployment. As part of the Oracle Java Cloud Service instance creation process, Oracle Java Cloud Service provisions this database deployment with the Oracle schemas.

For information about subscribing to Oracle Database Cloud Service, provisioning database deployments, and using Oracle RAC database deployments, see Using Oracle Database Cloud - Database as a Service.

As an alternative to separately creating Oracle Java Cloud Service and Oracle Database Cloud Service instances, you can provision them together using Oracle Cloud Stack Manager. See Creating an Oracle Java Cloud Service Instance with Stack Manager.

You can optionally create a second database deployment for your application schemas. You cannot specify an application shema database if your software edition isOracle Java Cloud Service—Virtual Image.

Alternatively, if your database deployment is running Oracle Database 12c , you can create a second pluggable database (PDB) for your application schemas in a single database deployment.

Note:

When you provision an Oracle Java Cloud Service instances based on WebLogic Server 12.2, you can use an Oracle Database 12.2 database deployment as an infrastructure database and/or an application database.

When you create an Oracle Java Cloud Service instance, you are prompted for the following information about your database deployments:

  • Name of the database deployment that is up and running

  • Pluggable database name (for Oracle Database 12c only)

  • Database administrator user name and password

  • Connection string to the database deployment (for Virtual Image service level only)

Note:

To ensure that you can restore the database for an Oracle Java Cloud Service instance without risking data loss for other service instances, do not use the same Oracle Database Cloud Service database deployment with multiple Oracle Java Cloud Service instances. Backups of an Oracle Database Cloud Service database deployment that is used with multiple Oracle Java Cloud Service instances contain data for all the Oracle Java Cloud Service instances. If you restore the database while restoring an Oracle Java Cloud Service instance, data for all the Oracle Java Cloud Service instances is restored.

See the following table for service level information:

Service Level Database Cloud Service Database Cloud Service—Virtual Image

Oracle Java Cloud Service

Supported.

  • Must be used if you intend to use an Oracle Real Application Clusters (RAC) database. When creating the database deployment, make sure you select the database edition called Enterprise Edition - Extreme Performance.

  • Can be used with the standard service level of Oracle Java Cloud Service.

  • When creating the database deployment, make sure you do not set the Backup Destination to None; instead you should select one of the other available backup options.

Not supported.

Oracle Java Cloud Service—Virtual Image

Supported.

The two Virtual Image service levels can only be used together.

Before creating the database deployment, perform the tasks described in Using a Database Cloud Service - Virtual Image Database Deployment

Creating an SSH Key Pair

In order to use Secure Shell (SSH) to access the VMs that make up your Oracle Java Cloud Service instance, you need a public/private key pair.

Choose from one of these options:

  • Let Oracle Java Cloud Service generate the keys for you as part of the process of creating a new service instance. You will be prompted to download the generated public key.

  • Generate your own keys prior to creating a service instance, and then upload your private key when you create a service instance. See Generating a Secure Shell (SSH) Public/Private Key Pair.

Creating an Oracle Storage Cloud Service Container

Oracle Java Cloud Service stores backups of service instances in an Oracle Storage Cloud Service container.

When you create an Oracle Java Cloud Service instance, you are prompted to supply the name of a storage container along with the credentials for an Oracle Cloud user who has read/write access to the container. You can either provide an existing storage container that you previously created, or Oracle Java Cloud Service can create the specified storage container for you.

Before you can create containers and objects, you must have an active subscription to Oracle Storage Cloud Service. Be sure you also select a Replication Policy before you create your first storage container. See Selecting a Replication Policy for Oracle Storage Cloud Service in Using Oracle Storage Cloud Service.

To create a storage container, choose from one of these options:

Note:

  • An Oracle Storage Cloud Service container is not required if you are creating Oracle Java Cloud Service—Virtual Image instances and using the Virtual Image service level of Oracle Database Cloud Service only.

  • Do not use an Oracle Storage Cloud Service container that you use for backups of Oracle Java Cloud Service instances for any other purpose. For example, do not use it to back up Oracle Database Cloud Service database deployments. Using the container for multiple purposes can result in billing errors.

Using a Database Cloud Service - Virtual Image Database Deployment

In order to use a Database Cloud Service - Virtual Image database deployment when creating an Oracle Java Cloud Service - Virtual Image instance, you must set up the Oracle Database Cloud - Database Cloud Service environment appropriately. Otherwise, Oracle Java Cloud Service instance provisioning fails.

This task requires the use of a Secure Shell (SSH). For more information, see Connecting to a Compute Node Through a Secure Shell (SSH) in Using Oracle Database Cloud - Database as a Service.

Note:

This procedure only applies in the case where you want to use an Oracle Database Cloud - Virtual Image database deployment when creating an Oracle Java Cloud Service instance.
To set up the Oracle Database Cloud - Database Cloud Service environment:
  1. Use a secure shell (SSH) tool to access a compute node associated with your Database Cloud Service - Virtual Image database deployment.
  2. Edit the .bashrc file and add the following entries:
    export ORACLE_HOME="/u01/app/oracle/product/12.1.0/dbhome_1"
    export PATH="$ORACLE_HOME/bin:$PATH"

    Note:

    Ensure that you add these entries to the .bashrc file, not the bash_profile file.
  3. Ensure that your user has SYSDBA administrator privileges.
  4. Do not set the $ORACLE_SID=ORCL variable in the .bashrc file. Do not set the variable to .bashrc.

    If ORACLE_SID is set, unset it:

    $ unset ORACLE_SID
  5. Exit your SSH session, then start a new SSH session.
  6. Switch to user oracle.
  7. Enter the following sqlplus command:
    sqlplus sys/SYS_Password@"DB_Host_Name:port/pdb1" as sysdba

    Where:

    SYS_Password—Password for the SYS administrator

    DB_Host_Name—Name of your Database Cloud Service - Virtual Image database deployment

    port—Use port 1521

  8. Configure tablespace encryption:
    1. If using an Oracle 12c database, switch to the container database (CDB):
      SQL> ALTER SESSION SET CONTAINER = CDB$ROOT;
    2. Change the tablespace encryption system parameter:
      SQL> ALTER SYSTEM SET ENCRYPT_NEW_TABLESPACES=DDL SCOPE=BOTH;
  9. Exit your SQL*Plus session:
    SQL> EXIT
  10. Exit your SSH session.

You can now successfully create an Oracle Java Cloud Service - Virtual Image instance using the Database Cloud Service - Virtual Image database deployment.

Using an Oracle Database Exadata Cloud Service Database Deployment

You can create an Oracle Java Cloud Service instance that uses an Oracle Database Exadata Cloud Service database deployment. A manual IP reservation task is required before provisioning your service instance.

If you are not familiar with Oracle Database Exadata Cloud Service, see Creating a Database Deployment in Using Oracle Database Exadata Cloud Service.

Your Oracle Java Cloud Service instance can use an Oracle Database Exadata Cloud Service database deployment for either the Oracle Required Schema or Application Schema databases.
  1. Create an Oracle Database Exadata Cloud Service database deployment if you have not done already.
  2. Determine the initial size for the Oracle WebLogic Server cluster you will define when you create your Oracle Java Cloud Service instance.
  3. Log in to support.oracle.com (My Oracle Support).
  4. File a Service Request to obtain authorized IP addresses for your Oracle Java Cloud Service instance.
    Oracle will provide IP addresses and open up the firewall at these addresses on the Oracle Database Exadata Cloud Service.
    See My Oracle Support Note 2163568.1, “How to Request Authorized IPs for Provisioning a Java Cloud Service with Database Cloud Exadata Cloud Service.”
    Specify the following information:
    • Your identity domain

    • Oracle Required Schema database name, which must be the name of the Oracle Database Exadata Cloud Service database deployment if you are not specifying a database deployment for the Application Schema

    • (Optional) Application Schema database deployment name

    • Desired number of servers in your WebLogic Server cluster