Tuesday, 9 April 2013

How to check Oracle HTTP Server (OHS) component version?


How to check Oracle HTTP Server (OHS) component version?

Below are a couple of ways to check with Oracle HTTP Server (OHS) version used. There may be more ways to check it.

1) Go to $OHS_HOME/bin

Run ./httpd -version

It should return result as below based on the version of OHS


$ ./httpd -version
Server version: Oracle-HTTP-Server/2.2.15 (Unix)
Server built:   Apr  2 2011 23:51:27
Server label:   APACHE_11.1.1.5.0_LINUX.X64_110325.2001

Please note:

Ensure LD_LIBRARY_PATH variable is set and libaprutil-1.so.0 is present in that location.

Else you will get error as below when running httpd -version command.


./httpd: error while loading shared libraries: libaprutil-1.so.0: cannot open shared object file: No such file or directory

2) Check in Enterprise Manager

- Login to Enterprise Manager console /em.
- Select ohs component (eg: ohs1, ohs2 ....)
- Right click on it and select General Information
- You will see the version of OHS
- However this version info may not be reliable as it may show you can incorrect version in EM specially after upgrades if all upgrade steps are not correctly followed.


Even if you have run below commands after OHS upgrade, sometimes incorrect version may show up in EM.

 ./opmnctl unregisterinstance

 ./opmnctl redeploy

 ./opmnctl registerinstance

1 comment:

  1. doesn't work for OHS 12c
    Any update would be appreciated

    ReplyDelete