Prepare the Environment

Create a compartment with a vault and security key before you deploy the WebLogic Server stack.

These steps are required for both Java Required File (JRF) and non-JRF deployments.

Create a Compartment

Compartments organize and isolate your cloud resources. When you work with resources in the console, you must choose which compartment to work in. Users can work in compartments they have permission to access.

You must have administrator permission to create and delete compartments.

  1. Sign in to the Oracle Cloud Infrastructure console.
  2. Open the navigation menu. Under Governance and Administration, go to Identity and click Compartments.
  3. Click Create Compartment.
  4. In the Create Compartment dialog box enter the following information:
    • Name: Enter a name that is unique across all compartments in your tenancy (maximum 100 characters, including letters, numbers, periods, hyphens, and underscores).
    • Description: (Optional) Enter a description.
    • Parent Compartment: Select a parent compartment.
    • Tags: (Optional) Enter tags to organize and list resources based on your business needs.
  5. Click Create Compartment.

Create a Vault and Key

Create a vault and key to manage the encryption keys that protect your data and the secret credentials that you use to securely access resources.

Oracle Cloud Infrastructure Vault securely stores master encryption keys and secrets that you might otherwise store in configuration files or in code.

  1. Click the navigation menu and under Governance and Administration, select Security, and then click Vault.
  2. Select your Compartment, if not already selected.
  3. Click Create Vault.
  4. Click Create.
  5. Click the new vault.
  6. Click Master Encryption Keys, and then click Create Key.
  7. Enter a Name, for example WebLogicOCIKey.
  8. Click Create Key.

Create a Secret for Your WebLogic Password

Assign a secret to a password to protect it during use.

If you are provisioning a Java required file (JRF) domain, you must also perform this task to create a secret for the password for the JRF domain database.

Secrets are credentials such as passwords, certificates, SSH keys, or authentication tokens that you use with Oracle Cloud Infrastructure services. Storing secrets in a vault makes them more secure than if you store them in code or in configuration files. You can retrieve secrets from the Vault service when you need them to access resources or other services.

  1. Navigate to the vault. Click the navigation menu and under Governance and Administration, select Security, and then click Vault.
  2. Select your Compartment, if not already selected.
  3. Click the vault.
  4. Click Secrets, and then click Create Secret.
  5. Enter a Name, for example WebLogicAdminSecret.
  6. Select the key that you created earlier, for example WebLogicOCIKey.
  7. For Secret Contents, enter the password you want to use for the WebLogic Server administrator.

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

  8. Click Create Secret.
  9. Click the secret name.
  10. Copy the OCID for the secret.