Oracle WebLogic Server 12c: Configuring Managed Servers
This tutorial shows you how to configure Oracle WebLogic Server 12c managed servers.
Time to Complete
Approximately one-half hour
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)
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:
1. If the administration server of the domain is not already running, start it.
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:
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.
2. After the administration server is up and running, access the WebLogic Server administration console.
Open a web browser and enter the URL:
In this tutorial, the URL ishttp://<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 clickLogin.
The home page of the administration console is displayed.
3. 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.
4. Click server1.
• ทดสอบครั้งแรกพบ server1 และ server2 เป็น SHUTDOWN.
• ให้แก้ไขโดย ไป startNodeManager.sh ที่ DOMAIN_HOME/bin.
• ดูเรื่อง Node Manager ที่นี่.
The settings for server1 are displayed.
5. 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.
6. Under the settings for server1, click the Logging tab and ensure that the General subtab is selected.
7. 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.
8. Click Save.
Above the settings for server1, the administration console displays the following message: "Settings updated successfully."
9. Also increase the log file rotation size of server2 by performing the following steps:
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 to7500.
10. 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:
#OUGTH: จะเลือกทำใน config wizard ก็ได้.
1. In the administration console, under Domain Structure, clickServers.
2. In the Change Center, click Lock & Edit.
3. Notice that the New button above the Servers table is now enabled. Click it.
4. In the Create a New Server section, perform the following steps:
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.
The administration console displays the following message: "Server created successfully."
5. In the Servers table, click the server3 server.
6. Under the settings for server3, perform the following steps:
Ensure that the Configuration tab and the General subtab are selected.
Scroll down to Machine and select machine1.
#OUGTH: ต้องทำ machine ในแบบฝึกหัดแรกก่อน.
7. On the Logging tab, change the rotation file size for server3 to 7500, and then click Save.
8. 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:
1. Run the managed server start script.
Open a Terminal window and navigate to thebindirectory 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
Note: Replace<ip_address>with the host name or IP address of your administration server.
#OUGTH สรุปคำสั่งที่ใช้ ./startManagedWebLogic.sh server3 http://192.168.56.101:7001
At the prompt, enter the administrator username and password.
Note: The password is not displayed.
2. Wait for the following message: The server started in RUNNING mode.This message means that the server is up and running.
3. In the administration console, perform the following steps:
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."
In this tutorial, you learned how to:
- 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
• ลองเทียบกับ 12.1.1, status ของ server1 กับ server2 เป็น SHUTDOWN.
• ประเด็นเรื่อง status ของ server1 กับ server2 เป็น “SHUTDOWN" จริง ๆ ไม่ได้มีผลอะไรกับการทำแบบฝึกหัดนี้.
• จุดประสงค์คือต้องการให้สร้าง Managed Server บน Admin Console ได้.