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.

5 comments:

  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 =)

    ReplyDelete
    Replies
    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.

      Thanks.

      Delete
  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

    type=script
    start.script=
    stop.script=
    checker=j2ee
    wait=true
    interval=5000
    timeout=500000
    host=
    server.port=19000
    validation.context=/index.html

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

    ReplyDelete
  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

    ReplyDelete
  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 nssm.cc tool) then we start gracefully start and stop OHS and node manager services.

    Any thoughts.

    Thanks,
    Vikram

    ReplyDelete

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 (https://www.linkedin.com/in/daveshay) 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!