Create and Configure Managed Servers in Oracle WebLogic Server PDF

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

Create and Configure Managed Servers in Oracle WebLogic Server https://docs.oracle.com/en/middleware/fusion-middleware/weblogic-serv...

Create and Configure Managed Servers


in Oracle WebLogic Server
Before You Begin
Before You Begin
Background
This tutorial shows you how to create, configure, and start Oracle
What Do You Need?
WebLogic Server Managed Servers.

Creating Managed Servers


Background
Configuring Managed Servers
This tutorial is part of the Oracle WebLogic Server 12c series and
assumes that you have completed this tutorial:
Starting Managed Servers
■ Install WebLogic Server and Create a Basic Domain
Next Steps
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 may contain any number of
Managed Servers.

This tutorial covers creating and configuring Oracle WebLogic Server


Managed Servers by using the Oracle WebLogic Server Administration
Console. It also shows you how to start Managed Servers from the
command line using the domain start script.

What Do You Need?


■ An installation of Oracle WebLogic Server 12c. See
http://www.oracle.com/technetwork/middleware/weblogic
/downloads/index.html.
■ This tutorial uses an instance of WebLogic Server installed in
/u01/app/fmw.
■ A properly configured Oracle WebLogic Server domain containing
an Administration Server and the following settings:
■ Domain directory: /u01/domains
/ExampleDomain
■ Administration Server Listen Address and Port
Number: localhost:7001

1 of 5 12/12/2020 4:33 PM
Create and Configure Managed Servers in Oracle WebLogic Server https://docs.oracle.com/en/middleware/fusion-middleware/weblogic-serv...

■ Domain administrator credentials: The user name and


password you specified when you created the domain.

Creating Managed Servers


To create Managed Servers in the domain:

1. If the Administration Server of the domain is not already running,


start it.
■ Open a terminal window and navigate to the domain directory:

$ cd /u01/domains/ExampleDomain

■ In the domain directory, enter:

$ ./startWebLogic.sh

■ At the prompt, enter the credentials of the domain administrator.


■ Examine the terminal output and wait for the Administration
Server to reach the RUNNING state.

<Aug 23, 2018 9:57:34,722 AM EDT> <Notice> <WebL


<Aug 23, 2018 9:57:34,817 AM EDT> <Notice> <WebL

2. After the Administration Server is running, access the WebLogic


Server Administration Console.
■ Open a web browser and enter the URL:

http://localhost:7001/console

■ On the Welcome screen, enter the user name and password that
you specified when you created the domain, and then click
Login.
The home page of the Administration Console is displayed.
3. In the left pane of the Console, under Domain Structure, expand
Environment, and then select Servers.
■ On the Summary of Servers page, you can view all the servers
defined in the domain.
■ To create Managed Servers, or change anything in the domain
configuration, you must first lock the domain configuration (to
prevent other accounts from making changes during your edit

2 of 5 12/12/2020 4:33 PM
Create and Configure Managed Servers in Oracle WebLogic Server https://docs.oracle.com/en/middleware/fusion-middleware/weblogic-serv...

session) and enable an edit session.


4. In the Change Center, click Lock & Edit.
5. In the Servers table, click New.
■ Enter the required properties for a new server:
■ Server Name: server1
■ Server Listen Port: 7003
■ Click Finish.
■ The Console displays the message: Server created
successfully.
6. Repeat step 5 to create server2, listen port 7005, and server3,
listen port 7007.
7. In the Change Center, click Activate Changes.
■ The Console displays the message: All changes have
been activated. No restarts are necessary.
■ The Administration Console updates the domain configuration
with the new server configuration data.

Configuring Managed Servers


To configure Managed Servers:

1. On the Summary of Servers page, select server1.


■ The settings for server1 are displayed.
■ To modify the settings for server1, you must first lock the domain
configuration and enable an edit session.
2. In the Change Center, click Lock & Edit.
3. Under Settings for server1, select Logging, and then General.
4. Change the rotation file size to 7500. This increases the size of the
server log files before a new log file is created.
5. Click Save.
■ The Console displays the following message: Settings
updated successfully.
6. Also increase the log file rotation size of server2 by performing the
following steps:
■ Under Domain Structure, expand Environment, and then select
Servers.
■ In the Servers table, select server2.
■ Under Settings for server2, select Logging, and then General.
■ Change the rotation file size to 7500.

3 of 5 12/12/2020 4:33 PM
Create and Configure Managed Servers in Oracle WebLogic Server https://docs.oracle.com/en/middleware/fusion-middleware/weblogic-serv...

■ Click Save.
7. In the Change Center, click Activate Changes.
■ The Console displays the message: All changes have
been activated. No restarts are necessary.
■ The Administration Console updates the domain configuration
with the new server configuration data.

Starting Managed Servers


To start Managed Servers:

1. Run the Managed Server start script.


■ Open a terminal window and navigate to the bin directory
under your domain directory. In this tutorial, the domain
directory is: /u01/domains/ExampleDomain

■ Enter: startManagedWebLogic.sh

■ This command takes two arguments: the name of the


Managed Server that you want to start and the URL of the
Administration Server
■ In this tutorial, the values for those arguments are: server1
and http://localhost:7001

$ cd /u01/domains/ExampleDomain/bin
$ ./startManagedWebLogic.sh server1 http://local

■ At the prompt, enter the administrator user name and password.


NOTE: The password is not displayed.
2. Wait for the following terminal output messages:

<Aug 23, 2018 9:57:34,722 AM EDT> <Notice> <WebLog


<Aug 23, 2018 9:57:34,817 AM EDT> <Notice> <WebLog

3. Repeat steps 1 and 2 to start server2.


4. In the Administration Console:
■ If you need to log in again, do so.
■ Under Domain Structure, expand Environment, and then select
Servers.
■ In the Servers table, examine server1 and server2. Both should
show their state as RUNNING.

4 of 5 12/12/2020 4:33 PM
Create and Configure Managed Servers in Oracle WebLogic Server https://docs.oracle.com/en/middleware/fusion-middleware/weblogic-serv...

Next Steps
The WebLogic Server 12c collection contains a number of additional
tutorials, covering a variety of topics. See the WebLogic Server 12c
collection here for additional topics and content.

About Oracle Contact Us Legal Notices Terms of Use Your Privacy Rights | Cookie Preferences | Ad Choices Copyright © 2018,
Oracle and/or its affiliates. All rights reserved.

5 of 5 12/12/2020 4:33 PM

You might also like