Oracle by Example brandingCreate an Oracle WebLogic Server Domain Using Oracle WebLogic Server for OCI and an Application Database

section 0Before You Begin

This 30-minute tutorial shows you how to provision an Oracle WebLogic Server domain using an application database configuration for an Oracle Autonomous Database in Oracle Cloud Infrastructure Marketplace.

Background

You can use Oracle WebLogic Server for Oracle Cloud Infrastructure (Oracle WebLogic Server for OCI) to create a datasource configuration for an application database and deploy the datasource on the Oracle WebLogic Server cluster in your Oracle WebLogic Server domain.

You can specify a database in Oracle Autonomous Database or Oracle Cloud Infrastructure Database (DB System) when you configure the application database in the Oracle WebLogic Server for OCI domain. You can configure the application database only for Oracle WebLogic Server Enterprise Edition and Oracle WebLogic Suite.

You can also use the utility scripts in Oracle WebLogic Server for OCI to download the Oracle Autonomous Database wallet files. See Create a JRF-Enabled Domain Using Oracle WebLogic Server for Oracle Cloud Infrastructure and an Autonomous Database.

This tutorial uses Oracle WebLogic Server Enterprise Edition BYOL application to create a virtual cloud network (VCN) and subnet in Oracle Cloud Infrastructure, and an application database configuration for an existing Oracle Autonomous Database to provision a non-JRF domain.

You can use the same procedure with Oracle WebLogic Server Enterprise Edition UCM, and Oracle WebLogic Server Suite BYOL and UCM applications.

You can estimate the cost of the resources and services that you want to use to provision your instance. See Oracle Cloud Cost Estimator.

What Do You Need?


section 1Launch a Stack

  1. Sign in to the Oracle Cloud Infrastructure Console.
  2. Click the navigation menu Menu icon, select Marketplace, and then select All Applications.
  3. Locate and select the Oracle WebLogic Server Enterprise Edition BYOL application.

    The following details of Oracle WebLogic Server Enterprise Edition BYOL are displayed:

    • Application Type - Stack.
    • The latest 12c version of the application.
    • The type of billing it uses - BYOL (Bring Your Own License).
  4. Select the Compartment in which you want to create the stack.

    The compute instances are created in the stack compartment that you select here.

  5. Select the Oracle Standard Terms and Restrictions check box, and then click Launch Stack.

    The Create Stack page opens.


section 2Create the Stack

  1. On the Stack Information page of the Create Stack wizard, the name of the stack is displayed (application name appended with the time stamp).
  2. Enter a description for the stack. However, this information is optional.

    The following additional details are also displayed:

    • Create in Compartment - The name of the compartment you selected earlier, upon launching the stack.
    • Terraform Version - 0.12x
  3. Click Next.

    The Configure Variables page opens.

  4. For Resource Name Prefix, type MyAppDBWLS.

    You can use a maximum of 16 characters to define the prefix. This prefix will be used by all the resources that are created when you create the stack.

  5. For WebLogic Server Shape, select VM.Standard2.1. This shape will be used by all compute instances.

    You can select another shape for the compute instance.

  6. For SSH Public Key, upload the SSH public key file or paste the contents of the file.

    After creating the stack, you can connect to the WebLogic Server compute instances by using an SSH client and the corresponding private key.

  7. For WebLogic Server Node Count, select 2.

    This value indicates the number of Managed servers you want to create.

  8. For WebLogic Server Admin User Name, weblogic is the default name.

    Use the default name.

  9. For Secrets OCID for WebLogic Server Admin Password, enter the Oracle Cloud Infrastructure Domain (OCID) of the secret. This secret stores the password for the WebLogic Server administrator.

    Note: Creating the secrets for passwords is one of the prerequisite tasks you should complete before starting this tutorial.

  10. For Virtual Cloud Network Strategy, select Create New VCN.
  11. For Network Compartment, retain the stack compartment that you selected earlier, upon launching the stack. All the network resources and the domain compute instances will be created in this stack compartment.
  12. For WebLogic Server Network, enter MyAppDBWLStackNetwork.
  13. For Subnet Strategy, select Create New Subnet.
  14. For WebLogic Server Subnet CIDR, enter a CIDR for the new subnet.
  15. For Bastion Host Subnet CIDR, enter a CIDR for the new subnet.
  16. For Bastion Host Shape, select VM.Standard2.1.
  17. Click Add Load Balancer.
  18. For Create or Use Existing Load Balancer, select Create New Load Balancer.
  19. For Load Balancer Subnet CIDR, enter a CIDR for the new load balancer subnet.
  20. For Minimum Bandwidth for Load Balancer Flexible and for Maximum Bandwidth for Load Balancer Flexible, retain the default values.

    This creates a flexible load balancer with the specified minimum and maximum bandwidth.

  21. Select Add File System Storage.
  22. For File Storage Availability Domain, select the availability domain in which you want to create the file system and mount target and for Mount Target Subnet CIDR, retain the default value.
  23. Ensure that the OCI Policies check box is selected.
  24. Click Configure Application Datasource.
  25. For Application Database Strategy, select Autonomous Transaction Processing Database.
  26. Select the Autonomous DB System Compartment for the Application Database that contains your application system for the Oracle Autonomous Database.

    This tutorial uses the same Oracle Autonomous DB System compartment for the application database as the Network Compartment.

  27. Select the Autonomous Database in which to create the schemas for the application database.
  28. For Autonomous Application Database User Name, enter AppDBATPUser.
  29. For Secrets OCID for Autonomous Application  Database User Password, enter the OCID of the secret you created to contain the password for the application database user in the database you selected.

    Keep the default value for Autonomous Application Database Service Level as low.

  30. Click Next to verify the details you've entered.
  31. On the Review page of the wizard, review the information you've provided, and then click Create.

    The Job Details page of the stack in Resource Manager opens. The job name has the ormjobyyyymmddnnnnnn format.

  32. Monitor the progress of the job periodically until it is finished.

    If an email address is associated with your user profile, you will receive an email notification.

You can now access and manage your new domain.


more informationWant to Learn More?