Friday, February 19, 2021

OHS 12c Startup Script for EPM 11.2

The following assumes your OHS is hosted in MS Windows.  An equivalent bash shell script may be easily created to do the same in Linux/Exalytics.  The below assumes you have already executed the OHS storeUserConfig process previously documented on this blog.

SET CWD=%~dp0

REM This script sets up our environment variables.

CALL %CWD%ScriptEnv.bat

sc start "Oracle Weblogic ohs NodeManager (F_Oracle_Middleware_ohs_wlserver)"

start "StartOHS" /wait /i cmd /c %EPM_INSTANCE_HOME%\httpConfig\ohs\bin\startComponent.cmd ohs_component

You're welcome.

Change the "F" in red above to be your EPM system's drive letter.  The variable EPM_INSTANCE_HOME is the path to the instance, such as F:\Oracle\Middleware\user_projects\epmsystem1 and I define it in my custom ScriptEnv.bat.


  1. You may want to check in on the lastinvocation.log (it's really scripts). Using that (with a "little" fixing), you can get rid of the nodemanager completely =)

    1. Hi Deezel, would mind explaining it more. I was to setup my environment like when we use main start script provided by Oracle it should start OHS as well.


  2. This is really helpful. Both the tips from Dave and Deezel.
    Using the lastinvocation I created a start and stop script (with shutdownconsole parameter)
    So now running without nodemanager.

    Something in return,
    in case you use the main 'start & stop EPM system' scripts for the complete EPM stack:
    add a new properties file to the config starter folder


    I guess oracle forgot they can not only start services but also scripts with starter functionality

  3. I guess in above some text was not posted.
    Specify your server and filename incl path to your start and stop scripts. Make sure they are escaped similar as in the other starter properties files

  4. Hey Dave, Great post as usual. Using above script I setup a windows service suing nssm tool however not sure how to setup stop service when we fire stop command in Windows services.

    Also, I was targeting if we create a windows script and adjust Node Manager as dependent for newly create OHS service (using tool) then we start gracefully start and stop OHS and node manager services.

    Any thoughts.



Thank you very much for your interest in this blog! I hope you're finding it helpful.

Please keep comments relevant to the topic in the post, as this blog is not a free-for-all substitute for Oracle Support or traditional consulting. If you have many questions unrelated to the specific topic at hand, consider contacting me on LinkedIn ( so we may discuss the possibility of consulting.

Commenting on posts older than 90 days unfortunately goes into moderation, thanks to spammers who've been hitting this blog. Please have patience, and thanks for your understanding!

Comments including URLs linking back to gambling or other things unrelated to Oracle EPM will be deleted on sight. If you're an EPM consultant and are offering me constructive criticism or a tip, go ahead and DO link back to your blog or firm's website if you so desire.

Thanks again for reading!