WebLogic 12c Startup as Windows Service Scripts

From Ittichai Chammavanijakul's Wiki
Jump to navigation Jump to search
  • Install/create Windows Service
    • 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=F:\Oracle\Middleware\user_projects\domains\base_domain
set SERVER_NAME=AdminServer
set WL_HOME=F:\Oracle\Middleware\wlserver_12.1
set PRODUCTION_MODE=true
set MEM_ARGS=-Xms128m -Xmx512m
call "F:\oracle\Middleware\user_projects\domains\base_domain\bin\setDomainEnv.cmd"
call "F:\Oracle\Middleware\wlserver_12.1\server\bin\installSvc.cmd"
ENDLOCAL
  • Delete the existing Windows Service
    • 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=F:\Oracle\Middleware\user_projects\domains\base_domain
set SERVER_NAME=AdminServer
call "F:\Oracle\Middleware\wlserver_12.1\server\bin\uninstallSvc.cmd"
ENDLOCAL