Oracle BI EE 10.1.3.3/2 - Creating Windows Service for BI EE OC4J
Posted by Venkatakrishnan J on February 15, 2008
Update: Just realized Adrian has already blogged about this here. Thanks to Adrian for pointing it out.
Thanks to Matt Bedin and Dave Granholm(BI EE product management) for sharing this. This has been asked so many times before both in internal as well as external forums. So, i thought i would blog about it for the benefit of others. Just remember that, this method is not supported as yet by Oracle. As you would know, when you do a default install of BI EE, it would install OC4J which would act as a web server. This OC4J would start automatically when you start your OS and you can see the OC4J console in your system tray. Now, how do we go about converting this OC4J start/stop command script into a windows service? In order to do this, we would need an excellent Open Source Utility called JavaService-2.0.10. You can download this from here. Once you have downloaded this, unzip the utility to any folder.
Now, navigate to this folder from command line and enter the following command.
javaservice -install “Oracle BI EE OC4J” “C:\Program Files\Java\jdk1.5.0_11\jre\bin\client\jvm.dll” -XX:MaxPermSize=128m “-Djava.class.path=D:\Oracle\OracleBI\OC4J_BI\j2ee\home\oc4j.jar” -start oracle.oc4j.loader.boot.BootStrap -description “Oracle BI EE OC4J Service”
In the above command, C:\Program Files\Java\jdk1.5.0_11\jre\bin\client\jvm.dll points to the dll in your Java 1.5 JDK path. Also, D:\Oracle\OracleBI\OC4J_BI\j2ee\home\oc4j.jar points to the oc4j.jar within your BI EE instance.
Now, if you go to the Windows Services Manager, you would notice that a new service would have been created.
Now, you should be able to the control the start/stop of OC4J from the services console. Use this only on a test instance since this is not certified.




February 15, 2008 at 1:15 pm
Copycat! I blogged about this yesterday.
February 15, 2008 at 1:29 pm
Ouch. Strange that the google reader never showed your blog entry earlier. I have now updated the blog entry to reflect yours.
February 26, 2008 at 2:00 pm
Hi,
Thanks for such a nice blog.
but i am unable to generate getting an error in the cmd window.
C:\Utility>javaservice -install “Oracle BI EE OC4J” “C:\jdk1.5.0_07\jre\bin\clie
were not recognised
nt\jvm.dll” -XX:MaxPermSize=128m “-Djava.class.path=C:\OracleBI\OC4J_BI\j2ee\hom
e\oc4j.jar” -start oracle.oc4j.loader.boot.BootStrap -description “Oracle BI EE
OC4J Service”
Unrecognised or incorrectly-ordered parameters for install command
The last 4 parameters (from ‘BI’
JavaService install command parameters not valid, or incomplete
Please help me regarding.
Regards,
Joe
February 26, 2008 at 2:22 pm
Joe - I think you have directly copied it. Problem with HTML display. Remove all the double quotes and manually type them again. It should work.
February 26, 2008 at 2:45 pm
Hi Venkat,
Thanks for ur immediate response. After the modifications it is perfect.
Once again thank you.
One small doubt dont we have any find button in OBI.
Regards,
Joe
April 23, 2008 at 8:45 pm
Hi frieds,
when i try this
javaservice -install “Oracle OC4J servisi” “C:\Program Files (x86)\Java\jre1.5.0_09\bin\client\jvm.dll” -XX:MaxPermSize=128m “-Djava.class.path=D:\oracle\bise1\bi\oc4j_bi\j2ee\home\oc4j.jar” -start oracle.oc4j.loader.boot.BootStrap -description “Oracle BI EE OC4J Service”
i got this error,
were not recognised
Unrecognised or incorrectly-ordered parameters for install command
The last 4 parameters (from ‘BI’
JavaService install command parameters not valid, or incomplete
please can you help?
thank you
May 12, 2008 at 10:55 pm
Hi Venkat,
Can you please tell me direct command. I am also seeing the below error.
C:\Documents and Settings\ajoshi\Desktop\JavaService-2.0.10>javaservice -install
were not recognised
“Oracle BI EE OC4J” C:\Program Files\Java\jdk1.5.0_11\jre\bin\client\jvm.dll -X
X:MaxPermSize=128m “-Djava.class.path=D:\Oracle\OracleBI\OC4J_BI\j2ee\home\oc4j.
jar” -start oracle.oc4j.loader.boot.BootStrap -description “Oracle BI EE OC4J Se
rvice”
Unrecognised or incorrectly-ordered parameters for install command
The last 4 parameters (from ‘BI’
JavaService install command parameters not valid, or incomplete
C:\Documents and Settings\ajoshi\Desktop\JavaService-2.0.10>
Thanks
Joshi
May 12, 2008 at 11:04 pm
Hi Venkat,
I got it.
Thanks
Joshi