OBIEE Step by Step Guide

October 21, 2009

Integrate OC4J as a Windows Service

Seems like the OC4J window on your server or your development machine is bothering you?? If so, lets make it invisible by integrating the OC4J as a windows service as part of your deployment.

This deployment procedure assumes that your OBIEE is installed on a Windows Server.  Create a folder called “backup” inside  c:\OracleBI\oc4j_bi\bin directory.  This assumes that the original oc4j.cmd file existed in the above said folder. Now, move the .cmd file to the backup folder.

Now, locate the javaservice.exe file in your server. This .exe comes with the installation of JavaService.exe; Try googling for it and its free and open source. Lets assume the javaservice.exe file is located in C:\Program Files\Java Service folder.

Open a command prompt on your server and switch to the drive where the OBIEE was installed.

Now copy and paste this following command to your command prompt window and hit “Enter”.

“C:\Program Files\Java Service\javaservice.exe” -install “OC4J” “C:\Program Files\Java\jdk1.6.0_12\jre\bin\client\jvm.dll” -XX:MaxPermSize=64m -Xmx256m “-Djava.class.path=e:\OracleBI\oc4j_bi\j2ee\home\oc4j.jar” -start oracle.oc4j.loader.boot.BootStrap -description “Oracle BI OC4J Service”

Assumed that you are installing OBIEE in C drive and javaservice.exe is located in C:\Program Files\Java Service\ folder and your jvm.dll  is available in C:\Program Files\Java\jdk1.6.0_12\jre\bin\client\ folder. Also check the location of your oc4j.jar file location as shown in the above command.

If the service was successfully started, the following message ” The OC4J automatic service was successfully installed” should be returned after you pressed “Enter”.

Now, go to your services using control panel and you should be seeing “Oracle BI OC4J Service” in the list of registered services.

Hope this helps .. always your comments are well appreciated…

 Also, kudos to all OBIEE evangelists out there 🙂


Create a free website or blog at