Skip to content
Oracle Analytics by Adrian Ward
Oracle Analytics by Adrian Ward

25 Years Experience and Counting

  • Analytics Performance
  • My Profile
  • Publications
  • 5 Minutes of Fame
  • News Posts
  • Technical Posts
Oracle Analytics by Adrian Ward

25 Years Experience and Counting

OC4J as a Service

Posted on February 13, 2008 By Adrian Ward

Following the last post on stopping oc4j from automatic running, you may want to run oc4j as a service, so that is can be added to a batch file that starts all the analytics services.

So, to Run OC4J as a windows service

If you want to run oc4j as a windows service download the open source tool named JavaService.exe from http://javaservice.objectweb.org/ which can create Windows Services for Java Programs, adjust and execute the following command:
javaservice -install “Oracle BI: OC4J Service” “D:jdk1.5.0_09jrebinclientjvm.dll” -XX:MaxPermSize=128m -Xmx512m “-Djava.class.path=d:OracleBIoc4j_bij2eehomeoc4j.jar” -start oracle.oc4j.loader.boot.BootStrap -description “Oracle BI Oc4J Service”

Now you can add to your ‘net start’ commands batch file.

Credit to Andreass in the Majendi team for this.

UPDATE: Venkat has also blogged on this subject, including some screen shots.

adrian.ward@addidici.com
www.addidici.com

Share this:

  • Facebook
  • X
Uncategorized

Post navigation

Previous post
Next post

Comments (6)

  1. Krishnamoorthy says:
    February 14, 2008 at 11:13 pm

    This is really helpful. Thanks a lot.

  2. Venkatakrishnan says:
    February 15, 2008 at 1:35 pm

    Adrian – Such a small world :-). I have now updated my blog entry to reflect yours.

  3. ngerard says:
    July 21, 2008 at 2:34 pm

    Thanks for this good information.

    Just for information.

    You have also a 64 bit version of javaservice which is available only with the release V2.0.7.

    An other good way is to create a schedule task on startup.

  4. nanii says:
    November 22, 2009 at 5:02 am

    Hi
    I tried installing OC4J as windows service. for some reason, I am getting the error as

    ” The Oracle BI OC4J service service on local computer started and then stopped. some services stop automatically if they are not in use by other services or programs.

  5. Ponzy says:
    March 11, 2010 at 8:20 am

    I’m trying to do the same thing but adding “-Dstdstream.filesize=2 -Dstdstream.filenumber=5”, for limiting the log files’ size. I don’t know why, but these 2 paremeters seem to be ignored. If I don’t find a solution I’m going to try with ServiceMill.

  6. a says:
    April 8, 2011 at 12:31 pm

    Hi
    I tried installing OC4J as windows service. for some reason, I am getting the error as

    ” The Oracle BI OC4J service service on local computer started and then stopped. some services stop automatically if they are not in use by other services or programs.

Comments are closed.

©2025 Oracle Analytics by Adrian Ward | WordPress Theme by SuperbThemes