Weblogic Node Manager is a Java utility that runs as a
separate process to do common operations like start/stop managed servers,
automatically restart the managed server if it stops unexpectedly and monitor
the server health status irrespective of the location. This operation can be
performed through WebLogic admin server console or from the command line. The
Node manager should be running to perform those operations. This tutorial we
are covering on setting up the Node Manager as Windows service.
Step1:
Go in to your WebLogic server directory. This is the where
the wlserver folder is present as shown below
WLSERVER folder
Step2:
Go into the server\bin directory and double click the file
installNodeMgrSVC.cmd, this creates a windows service named Oracle WebLogic
NodeManager(Path to WEBLOGIC_SERVER_HOME)
Edit the
file installNodeMgrSVC.cmd If you want to change the service name, port or
listen address.
When you
make any changes in the above file, do the same changes in
uninstallNodeMgrSvc.cmd to make consistent.
Node manager batch
file
To uninstall the node manager service, double click the
uninstallNodeMgrSvc.cmd
Step3:
Open windows services and the nodemanager service should be
displayed as shown below, right click the service and click START to start the
service.
Sometime we receive a weird error while installing WebLogic Node Manager as a Windows service. When I run the installNodeMgrSvc.cmd from the command prompt, I received an error “The System cannot find the path specified” marked in the red box below. The script is not taking the path of file wlsvcX64.exe correctly. I mentioned it in the blue color arrow.
Solution:
1. Open the file installNodeMgrSvc.bat file
2. Set the WL_HOME variable at the start of the script as
shown below and save it.
Note: Adjust the WL_HOME path with your WebLogic Home path
3. Run installNodeMgrSvc again
Steps to create AdminServer, WLS_FORMS &
WLS_REPORTS services.
1.1) installing = Create a file called
"WebLogic_Admin_WinSvc_Install.cmd" with the following content. Run
it. It will create a new Windows Service called "wlsvc
based_domain_AdminServer"
------------------------------------------------------------------------------------------------------------------
echo off
SETLOCAL
set DOMAIN_NAME=base_domain
set
USERDOMAIN_HOME=D:\Oracle12C\Middleware\Oracle_Home\user_projects\domains\base_domain
set SERVER_NAME=AdminServer
set
WL_HOME=D:\Oracle12C\Middleware\Oracle_Home\wlserver
set PRODUCTION_MODE=true
set MEM_ARGS=-Xms128m -Xmx512m
call
"D:\Oracle12C\Middleware\Oracle_Home\user_projects\domains\base_domain\bin\setDomainEnv.cmd"
call
"D:\Oracle12C\Middleware\Oracle_Home\wlserver\server\bin\installSvc.cmd"
ENDLOCAL
------------------------------------------------------------------------------------------------------------------
1.2) un-installing = Create a file called
"WebLogic_Admin_WinSvc_Uninstall.cmd" with the following content.
This will remove the existing Windows Service "wlsvc
based_domain_AdminServer"
------------------------------------------------------------------------------------------------------------------
echo off
SETLOCAL
set DOMAIN_NAME=base_domain
set
USERDOMAIN_HOME=D:\Oracle12C\Middleware\Oracle_Home\user_projects\domains\base_domain
set SERVER_NAME=AdminServer
call
"D:\Oracle12C\Middleware\Oracle_Home\wlserver\server\bin\uninstallSvc.cmd"
ENDLOCAL
------------------------------------------------------------------------------------------------------------------
2.1) installing = Create a file called
"WebLogic_FORMS_WinSvc_Install.cmd" with the following content. This
will create a new Windows Service called "wlsvc
based_domain_WLS_FORMS"
------------------------------------------------------------------------------------------------------------------
echo off
SETLOCAL
set DOMAIN_NAME=base_domain
set
USERDOMAIN_HOME=D:\Oracle12C\Middleware\Oracle_Home\user_projects\domains\base_domain
set SERVER_NAME=WLS_FORMS
set
WL_HOME=D:\Oracle12C\Middleware\Oracle_Home\wlserver
set PRODUCTION_MODE=true
set MEM_ARGS=-Xms128m -Xmx512m
call
"D:\Oracle12C\Middleware\Oracle_Home\user_projects\domains\base_domain\bin\setDomainEnv.cmd"
call "D:\Oracle12C\Middleware\Oracle_Home\wlserver\server\bin\installSvc.cmd"
ENDLOCAL
------------------------------------------------------------------------------------------------------------------
2.2) un-installing = Create a file called
"WebLogic_FORMS_WinSvc_Uninstall.cmd" with the following content.
This will remove the existing Windows Service "wlsvc
based_domain_WLS_FORMS"
------------------------------------------------------------------------------------------------------------------
echo off
SETLOCAL
set DOMAIN_NAME=base_domain
set
USERDOMAIN_HOME=D:\Oracle12C\Middleware\Oracle_Home\user_projects\domains\base_domain
set SERVER_NAME=WLS_FORMS
call
"D:\Oracle12C\Middleware\Oracle_Home\wlserver\server\bin\uninstallSvc.cmd"
ENDLOCAL
------------------------------------------------------------------------------------------------------------------
3.1) installing = Create a file called
"WebLogic_REPORTS_WinSvc_Install.cmd" with the following content.
This will create a new Windows Service called "wlsvc
based_domain_WLS_REPORTS"
------------------------------------------------------------------------------------------------------------------
echo off
SETLOCAL
set DOMAIN_NAME=base_domain
set
USERDOMAIN_HOME=D:\Oracle12C\Middleware\Oracle_Home\user_projects\domains\base_domain
set SERVER_NAME=WLS_REPORTS
set
WL_HOME=D:\Oracle12C\Middleware\Oracle_Home\wlserver
set PRODUCTION_MODE=true
set MEM_ARGS=-Xms128m -Xmx512m
call
"D:\Oracle12C\Middleware\Oracle_Home\user_projects\domains\base_domain\bin\setDomainEnv.cmd"
call "D:\Oracle12C\Middleware\Oracle_Home\wlserver\server\bin\installSvc.cmd"
ENDLOCAL
------------------------------------------------------------------------------------------------------------------
3.2) un-installing = Create a file called
"WebLogic_FORMS_WinSvc_Uninstall.cmd" with the following content.
This will remove the existing Windows Service "wlsvc
based_domain_WLS_FORMS"
------------------------------------------------------------------------------------------------------------------
echo off
SETLOCAL
set DOMAIN_NAME=base_domain
set
USERDOMAIN_HOME=D:\Oracle12C\Middleware\Oracle_Home\user_projects\domains\base_domain
set SERVER_NAME=WLS_REPORTS
call
"D:\Oracle12C\Middleware\Oracle_Home\wlserver\server\bin\uninstallSvc.cmd"
ENDLOCAL
------------------------------------------------------------------------------------------------------------------
4) You can delete any of these services
from command prompt after stopping, like following
SC DELETE “service name”
No comments:
Post a Comment