This ought to be a simpler post than what I usually write.
The topic of how to start Oracle HTTP Server ("OHS") 12c in Hyperion / Oracle EPM 11.2.x comes up frequently. I've previously posted about the little trick, buried within the EPM 11.2.x install/config guide, on how to save the WebLogic password for OHS so you aren't prompted every time you try to start up OHS.
"But hey! Dave, how do we start and stop OHS in a distributed MS Windows Server environment when OHS doesn't have its own Windows service anymore? The good old NSSM trick we use for WebLogic Admin Server doesn't work for OHS!"
An excellent question.
Login to each OHS host server in your distributed environment as your EPM network service account. Run the "storeuserconfig" trick to save epm_admin's password in your network service account's profile on the C drive. Search the install/config guide for the text "storeuserconfig" and it'll take you directly to the needed command syntax. Every member on your Hyperion support team who wants to start/stop services using their own distinct userID needs to perform this step. This is a one-time-only step until such time as your security team forces you to change the WebLogic epm_admin password.
Now on your OHS server(s) foreign to where you run your master start/stop scripts from (you are running custom start/stop scripts, yes?), create a simple little DOS batch script like this:
sc start "Oracle Weblogic ohs NodeManager (D_Oracle_Middleware_ohs_wlserver)"
start "StartOHS" /wait /i cmd /c %EPM_INSTANCE_HOME%\httpConfig\ohs\bin\startComponent.cmd ohs_component
Replace D_Oracle in that first command with the drive letter where you installed. e.g. E:_Oracle, F:_Oracle or whatever is appropriate. The drive letter is unfortunately embedded within the Oracle Node Manager 12c Windows service name.
Replace %EPM_INSTANCE_HOME% with the fully qualified path to your Oracle EPM Instance, which is DRIVE:\Oracle\Middleware\user_projects\epmsystem1 by default.
Note: the final line beginning with start "StartOHS" is all one line all the way through ohs_component. Blogger is linewrapping it in an undesirable way.
Save this script as DRIVE:\scripts\startohs.bat or whatever you want.
Replace startComponnent.cmd with stopComponent.cmd and now you have your stopohs.bat script as well!
Finally, use this to invoke it remotely from your master start/stop scripts:
wmic /node:%FDNHOST2% process call create "DRIVE:\Scripts\startohs.bat"
wmic is a built-in Windows command. Provided your userID is an administrator on the foreign server, you may use this syntax to invoke any batch file, command, or executable you wish.
No comments:
Post a Comment
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!