Welcome to Salem Houali ‘s Oracle Developer Notes

Fusion Middleware Managing Server Startup and Shutdown for Oracle WebLogic Server

Fusion Middleware Managing Server Startup and Shutdown for Oracle WebLogic Server

If you want to start automatically  weblogic server instances when you boot a windows host computer, you can create specific windows services.
For each server instance for which a windows service is set, the weblogic server creates a key in  the Windows Registry under  HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services.
After the windows host is started, the Microsoft Management Console (MMC) uses the information in this key to invoke the weblogic server intance.
InstallSvc.cmd is the script containing the variables used to install WebLogic Server as a Windows Service.
Some of variables need to be set before running the script. (For more details see, oracle doc)

WL_HOME                       - The root directory of your WebLogic installation
JAVA_HOME                    - Location of the version of Java used to start WebLogic 
WLS_USER                     - admin username for server startup
WLS_PW                         - cleartext password for server startup
ADMIN_URL                    - admin_url
PRODUCTION_MODE    - set to true for production mode servers, false for wait until the Weblogic Server is started.
HOST                               - IP address of the Weblogic Server  
PORT                               - Port number where the WebLogic Server is listening for requests 

Example of script to set up AdminServer as Windows Service.


SETLOCAL
set DOMAIN_NAME=base_domain
set USERDOMAIN_HOME=<ORACLE_HOME>\user_projects\domains\base_domain
set DOMAIN_HOME=<ORACLE_HOME>\user_projects\domains\base_domain
set SERVICE_DESCRIPTION=setting_Up_AdminServer_as_windows_service
set SERVER_NAME=AdminServer
set host=host_name
set port=port_number
set PRODUCTION_MODE=false
set MW_HOME=<ORACLE_HOME>\wlserver
set WLS_USER=wls_user
set WLS_PW=wls_pwd
set JAVA_HOME=<java_home>
set MEM_ARGS=your_mem_arg
set ADMIN_URL=your_admin_url
rem call %USERDOMAIN_HOME%\bin\setDomainEnv.cmd
call "%<ORACLE_HOME>%\wlserver\server\bin\installSvc.cmd"
ENDLOCAL

Start the AdminServer Microsoft Management Console

Description set in the script 
-- set SERVICE_DESCRIPTION=setting_Up_AdminServer_as_windows_service
Just modify your script if you want to create weblogic - reports & Forms instances as windows services.

3 Responses to “Fusion Middleware Managing Server Startup and Shutdown for Oracle WebLogic Server”

  • Frisch says:

    I do agree with all of the ideas you’ve presented in your post. They are really convincing and will definitely work. Still, the posts are too short for starters. Could you please extend them a bit from next time? Thanks for the post.

Leave a Reply