Advanced OHS Configuration in Oracle Forms 12.2.1.2

In this blog entry I will describe two topics:

  • Configuration OHS to listen on the Port 80
  • Configuration access to the AdminConsole / EM via HTTP Port

Configuration OHS to listen on the Port 80

After the initial installation of Forms is the OHS configured for the listening on the Port 7777. If you would change the listening to the Port 80 execute following steps

Change Permissions for the File launch (as root!!!):

chown root ${MIDDLEWAR_HOME}/Oracle_Home/ohs/bin/launch
chmod 4750 ${MIDDLEWAR_HOME}/Oracle_Home/ohs/bin/launch

Edit the file httpd.conf

Navigate to the Directory ${DOMAIN_HOME}/config/fmwconfig/components/OHS/instances/ohs1 and edit the datei httpd.conf:

cd ${DOMAIN_HOME}/config/fmwconfig/components/OHS/instances/ohs1

Save the file httpd.comf:

cp httpd.conf httpd.conf_orig

Change Value for „Listen“:

Old:

Listen host03.example.com:7777

New:

Listen host03.example.com:80

Add below „Listen“ two new lines with OS user and group (owner of the forms installation):

User oracle
Group oinstall

Restart OHS via NodeManager and WLST

Start wlst:

${MIDDLEWARE_HOME}/Oracle_Home/oracle_common/common/bin/wlst.sh

Connect to NodeManager:

wlst> nmConnect('weblogic','welcome1', 'host03.example.com,'5556','forms_domain','u01/app/oracle/user_projects/domains/forms_domain')

Stop OHS Component:

wls:/nm/forms_domain> nmKill(serverName='ohs1', serverType='OHS')

Start OHS Component:

wls:/nm/forms_domain> nmStart(serverName='ohs1', serverType='OHS')

Now is the OHS configured for the listening on the port 80.

Configuration access to the AdminConsole / EM via HTTP Port

Per default you can access the WebLogic Adminconsole via Port of the AdminServer (e.g.: 7001).

If you decide to access the Adminconsole or the Enterprise Manager Fusion Control via OHS you may configure the module mod_wl_ohs.

You can take this via Enterprise Manager Fusion Control or edit configuration file. I will describe the second option.

Edit the file mod_wl_ohs.comf

Navigate to the Directory ${DOMAIN_HOME}/forms_domain/config/fmwconfig/components/OHS/instances/ohs1 and edit the file mod_wl_ohs.conf:

cd /u01/app/oracle/user_projects/domains/forms_domain/config/fmwconfig/components/OHS/instances/ohs1

Save the file:

cp mod_wl_ohs.conf mod_wl_ohs.conf_orig

Edit the file mod_wl_ohs.conf (new lines: red marked):

# NOTE : This is a template to configure mod_weblogic.
LoadModule weblogic_module "${PRODUCT_HOME}/modules/mod_wl_ohs.so"
# This empty block is needed to save mod_wl related configuration from EM to this file when changes are made at the Base Virtual Host Level


#  WebLogicHost 
#  WebLogicPort 
#  MatchExpression *.jsp
WebLogicHost host03.example.com


SetHandler weblogic-handler
WebLogicPort 9002



SetHandler weblogic-handler
WebLogicPort 9001



 SetHandler weblogic-handler
 WebLogicPort 7001



 SetHandler weblogic-handler
 WebLogicPort 7001




# 
# SetHandler weblogic-handler
# PathTrim /weblogic
# ErrorPage http:/WEBLOGIC_HOME:WEBLOGIC_PORT/
#

Restart OHS via NodeManager and WLST

Start wlst:

${MIDDLEWARE_HOME}/Oracle_Home/oracle_common/common/bin/wlst.sh

Connect to NodeManager:

wlst> nmConnect('weblogic','welcome1', 'host03.example.com,'5556','forms_domain','u01/app/oracle/user_projects/domains/forms_domain')

Stop OHS Component:

wls:/nm/forms_domain> nmKill(serverName='ohs1', serverType='OHS')

Start OHS Component:

wls:/nm/forms_domain> nmStart(serverName='ohs1', serverType='OHS')

Now you are able to access the WebLogic Adminconsole via HTTP Port:

http://host03.example.com/console

Advertisements

Autor: Neselovskyi, Borys

Oracle Database / Middleware / Engineered System Solution Architect

2 Kommentare zu „Advanced OHS Configuration in Oracle Forms 12.2.1.2“

Kommentar verfassen

Trage deine Daten unten ein oder klicke ein Icon um dich einzuloggen:

WordPress.com-Logo

Du kommentierst mit Deinem WordPress.com-Konto. Abmelden / Ändern )

Twitter-Bild

Du kommentierst mit Deinem Twitter-Konto. Abmelden / Ändern )

Facebook-Foto

Du kommentierst mit Deinem Facebook-Konto. Abmelden / Ändern )

Google+ Foto

Du kommentierst mit Deinem Google+-Konto. Abmelden / Ändern )

Verbinde mit %s