Oracle WebLogic Server 12c: Configuring Managed Servers
Overview
- Oracle Linux 5.6+
- Oracle WebLogic Server 12c (12.1.3)
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
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
- Open a Terminal window and navigate to the domain directory. In this tutorial, the domain directory is /scratch/domains/mydomain.
- In the domain directory, enter the following command:
$> ./startWebLogic.sh
- 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.
- Open a web browser and enter the URL:
http://hostname:port/consoleIn 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.
-
On the Welcome screen, enter the username and password that you entered to start the administration server, and then click Login.
- Under Domain Structure, click Servers.
- In the Servers table, click the server2 server.
- Under the Settings for server2, click the Logging tab.
- Ensure that the General subtab is selected.
- Change the rotation file size to 7500.
- Click Save.
To configure managed servers in the domain, perform the following steps:
If the administration server of the domain is not already running, start it.

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

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:

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
- Enter server3 for Server Name.
- Enter the host name or IP address of your machine for Server Listen Address.
- Enter 7007 for Server Listen Port.
- Select No, this is a stand-alone server.
- Click Finish.
- Ensure that the Configuration tab and the General subtab are selected.
- Scroll down to Machine and select machine1.
- Click Save.
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:

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:

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
- 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.
- At the prompt, enter the administrator username and password.
Note: The password is not displayed.
- If you need to log in again, do so.
- Under Domain Structure, expand Environment (if needed), and click Servers.
- Look for server3 in the Servers table. It should show its state as "RUNNING."
To start your new managed server, perform the following steps:
Run the managed server start script.
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:

Summary
- Configure managed servers
- Add a managed server
- Start a managed server
- For documentation on Oracle WebLogic Server 12c (12.1.3), visit the Oracle WebLogic Server Documentation Library.
- For more information on creating managed servers, see the Create Managed Servers section of the Administration Console Online Help.
- For more information on configuring servers, see the Configuration Options of servers section of the Administration Console Online Help.
- To learn more about Oracle WebLogic Server, refer to additional OBEs in the Oracle Learning Library.
- Lead Curriculum Developer: Bill Bell
- Original Oracle by Example tutorial for version 11g created by: TJ Palazzolo
- Editor: Susan Moxley
In this tutorial, you learned how to:
Resources
Credits
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.