To start or stop weblogic, forms , reports in windows fusion middleware 12.2.1.4 we need to execute command manually through cmd.
It becomes hectic and time consuming to start and stop these services one by one. To ease the entire startup/shutdown process we can create services for Nodemanager, weblogic admin server , forms ,reports.
Create
Nodemanager service:-
To create nodemanager service first, navigate to
D:\app\oracle\product\12.2.1.4\user_projects\domains\prd\bin
Here Middleware home= D:\app\oracle\product\12.2.1.4
Right click on installNodeMgrSvc.cmd and run as as administrator
Open services.msc and start Oracle Weblogic prd Nodemanager Services. Keep the startup type manual.
Create Weblogic adminserver service:-
To create weblogic service first we need to create one batch file with following contents.
Installweblogicservice.bat
echo on
SETLOCAL
set DOMAIN_NAME=PRD
set USERDOMAIN_HOME=F:\app\oracle\product\12.2.1.4\user_projects\domains\prd
set SERVER_NAME=AdminServer
set WL_HOME=D:\app\oracle\product\12.2.1.4\wlserver
set PRODUCTION_MODE=true
set WLS_USER=weblogic
set WLS_PW=xyz123#
set MEM_ARGS=-Xms128m -Xmx512m
call "D:\app\oracle\product\12.2.1.4\user_projects\domains\prd\bin\setDomainEnv.cmd"
call "D:\app\oracle\product\12.2.1.4\wlserver\server\bin\installSvc.cmd"
ENDLOCAL
Cmd /k
|
Run the above batch file using “Run as Administrator”, a Windows
Service will be created.
Start service as shown below. Keep the
startup type manual.
Create FORMS
service:-
To create Forms service first we need to create one batch file with following contents.
Create one batch file with following contents.
Installformsserivce.bat
SETLOCAL
set MW_HOME=D:\app\oracle\product\12.2.1.4
set DOMAIN_NAME=prd
set
USERDOMAIN_HOME=D:\app\oracle\product\12.2.1.4\user_projects\domains\prd
set SERVER_NAME=WLS_FORMS
set ADMIN_URL=http://CSAPP2:7001
set JAVA_OPTIONS=-Dweblogic.Stdout="D:\app\oracle\product\12.2.1.4\user_projects\domains\prd\stdout.txt"
-Dweblogic.Stderr="D:\app\oracle\product\12.2.1.4\user_projects\domains\prd\stderr.txt"
set WL_HOME=D:\app\oracle\product\12.2.1.4\wlserver
set PRODUCTION_MODE=true
set MEM_ARGS=-Xms128m -Xmx512m
call
"D:\app\oracle\product\12.2.1.4\user_projects\domains\prd\bin\setDomainEnv.cmd"
call
"D:\app\oracle\product\12.2.1.4\wlserver\server\bin\installSvc.cmd"
ENDLOCAL
Cmd /k
|
Run the above batch file using “Run as Administrator”, a Windows
Service will be created.
Start service as shown below. Keep the
startup type manual.
Create REPORTS
service:-
To create Reports service first we need to create one batch file with following contents.
Create one batch file with following contents.
Installreportsserivce.bat
SETLOCAL
set MW_HOME=D:\app\oracle\product\12.2.1.4
set DOMAIN_NAME=prd
set USERDOMAIN_HOME=D:\app\oracle\product\12.2.1.4\user_projects\domains\prd
set SERVER_NAME=WLS_REPORTS
set ADMIN_URL=http://CSAPP2:7001
set WL_HOME=D:\app\oracle\product\12.2.1.4\wlserver
set PRODUCTION_MODE=true
set MEM_ARGS=-Xms128m -Xmx512m
call "D:\app\oracle\product\12.2.1.4\user_projects\domains\prd\bin\setDomainEnv.cmd"
call "D:\app\oracle\product\12.2.1.4\wlserver\server\bin\installSvc.cmd"
ENDLOCAL
Cmd /k
|
Run the above batch file using “Run as Administrator”, a Windows
Service will be created.
Start service as shown below. Keep the
startup type manual.
Batch script to
start ohs1 and Reports server:
If there are ohs and standalone reports services running , we can start them manually.
Create one batch file with following commands for startup ohs1 and
reports server.
ohs_reports_startup.bat
D:\app\oracle\product\12.2.1.4\user_projects\domains\prd\bin\startComponent.cmd
ohs1 && D:\app\oracle\product\12.2.1.4\user_projects\domains\prd\bin\startComponent.cmd
rep_server1_prod
Batch script to
shutdown ohs1 and Reports server:
Likewise startup script, create one batch file with following commands for shutting down ohs1 and
reports server.
ohs_reports_shutdown.bat
D:\app\oracle\product\12.2.1.4\user_projects\domains\prd\bin\stopComponent.cmd
ohs1 && D:\app\oracle\product\12.2.1.4\user_projects\domains\prd\bin\stopComponent.cmd
rep_server1_prod