1. Go to $%WEBLOGIC_DIR%\wlserver_10.3\server\bin where WEBLOGIC_DIR is the home directory of weblogic installation.
2. Create a file called createSvc.cmd with following values:
(please make sure you mention the right domain name, path and admin server instance name)
echo off
SETLOCAL
set DOMAIN_NAME=base_domain
set USERDOMAIN_HOME=C:\app\product\10.3.3\mt_1\user_projects\domains\base_domain
set SERVER_NAME=AdminServer
set PRODUCTION_MODE=true (or False if you are in DEV mode)
set JAVA_VENDOR=Sun
set JAVA_HOME=C:\Java\jdk1.6
set MEM_ARGS=-Xms256m -Xmx512m
call "C:\app\product\10.3.3\mt_1\wlserver_10.3\server\bin\installSvc.cmd"
ENDLOCAL
3. create a backup of InstallSvc.cmd (because we are going to alter the default service name to be something more meaningful: Oracle WebLogic
4. Edit InstallSvc.cmd
- search for 'beasvc'
- replace
%WL_HOME%\server\bin\beasvc" -install -svcname:"beasvc %DOMAIN_NAME%_%SERVER_NAME%"
with the meaningful chosen service name:
%WL_HOME%\server\bin\beasvc" -install -svcname:"Oracle WebLogic %DOMAIN_NAME%_%SERVER_NAME%"
5. Execute createSvc.cmd script from same folder C:\app\product\10.3.3\mt_1\wlserver_10.3\server\bin\
- This should create service with name of "Oracle WebLogic base_Domain_Adminserver" in the registry under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
6.You can now start and stop the service from the Services control panel window.
> sc delete < SERVICE name>
Pre Requisite: JDK 1.5 plus should be present on the machine.
Instructions
1. cmd prompt and cd to the folder where the javaservice.exe resides
2. javaservice -install "Oracle BI: OC4J Service" "C:\Program Files\Java\jdk1.6.0_11\jre\bin\client\jvm.dll" -XX:MaxPermSize=128m -Xmx512m "-Djava.class.path=C:\app\oracle\product\10.1.3\bi_1\oraclebi\oc4j_bi\j2ee\home\oc4j.jar" -start oracle.oc4j.loader.boot.BootStrap -description "Oracle BI Oc4J Service"
3. now you can net start the service
NOTE: step 2) needs to be configured according to your system settings (i.e.: java jdk path, oracle BI path)
Great Post! Is there a way to install BI Publisher as a service when installing it as a "simple install"? There is no oc4j.jar file when it's run as a simple install. Since it deploy's using Weblogic, what variables will need to be passed to the installSvc.cmd file? The one's you listed are not sufficient. I tried.
ReplyDelete