Pages

Wednesday, August 20, 2014

Oracle HTTP Server

Oracle HTTP Server is the Web server component of Oracle Application Server. It is based on the Apache HTTP Server. Oracle HTTP Server is pre-configured with many modules that
Servers Static and Dynamic Content
Supports Content Generation in many languages
Integrated with oracle web logic server using mod_wl_ohs
Can be used a Proxy Server both Reverse and Forward
Integrated with oracle Web Cache
Supports Oracle Implementation of mod_ssl
Many other Apache modules are bundled

Advantages over Apache
Oracle HTTP server provides more better functionality than Apache Server like,
Better Process management by integrating to OPMN ( Oracle Process manager and Notification Server)
Provides Death Detection and auto-restart
Process are created as,















Both parent and Child Process are treated as one unit , the Parent process is terminated when child process are hung
Integration with Dynamic Monitoring Service which provides performance metrics
Better logging mechanism
Provides integration with Oracle Access Manager
Can Integrate non-oracle Provided modules just like Apache
Oracle PL/SQL ToolKit (mod_plsql) - Execute PL/SQL on DB and return HTML to browsers. Oracle Servlet Engine (mode_ose) - Call Servlets stored in an Oracle DB

Installation
ORACLE_HOME and ORACLE_INSTANCE are 2 important Variables that need to be set. Oracle_Home  location contains the binaries and files that are created at install time and are never changed or updated
Oracle_instances location contains a collection of system components that are managed by OPMN. These are the files that are changed and updated.

Here is the Sequence of steps for the installation
1. Donwload the latest Web Tier Utilities for oracle Downloads ( ofm_webtier_linux_11.1.1.7.0 is the version that iam using)
2. Add Oracle user and oinstall group
[root@localhost ~]# groupadd oinstall
[root@localhost ~]# useradd -g oinstall oracle

[root@localhost ~]# cat /etc/passwd | grep oracle
oracle:x:501:502::/home/oracle:/bin/bash

[root@localhost ~]# cat /etc/group | grep oinstall
oinstall:x:502:

3. Set Limits for Oracle user

vi /etc/security/limits.conf and add

oracle soft nofile 16384
oracle hard nofile 65536

4. Provide the permissions to oracle user where you are installing
chown -R oracle:oinstall /test/u01/app/oracle ( provide your location here )

5. Login as Oracle user , Unzip and execute the “runInstaller” from Disk1 location.
6. It checks for Temp , Swap and Monitor display and once they are passed , it gives us the GUI Console for installing Oracle HTTP Server.
7. Select “Install and Configure” in the “Install and Configure” tab
8. It checks for the Pre-requisites. Make sure all Operating System modules that are necessary are installed like compat-libcap1,libaio-devel etc.
9. Enter the Oracle Middle Ware home and Oracle Home Directory.
10. In the Configure Components, Select “Oracle HTTP Server” and un-check others
11. Provide the Instance Home Location, Instance Name and OHS Component Name
12. Select the Auto Port Configuration.
13. In the next screen it shows all the Configuration information, save the response file for further reference

Once the Installation is complete, add the Env variables as
ORACLE_HOME=/test/u01/app/oracle/middleware/ohs; export ORACLE_HOME
ORACLE_INSTANCE=/test/u01/app/oracle/middleware/ohs/instances/instance1;export ORACLE_INSTANCE

Make sure you provide the location that you installed.

[oracle@localhost bin]$ =/test/u01/app/oracle/middleware/ohs/opmn/bin/opmnctl status
Processes in Instance: instance1
---------------------------------+--------------------+---------+---------
ias-component                    | process-type       |     pid  | status
---------------------------------+--------------------+---------+---------
ohs1                                   | OHS                  |    8201 | Alive

We can use URLs
Oracle HTTP Server URL : http://localhost:7777
Oracle HTTP Server SSL URL : https://localhost:4443

And check whether they are accessible are not.

Issues Faced – While configuring Oracle HTTP server, the pre-requisite check will check for the Monitor

Some times it will fail giving
Checking monitor: must be configured to display at least 256 colors. Actual unknown. <<FAILED

Then make sure you login to root and
DISPLAY=<my ip>:0.0 ; export DISPLAY
root@server [~]# echo $DISPLAY
<my ip>:0.0

Run the xhost command as

[root@localhost ~]# xhost +
access control disabled, clients can connect from any host 

Now login to oracle user and run the installer again.

More to Come, Happy learning :-)

No comments :

Post a Comment