If you have registered Oracle HTTP Server (OHS) with Domain, you can easily find the version through EM console.
Following steps will help you, if you want to find it through CLI.
Steps:
1. Check ORACLE_HOME and LD_LIBRARY_PATH environment variables.
echo $ORACLE_HOME
echo $LD_LIBRARY_PATH
2. If environment variables not set, set as below
export ORACLE_HOME=<Directory where OHS is installed>
Ex: export ORACLE_HOME=<FMW_HOME>/ohs_111
For 10g & 11g: Includes OPMN lib directory
export LD_LIBRARY_PATH=$ORACLE_HOME/ohs/lib:$ORACLE_HOME/opmn/lib:$ORACLE_HOME/lib:$LD_LIBRARY_PATH
For 12c:
export LD_LIBRARY_PATH=$ORACLE_HOME/ohs/lib:$ORACLE_HOME/lib:$LD_LIBRARY_PATH
3. Go to ORACLE_HOME/ohs/bin directory
cd $ORACLE_HOME/ohs/bin
Ex: cd <FMW_HOME>/ohs_111/ohs/bin
4. Execute below command to get OHS version
./httpd.worker -version
Sample Output:
10g:
Server version: Oracle-Application-Server-10g/10.1.3.1.0 Oracle-HTTP-Server
Server built: Sep 18 2006 16:11:17
11g:
Server version: Oracle-HTTP-Server/2.2.21 (Unix)
Server built: Nov 19 2011 01:19:35
Server label: APACHE_11.1.1.6.0_LINUX.X64_111109.2001
12c:
Server version: Oracle-HTTP-Server/2.2.22 (Unix)
Server built: May 13 2014 08:22:41
Server label: APACHE_12.1.3.0.0_LINUX.X64_140513.0701
Errors:
If you receive below errors, LD_LIBRARY_PATH variable not set properly.
Following steps will help you, if you want to find it through CLI.
Steps:
1. Check ORACLE_HOME and LD_LIBRARY_PATH environment variables.
echo $ORACLE_HOME
echo $LD_LIBRARY_PATH
2. If environment variables not set, set as below
export ORACLE_HOME=<Directory where OHS is installed>
Ex: export ORACLE_HOME=<FMW_HOME>/ohs_111
For 10g & 11g: Includes OPMN lib directory
export LD_LIBRARY_PATH=$ORACLE_HOME/ohs/lib:$ORACLE_HOME/opmn/lib:$ORACLE_HOME/lib:$LD_LIBRARY_PATH
For 12c:
export LD_LIBRARY_PATH=$ORACLE_HOME/ohs/lib:$ORACLE_HOME/lib:$LD_LIBRARY_PATH
3. Go to ORACLE_HOME/ohs/bin directory
cd $ORACLE_HOME/ohs/bin
Ex: cd <FMW_HOME>/ohs_111/ohs/bin
./httpd.worker -version
Sample Output:
10g:
Server version: Oracle-Application-Server-10g/10.1.3.1.0 Oracle-HTTP-Server
Server built: Sep 18 2006 16:11:17
11g:
Server version: Oracle-HTTP-Server/2.2.21 (Unix)
Server built: Nov 19 2011 01:19:35
Server label: APACHE_11.1.1.6.0_LINUX.X64_111109.2001
12c:
Server version: Oracle-HTTP-Server/2.2.22 (Unix)
Server built: May 13 2014 08:22:41
Server label: APACHE_12.1.3.0.0_LINUX.X64_140513.0701
Errors:
If you receive below errors, LD_LIBRARY_PATH variable not set properly.
- ./httpd.worker: error while loading shared libraries: libaprutil-1.so.0: cannot open shared object file: No such file or directory
- ./httpd.worker: error while loading shared libraries: libiau.so: cannot open shared object file: No such file or directory
Patch List (11g)
1. Set ORACLE_HOME
export ORACLE_HOME=<Directory where OHS is installed>
Ex: export ORACLE_HOME=<FMW_HOME>/ohs_111
2. Go to OPatch directory
cd $ORACLE_HOME/OPatch
3. Execute below OPatch command
./opatch lsinventory -detail
Ex: export ORACLE_HOME=<FMW_HOME>/ohs_111
2. Go to OPatch directory
cd $ORACLE_HOME/OPatch
3. Execute below OPatch command
./opatch lsinventory -detail
Good stuff.. thanks a lot
ReplyDelete
ReplyDeletePerfectly! Thank you for sharing
Richard Brown dataroom software
Nice one :)
ReplyDeleteGracias, desde caracas venezuela y en español
ReplyDelete