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.
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:
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.
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.
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.
Step 11: In case of any issue you need to see $DOMAIN_HOME/nodemanager/nodemanager.log