Oracle WebLogic Server 12c: Installing WebLogic Server and Creating a Domain

Overview

    Purpose

    This tutorial shows you how to install Oracle WebLogic Server 12c and create a WebLogic Server domain.

    Time to Complete

    Approximately 1 hour

    Introduction

    This tutorial shows you how to install Oracle WebLogic Server 12c (12.1.3) on a Linux system by using the generic installer. The generic installer requires a Java Developers Kit (JDK), so this tutorial first covers installing the JDK. After you install the JDK and WebLogic Server, this tutorial shows you how to use the Configuration Wizard to create a WebLogic Server domain.

    Hardware and Software Requirements

    The only requirement is that your operating system must be Oracle Linux 5.6+.

    Prerequisites

    Before starting this tutorial, download the following to your Linux machine:

    • Oracle Java Developers Kit version 1.7.0_55+
    • Oracle WebLogic Server 12c (12.1.3) generic installer (includes Oracle Coherence)

Installing the JDK

    To install the JDK, perform the following steps:

    Extract the JDK to a directory of your choice.

    1. Open a Terminal window and navigate to the directory where you want to install the JDK. For example, to navigate to the /scratch/u01/app directory, enter the following command:

      $> cd /scratch/u01/app

    2. Copy (or move) the JDK file from the directory where you downloaded it to the current directory. In this tutorial, the JDK is in the /scratch/install/jdk directory. To copy the JDK file from there into the current directory, enter the following command:

      $> cp /scratch/install/jdk/jdk-7u60-linux-x64.gz -t .

      Note: The name and location of your JDK file may be different.

    3. Unpack the file by using the tar command:

      $> tar -zxvf jdk-7u60-linux-x64.gz

      The tar options are:

      • z: unzip
      • x: extract
      • v: verbose
      • f: filename

    (Optional) Rename the JDK directory. To make the directory name more generic, use the mv command to rename it jdk.

    $> mv jdk1.7.0_60 jdk

    Note: The name of your JDK directory may be different.

    Use the rm command to erase the copied JDK file.

    $> rm jdk-7u60-linux-x64.gz

    Note: The name of your JDK file may be different.

Installing WebLogic Server

    To install WebLogic Server, perform the following steps:

    Run the generic installation program (the JAR file).

    1. Open a Terminal window and navigate to the bin directory under the JDK directory.

      $> cd /scratch/u01/app/jdk/bin

    2. Run the Java virtual machine with the -jar option, calling the generic installer JAR file that you already downloaded. In this tutorial, the JAR file is in the /scratch/install/wls12.1.3 directory. The file name is fmw_12.1.3.0.0_wls.jar.

      $> ./java -jar /scratch/install/wls12.1.3/fmw_12.1.3.0.0_wls.jar

      Note: The name and location of your generic installer JAR file may be different.

    After the installer extracts files, it analyzes your system to see if it meets the minimum requirements (CPU speed, for example). If everything checks out, the graphical Oracle Universal Installer starts.

    On the Welcome screen of the installer, click Next.

    On the Installation Location screen, enter the location for Oracle Home (or click Browse to browse to the location), and then click Next.

    In this demonstration, Oracle Home is /scratch/u01/app/fmw.

    On the Installation Type screen, select either WebLogic Server (it includes Coherence) or Complete with Examples, and then click Next.

    In this demonstration, the selection is WebLogic Server.

    On the Prerequisite Checks screen, wait for all checks to complete successfully, and then click Next.

    On the Security Updates screen, perform the following steps:

    1. Enter your email address.
    2. Select I wish to receive security updates via My Oracle Support.
    3. Enter your My Oracle Support password.
    4. Click Next.

    Note: If the machine on which you are installing WebLogic Server is part of a training environment, deselect I wish to receive security updates via My Oracle Support, and click Next. In the dialog box that opens, click Yes.

    On the Installation Summary screen, review the installation information. If everything is acceptable, click Install.

    On the Installation Progress screen, wait for the progress bar to reach 100%, and then click Next.

    On the Installation Complete screen, deselect Automatically Launch the Configuration Wizard, and then click Finish.

    Close the Terminal window that you used to launch the installer.

Creating a Domain

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

    In a Terminal window, perform the following steps:

    1. Navigate to <ORACLE_HOME>/wlserver/common/bin. In this tutorial, <ORACLE_HOME> is /scratch/u01/app/fmw.
    2. To run the Configuration Wizard, enter the following command:
    3. $> ./config.sh

    On the Configuration Type page, perform the following steps:

    1. Select Create a new domain.
    2. Enter a location for the domain. In this tutorial, the location is /scratch/domains/mydomain.
    3. Click Next.
    4. Note: You can choose a different name and location for your domain.

    On the Templates page, perform the following steps:

    1. Select Create Domain Using Product Templates.
    2. Leave All Templates selected for Template Categories.
    3. Under Available Templates, Basic WebLogic Server Domain is selected and cannot be deselected. It is the only required template.
    4. Click Next.

    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 this username and password. You need them to perform any administrative task.

    On the Domain Mode and JDK page, perform the following steps:

    1. Under Domain Mode, select Production.
    2. Under JDK, select Oracle HotSpot. The version of your HotSpot JDK may be different.
    3. Click Next.

    On the Advanced Configuration page, select which domain resources that you want to configure, and then 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.

    On the Administration Server page, perform the following steps:

    1. Leave the default value for Server Name.
    2. Enter the host name or IP address of the machine for Listen Address.
    3. Leave the Listen Port at 7001.
    4. Leave Enable SSL deselected.
    5. Click Next.

    On the Node Manager page, perform the following steps:

    1. Node Manager Type: Leave the default value of Per Domain Default Location.
    2. Node Manager Credentials: Enter weblogic for the username and Welcome1 for the password. You will use these credentials to communicate with Node Manager.
    3. Note: The credentials for Node Manager do not have to match the administrator account credentials.

    4. Click Next.

    On the Managed Servers page, click Add to display a row in the table.

    In the new row, enter the following information:

    1. Enter server1 for the Server Name.
    2. Enter the host name or IP address of the machine for the Listen Address.
    3. Ensure that the Listen Port is 7003.
    4. Leave Enable SSL deselected.

    Click Add to display another row. In the new row, enter the following information:

    1. Enter server2 for the Server Name.
    2. Enter the host name or IP address of the machine for the Listen Address.
    3. Enter 7005 for the Listen Port.
    4. Leave Enable SSL deselected.
    5. Click Next.

    On the Clusters page, click Next.

    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. Enter the host name or IP address of the machine for the Node Manager Listen Address.
    5. Leave the Node Manager Listen Port as 5556.
    6. Click Next.

    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.

    On the Configuration Summary page, click Create.

    On the Configuration Progress page, click Next after the progress bar reaches 100%.

    On the Configuration Success page, make note of the domain location and the URL of the administration console, and then click Finish.

    You have created a WebLogic Server domain.

Viewing the Domain Files

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

    Open a Terminal window and enter the following commands:

    $> cd /scratch/domains/mydomain
    $> ls

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

    To start the administration server of the domain, enter the following command from the domain directory:

    $> ./startWebLogic.sh

    At the prompt, enter a username and password. Use the administrator username and password that you entered when you created the domain.

    Note: The password is not displayed.

    As the script continues to run, look for the following message: <Notice> The server started in RUNNING mode.

    The message means that the administration server is up and running.

Accessing the Administration Console

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

    Open a web 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 or IP address for <ip_address>.

    On the Welcome screen, enter the administrator username and password and click Login.

    Note: Use the username and password that you used to start the administration server.

    The home page of the administration console is displayed.

Summary

    In this tutorial, you learned how to:

    • Install the JDK
    • Install Oracle WebLogic Server 12c
    • Create a WebLogic Server domain

    Resources

    Credits

    • Lead Curriculum Developer: Bill Bell
    • Original Oracle by Example tutorial for version 11g created by: TJ Palazzolo
    • Editor: Susan Moxley

To navigate this Oracle by Example tutorial, note the following:

Hide Header Buttons:
Click the title to hide the buttons in the header. To show the buttons again, click the title again.
Topic List:
Click a topic to navigate to that section.
Expand All Topics:
Click the button to show or hide the details for the sections. By default, all topics are collapsed.
Hide All Images:
Click the button to show or hide the screenshots. By default, all images are displayed.
Print:
Click the button to print the content. The content that is currently displayed or hidden is printed.

To navigate to a particular section in this tutorial, select the topic from the list.