Skip to content

Instantly share code, notes, and snippets.

@esaounkine
Created April 29, 2011 08:02
Show Gist options
  • Save esaounkine/948014 to your computer and use it in GitHub Desktop.
Save esaounkine/948014 to your computer and use it in GitHub Desktop.
Install OAS as a Windows Service
rem To install the service with name OAS:
set ORACLE_HOME=C:\product\10.1.3.1\OracleAS_1
set CP=%ORACLE_HOME%\j2ee\home\oc4j.jar;%ORACLE_HOME%\jlib\startupconsole.jar;%ORACLE_HOME%\opmn\lib\optic.jar;%ORACLE_HOME%\lib\xmlparserv2.jar
javaservice -install OAS %ORACLE_HOME%\jdk\jre\bin\client\jvm.dll -Djava.class.path=%CP% -DORACLE_HOME=%ORACLE_HOME% -start oracle.appserver.startupconsole.view.Runner -params start -stop oracle.appserver.startupconsole.view.Runner -params stop -current %ORACLE_HOME%\j2ee\home\ -description "Oracle Application Server Service"
(in case the memory settings are not met (they are supposed to be taken from %ORACLE_HOME%\opmn\config\opmn.xml) add these 2 parameters
-XX:MaxPermSize=256m -Xmx256m right after the Java dll path)
rem To uninstall the service with name OAS:
javaservice -uninstall OAS
rem To view the configuration for installed Java service with name OAS:
javaservice -queryconfig OAS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment