Oracle WebLogic Server 12c: Creating and Configuring Machines

<Do not delete this text because it is a placeholder for the generated list of "main" topics when run in a browser>

Purpose

This tutorial shows how to create and configure Oracle WebLogic Server 12c machines.

Time to Complete

Approximately 1/2 hour

Overview

In a WebLogic Server domain, machines can be defined to represent physical computers that host one or more Oracle WebLogic Server instances. Machine definitions help WebLogic Server choose backup servers for session replication. Machine definitions also allow your administration server to communicate with any WebLogic Node Manager processes.

This tutorial covers creating and configuring machines by using the Oracle WebLogic Server 12c (12.1.1) administration console. It assumes that your domain will be distributed across two physical computers.

Software Requirements

The following is a list of software requirements:

Prerequisites

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

Creating Machines

To create machines in the domain by using the administration console, perform the following steps:

.

If the administration server of the domain is not already running, it needs to be started. To start it, in a Terminal window, navigate to the domain directory, and enter the command:

$ ./startWebLogic.sh

 

When prompted for a username and password, enter the credentials of the domain administrator.

 

.

After the administration server is up and running, access the WebLogic Server administration console. Open a web browser and enter the URL:
http://hostname:port/console

In this tutorial, that is: http://host01.example.com:8001/console

Note: Use the host name of your host. Also, if you used a different port number for the administration server, use that port instead.

On the Welcome screen, log in using the Username and Password entered to start the administration server.

 

.

Creating machines is a change to the domain's configuration, so it must first be locked. In the Change Center of the administration console, click the Lock & Edit button.

 

.

Under Domain Structure, expand Environment (by clicking the + sign next to it). Then click Machines.

 

.

On the right, notice that the Summary of Machines section appears. Above the Machines table (which is empty), click the New button.

 

.

In the Create a New Machine screen, for Name enter dizzyMachine1.

For Machine OS use the drop-down list to select Unix.

Then click Next.

 

.

On the next screen, for Type of Node Manger, use the drop-down list to select Plain.

For the Node Manager Listen Address, enter the IP address or host name of one of the computers on which your server(s) run. In this tutorial it is: host01.example.com.

For the Node Manager Listen Port, leave the default of 5556.

Then click Finish.

 

.

Follow the same procedure and create another machine. This time give it the Name of dizzyMachine2. Once again, set the Machine OS to Unix and the Node Manager Type to Plain. This time change the Listen Port to 5557.

For the Node Manager Listen Address, enter the IP address or host name of the second computer on which your server(s) run. In this tutorial it is: host02.example.com.

When finished, both machines show up in the Machines table.

 

.

To complete the changes, go back to the Change Center. Click the Activate Changes button.

 

The message "All changes have been activated. No restarts are necessary." is displayed.

 

Configuring the Machines

To add managed servers to the newly created machines by using the administration console, perform the following steps:

.

In the Machines table, click the machine dizzyMachine1.

 

.

In the Change Center, click the Lock & Edit button.

 

.

Under the Settings for dizzyMachine1, click the Configuration tab and then the Servers subtab.

 

.

Above the Servers table, click the Add button.

 

.

On the Add a Server to Machine screen, select the option Select an existing server, and associate it with this machine.

Use the Select a server drop-down list to choose dizzy1.

Then click Finish.

 

The message "Server created successfully" is displayed.

 

.

Back under Domain Structure, click Machines again.

In the Machines table, click the machine dizzyMachine2.

 

.

Under the Settings for dizzyMachine2, click the Configuration tab and then the Servers subtab.

Above the Servers table, click the Add button.

On the Add a Server to Machine screen, select the radio button Select an existing server, and associate it with this machine.

Use the Select a server drop-down list to choose dizzy2.

Then click Finish.

 

The message "Server created successfully" is displayed.

 

.

Follow that same procedure to add the server dizzy3 to the machine dizzyMachine2.

Now there are two servers assigned to that machine.

 

.

To complete the changes, go back to the Change Center. Click the Activate Changes button.

 

The message "All changes have been activated. No restarts are necessary." is displayed.

 

.

To see a summary of what you have done, under Domain Structure, under Environment, click Servers. In the Servers table on the right, you can see all the servers in the domain and to which machine each is assigned.

 

Summary

In this tutorial, you learned how to:

Resources

Credits

Hardware and Software Engineered to Work Together Copyright © 2011, Oracle and/or its affiliates. All rights reserved