Oracle WebLogic Server 12c: Configuring Managed Servers

Overview

    Purpose

    This tutorial shows you how to configure Oracle WebLogic Server 12c managed servers.

    Time to Complete

    Approximately one-half hour

    Introduction

    A WebLogic Server domain always has exactly one administration server. This special instance of WebLogic Server is responsible for the configuration of the entire domain. Other servers in the domain are called managed servers, and they are typically the servers on which you run your applications. A domain can contain any number of managed servers.

    This tutorial covers configuring Oracle WebLogic Server 12c (12.1.3) managed servers by using the WebLogic Server administration console. It also shows you how to create a new managed server by using the administration console. Finally, this tutorial shows you how to use the domain start script to start a managed server.

    Hardware and Software Requirements

    • Oracle Linux 5.6+
    • Oracle WebLogic Server 12c (12.1.3)

    Prerequisites

    Before starting this tutorial, you should have completed the Oracle by Example tutorial titled Oracle WebLogic Server 12c: Installing WebLogic Server and Creating a Domain.

Configuring Managed Servers

    To configure managed servers in the domain, perform the following steps:

    If the administration server of the domain is not already running, start it.

    1. Open a Terminal window and navigate to the domain directory. In this tutorial, the domain directory is /scratch/domains/mydomain.
    2. In the domain directory, enter the following command:

      $> ./startWebLogic.sh

    3. At the prompt, enter 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.

    After the administration server is up and running, access the WebLogic Server administration console.

    1. Open a web browser and enter the 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>. Also, if you used a different port number for the administration server, use that port instead.

    2. On the Welcome screen, enter the username and password that you entered to start the administration server, and then click Login.

    The home page of the administration console is displayed.

    In the administration console, under Domain Structure, expand Environment, and then click Servers.

    On the right, notice that the Summary of Servers section appears. Here you can view the administration server and managed servers defined in the domain.

    Click server1.

    The settings for server1 are displayed.

    To be able to modify the settings of server1, or change anything in the domain configuration, the configuration must first be locked. At the top left of the administration console, in the Change Center, click Lock & Edit.

    Under the settings for server1, click the Logging tab and ensure that the General subtab is selected.

    Scroll down and change the rotation file size to 7500.

    It has been decided that we want server log files to be a bit larger before a new log file is created.

    Click Save.

    Above the settings for server1, the administration console displays the following message: "Settings updated successfully."

    Also increase the log file rotation size of server2 by performing the following steps:

    1. Under Domain Structure, click Servers.
    2. In the Servers table, click the server2 server.
    3. Under the Settings for server2, click the Logging tab.
    4. Ensure that the General subtab is selected.
    5. Change the rotation file size to 7500.
    6. Click Save.

    To complete the changes, go back to the Change Center and click Activate Changes.

    The administration console displays the following message: "All changes have been activated. No restarts are necessary."

Adding a Managed Server

    To add a managed server to the domain, perform the following steps:

    In the administration console, under Domain Structure, click Servers.

    In the Change Center, click Lock & Edit.

    Notice that the New button above the Servers table is now enabled. Click it.

    In the Create a New Server section, perform the following steps:

    1. Enter server3 for Server Name.
    2. Enter the host name or IP address of your machine for Server Listen Address.
    3. Enter 7007 for Server Listen Port.
    4. Select No, this is a stand-alone server.
    5. Click Finish.

    The administration console displays the following message: "Server created successfully."

    In the Servers table, click the server3 server.

    Under the settings for server3, perform the following steps:

    1. Ensure that the Configuration tab and the General subtab are selected.
    2. Scroll down to Machine and select machine1.
    3. Click Save.

    On the Logging tab, change the rotation file size for server3 to 7500, and then click Save.

    To activate the changes, go to the Change Center and click Activate Changes.

    Note: If you want to see what changes are pending, before clicking the Activate Changes button, click the View changes and restarts link above it.

Starting a Managed Server

    To start your new managed server, perform the following steps:

    Run the managed server start script.

    1. Open a Terminal window and navigate to the bin directory under your domain directory. In this tutorial, the domain directory is /scratch/domains/mydomain.

      Enter the following command: startManagedWebLogic.sh. This command takes two arguments:

      • The name of the managed server that you want to start
      • The URL of the administration server

      In this tutorial, those arguments are:

      • server3
      • http://<ip_address>:7001

      Note: Replace <ip_address> with the host name or IP address of your administration server.

    2. At the prompt, enter the administrator username and password.

      Note: The password is not displayed.

    Wait for the following message: The server started in RUNNING mode. This message means that the server is up and running.

    In the administration console, perform the following steps:

    1. If you need to log in again, do so.
    2. Under Domain Structure, expand Environment (if needed), and click Servers.
    3. Look for server3 in the Servers table. It should show its state as "RUNNING."

Summary

    In this tutorial, you learned how to:

    • Configure managed servers
    • Add a managed server
    • Start a managed server

    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.