Business Intelligence - Oracle

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.

8 Responses to “Oracle BI EE 10.1.3.3/2 - Creating Windows Service for BI EE OC4J”

  1. Adrian ward Says:

    Copycat! I blogged about this yesterday. :)

  2. Venkatakrishnan J Says:

    Ouch. Strange that the google reader never showed your blog entry earlier. I have now updated the blog entry to reflect yours.

  3. Joe Says:

    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
    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’ ;) were not recognised
    JavaService install command parameters not valid, or incomplete

    Please help me regarding.

    Regards,
    Joe

  4. Venkatakrishnan J Says:

    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.

  5. Joe Says:

    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

  6. Ugur MIHCI Says:

    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,
    Unrecognised or incorrectly-ordered parameters for install command
    The last 4 parameters (from ‘BI’ ;) were not recognised
    JavaService install command parameters not valid, or incomplete

    please can you help?

    thank you

  7. Arjun Says:

    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
    “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’ ;) were not recognised
    JavaService install command parameters not valid, or incomplete
    C:\Documents and Settings\ajoshi\Desktop\JavaService-2.0.10>

    Thanks
    Joshi

  8. Arjun Says:

    Hi Venkat,
    I got it.
    Thanks
    Joshi

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>