Oracle WebLogic Server 12c (12.2.1): Creating a Domain


Options



Before You Begin

    Purpose

    This tutorial shows you how to create a WebLogic Server 12c (12.2.1) domain on a Linux system by using the Configuration Wizard.

    Time to Complete

    Approximately 15 minutes

    Introduction

    This tutorial shows you how to use the Configuration Wizard to create a WebLogic Server 12c (12.2.1) domain, assuming you have already installed the Java Developers Kit (JDK) and WebLogic Server software.

    What You Need

    Your Linux machine's operating system must be Oracle Linux 6.6+.

    You should have completed the Oracle WebLogic Server 12c (12.2.1): Installing WebLogic Server Using the Generic Installer tutorial. As a result, you should have:

    • Dowloaded and installed Oracle Java Developers Kit (JDK) version 1.8.0_60+
    • Downloaded Oracle WebLogic Server 12c (12.2.1) generic installer (includes Oracle Coherence)
    • Installed WebLogic Server 12c (12.2.1) by using the generic installer

Creating a WebLogic Server 12c (12.2.1) Domain

To create a domain by using the Configuration Wizard, perform the following steps:

  1. In a Terminal window, perform the following steps:
    1. Navigate to ORACLE_HOME/oracle_common/common/bin.

      In this tutorial, ORACLE_HOME is /scratch/u01/app/fmw.

    2. To run the Configuration Wizard, enter the config.sh command.
      $>cd /scratch/u01/app/fmw/oracle_common/common/bin
      $>./config.sh

    The Configuration Wizard opens.

  2. On the Configuration Type page, provide the following information, and click Next:
    • Select Create a new domain.
    • Enter a location for the domain.

      In this tutorial, the location is /scratch/u01/domains/mydomain.

      Note: You can choose a different name and location for your domain.

    Description of this image
  3. On the Templates page, make the following selections, and click Next:
    • Create Domain Using Product Templates: Selected
    • All Templates: Selected for Template Categories
    • Under Available Templates, Basic WebLogic Server Domain: Selected

      Basic WebLogic Server Domain cannot be deselected. It is the only required template.

    Description of this image
  4. On the Administrator Account page, enter a name and a password, confirm the password, and then click Next.

    In this tutorial, the username is weblogic and the password is Welcome1.

    Important: Do not forget the username and password. You need them to perform every administrative task.

    Description of this image
  5. On the Domain Mode and JDK page, make the following selections, and then click Next:
    • Domain Mode: Production
    • JDK: Oracle HotSpot 1.8.0_60 /scratch/u01/app/jdk/

      The version and location of your HotSpot JDK may be different.

    Description of this image
  6. On the Advanced Configuration page, select which domain resources that you want to configure, and click Next.

    In this tutorial, Administration Server, Node Manager, and Managed Servers, Clusters and Coherence are selected.

    As you select more options, more screens are listed on the left side of the wizard.

    Description of this image
  7. On the Administration Server page, enter the following values, and click Next:
    • Server Name: AdminServer (which is the default value)
    • Listen Address: All Local Addresses
    • Listen Port: 7001
    • Enable SSL: Deselected

    Note: For the Listen Address, you can also select the host name or IP address of the machine. Selecting All Local Addresses simplifies the process of porting the domain across machines with different IP addresses.

    Description of this image
  8. On the Node Manager page, enter the following information and click Next:
    • Node Manager Type: Per Domain Default Location
    • Username: weblogic
    • Password: Welcome1

      You will use these credentials to communicate with Node Manager.

      Note: The credentials for Node Manager do not have to match the administrator account credentials.

    Description of this image
  9. On the Managed Servers page, click Add to display a row in the table.
    Description of this image
  10. In the new row, enter the following information:
    • Server Name: server1
    • Listen Address: All Local Addresses
    • Listen Port: 7003
    • Enable SSL: Deselected

    Note: For the Listen Address, you can also select the host name or IP address of the machine. Selecting All Local Addresses simplifies the process of porting the domain across machines with different IP addresses.

    Description of this image
  11. Click Add to display a second row. In the new row, enter the following information and click Next:
    • Server Name: server2
    • Listen Address: All Local Addresses
    • Listen Port: 7005
    • Enable SSL: Deselected

    Note: For the Listen Address, you can also select the host name or IP address of the machine. Selecting All Local Addresses simplifies the process of porting the domain across machines with different IP addresses.

    Description of this image
  12. On the Clusters page, click Next.
    Description of this image
  13. On the Machines page, perform the following steps:
    1. Select the Machine tab.
    2. Click Add.
    3. In the new row, enter machine1 for the Name.
    4. Select All Local Addresses
    5. Leave the Node Manager Listen Port as 5556.
    6. Click Next.

    Note: For the Node Manager Listen Address, you can also select the host name or IP address of the machine. Selecting All Local Addresses enables the Node Manager to manage all the domains you may create.

    Description of this image
  14. On the Assign Servers to Machines page, perform the following steps:
    1. Under Machines, ensure that machine1 is selected.
    2. Under Servers, select server1 and click the right arrow button to move it under machine1.
    3. Select server2 and click the right arrow button to move it under machine1.
    4. Click Next.
    Description of this image
  15. On the Configuration Summary page, click Create.
    Description of this image
  16. On the Configuration Progress page, click Next after the progress bar reaches 100%.
    Description of this image
  17. On the Configuration Success page, make note of the domain location and the URL of the administration console, and then click Finish.
    Description of this image

    You have created a WebLogic Server domain.

Viewing the Domain Files and Starting the WebLogic Server 12c (12.2.1) Domain

    To view the directory structure and files for the newly created domain, complete the following steps:

    1. Open a Terminal window and enter the following commands:
      $>cd /scratch/u01/domains/mydomain
      $>ls

      Note: If you placed the domain in a different location, use that directory instead.

      $>cd /scratch/u01/domains/mydomain
      $>ls
      autodeploy   console-ext            lib           security
      bin          fileRealm.properties   nodemanager   startManagedWebLogic_readme.txtstartWebLogic.sh
      config       init-info              resources	  startWebLogic.sh
    2. Start the administration server of the domain by entering startWebLogic.sh from the domain directory, for example:
      $>./startWebLogic.sh
    3. At the prompt, enter a username and password. Use the administrator username and password that you entered when you created the domain.

      In this tutorial, the username is weblogic and the password is Welcome1.

      Note: The password is not displayed.

      Enter username to boot WebLogic server:weblogic
      Enter the password to boot WebLogic server:
    4. As the script continues to run, look for the following message: The server is started in RUNNING mode.

      The message means that the Administration Server is up and running.

      <Oct 23, 2015 1:44:34 PM EDT><Notice><WebLogicServer><BEA-000360><The server started in RUNNING mode.>

Accessing the WebLogic Server Administration Console

    To access the WebLogic Server administration console, complete the following steps:

    1. Open a browser and enter the following URL: http://hostname:port/console.

      In this tutorial, the URL is http://ip_address:7001/console.

      Note: Use your administration server machine's host name, the machine's IP address, or localhost for ip_address.

    2. On the Welcome screen, enter the administrator username and password and click Login.
      • Username: weblogic
      • Password: Welcome1

      Note: These are the username and password used in this tutorial. Otherwise, enter the username and password that you used to start the administration server.

      Description of this image

      The home page of the administration console is displayed.

      Description of this image

Want to Learn More?

Credits

  • Lead Curriculum Developer: Tom Eliason
  • Original Oracle by Example tutorial for version 12c created by: Bill Bell
  • Original Oracle by Example tutorial for version 11g created by: TJ Palazzolo
  • Other Contributors: Veerabhadra Rao Putrevu, Kathryn Abelson, Susan Moxley