Oracle by Example brandingCreate an Oracle WebLogic Server Instance in a Private Subnet Using Oracle WebLogic Server for Oracle Cloud Infrastructure

section 0Before You Begin

This 30-minute tutorial shows you how to create an Oracle WebLogic Server instance for Oracle Cloud Infrastructure in a private subnet.

Background

You can use Oracle WebLogic Server for Oracle Cloud Infrastructure to create an instance in a private subnet. By default subnets are public. Compute instances assigned to private subnet cannot be directly accessed from outside of Oracle Cloud. You have to configure a bastion compute instance on a public subnet to provide access to the WebLogic Server compute instances on a private subnet.

This tutorial uses the Oracle WebLogic Suite BYOL application along with an existing VCN and an existing subnet to provision a basic WebLogic Server domain that does not require a database. You may use the same procedure with other Oracle WebLogic Server BYOL and UCM applications.

What Do You Need?

  • An Oracle Cloud Infrastructure cloud tenant.
  • An Oracle Cloud Infrastructure user name and password.
  • An understanding of all the prerequisite tasks required to create a domain with Oracle WebLogic Server for Oracle Cloud Infrastructure.

    You should also complete all the prerequisite tasks before you proceed with this tutorial. See Before You Begin with Oracle WebLogic Server for Oracle Cloud Infrastructure.


section 1Launch a Stack

  1. Sign in to the Oracle Cloud Infrastructure Console.
  2. Click the navigation menu Menu icon, under the Solutions and Platform group, select Marketplace, and then select Applications.
  3. Locate and select the Oracle WebLogic Suite BYOL application.

    The following details of Oracle WebLogic Suite BYOL are displayed:

    • Application Type - Stack.
    • The latest 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 MyWLS.

    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.
  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 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.

  11. For Virtual Cloud Network Strategy, retain the default value of Use Existing VCN.
  12. For Existing Network, select the name of an existing VCN.
  13. For Subnet Strategy, retain the default value of Use Existing Subnet.
  14. For Subnet Compartment, select the compartment to use for this existing subnet.
  15. For Subnet Type, select Use Private Subnet and Regional Subnet for the subnet span.
  16. For Existing Subnet for WebLogic Server, select the name of an existing regional subnet from the list of regional and availability domain-specific subnets. See Create a Virtual Cloud Network.
  17. By default, Provision Bastion node on Public Subnet is checked when you select Use Private Subnet as the Subnet Type. Keep the default value.

    Provision a bastion compute instance on a public subnet to provide access to the WebLogic Server compute instances that you create on a private subnet.

  18. For the Existing Subnet for Bastion Host , select the name of an existing regional subnet from the list of regional and availability domain-specific subnets.
  19. For Bastion Host Shape, select VM.Standard2.1.
  20. Select the Provision Load Balancer check box to distribute application traffic to the WebLogic Managed servers.
  21. For Existing Subnet for Load Balancer, select the name of an existing regional subnet from the list of regional and availability domain-specific subnets.
  22. For Load Balancer Flexible Shape, select minimum bandwidth size as 10 Mbps and maximum as 100 Mbps.
  23. Ensure that the OCI Policies check box is selected.
  24. Click Next to verify the details you've entered.
  25. 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.

  26. 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?