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 machines by using the Oracle WebLogic Server 12c (12.1.2) administration console.

Prerequisites
Before starting this tutorial, you should have completed following
Step by Step Installing Oracle WebLogic Server 12c on Oracle Enterprise Linux 6
Step by Step Creating Domain Oracle WebLogic Server 12c on Oracle Enterprise Linux 6

Step 1: 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 enter the command:

nohup $DOMAIN_HOME/bin/startWebLogic.sh > $DOMAIN_HOME/bin/start_AdminServer.log &

Step 2: 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://lab.home.network:7001/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.

Oracle_WebLogic_Server_12c_machine_creation_1

Step 3: 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.
Oracle_WebLogic_Server_12c_machine_creation_2

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

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

Step 6: In the Create a New Machine screen, for Name enter Machine-0
For Machine OS use the drop-down list to select Unix.
Then click Next.
Oracle_WebLogic_Server_12c_machine_creation_5

Step 7: 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: lab.home.network.
For the Node Manager Listen Port, leave the default of 5556.
Then click Finish.
Oracle_WebLogic_Server_12c_machine_creation_6

Step 8: To complete the changes, go back to the Change Center. Click the Activate Changes button.
Oracle_WebLogic_Server_12c_machine_creation_7

Step 9: The message All changes have been activated. No restarts are necessary is displayed.
Oracle_WebLogic_Server_12c_machine_creation_8

Step 10: Now we need to start the NodeManager. To start the NodeManager you need to run following command

nohup $DOMAIN_HOME/bin/startNodeManager.sh > /dev/null 2>&1 &

For above command to run properly you need to set proper environment variables.
You can set the same by following Step by Step Installing Oracle WebLogic Server 12c on Oracle Enterprise Linux 6
Once done kill the NodeManager process, cause we need to do some configuration changes in the NodeManager Configuration file
Kill the NodeManager by finding its pid using following command

ps auxwww | grep NodeManager

Once killed, open $DOMAIN_HOME/nodemanager/nodemanager.properties and do following
Change ListenAddress from localhost to your actual machine hostname
Change SecureListener from true to false as we have selected plain protocol type.
StopScriptEnabled and StartScriptEnabled should be true
Save and close the file and once again start the NodeManager
Now to check the NodeManager status go to
Under Domain Structure, expand Environment (by clicking the + sign next to it). Then click Machines. Then select the machine you have created, in our environment it is Machine-0. Then click on Monitoring tab. If everything goes well you will see NodeManager status as Reachable.
Oracle_WebLogic_Server_12c_machine_creation_9

Step 11: In case of any issue you need to see $DOMAIN_HOME/nodemanager/nodemanager.log

Step by Step Creating Machines Oracle WebLogic Server 12c on Oracle Enterprise Linux 6

Leave a Reply

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Recommend on Google