How to find Oracle OHS Instance name

Oracle HTTP Server called OHS consists of one or more instances which is a component of OHS. You can check instance name using below methods.

Steps to find the OHS instance name.

OHS can be installed either standalone or with Weblogic collocated mode. Below are the procedure for standalone. If OHS installed with weblogic then goto:

$weblogic_home/OHS/user_projects/domains/<domain_name>/config

STEP 1: Goto below directory under OHS home location.
[oracle@orahow config]$ export ORACLE_HOME=/scratch/u01/Oracle/OHS
[oracle@orahow config]$ export PATH=$ORACLE_HOME/bin:$PATH
[oracle@orahow config]$ cd /scratch/u01/Oracle/OHS/user_projects/domains/<Domain_name>/config
STEP 2: open config.xml file to check the instance_name.
[gbuora@orahow config]$ ls -lrt
total 12
drwxr-x--- 2 gbuora dba 4096 May 10 2018 nodemanager
drwxr-x--- 3 gbuora dba 4096 May 10 2018 fmwconfig
-rw-r----- 1 gbuora dba 2261 May 11 2018 config.xml
STEP 3: Instance name in Config.xml fileĀ 
<system-component>
<name>ohs1</name>
<machine>localmachine</machine>
</system-component>
<system-component>
<name>ohs2</name>
<machine>localmachine</machine>
</system-component>
<system-component>
<name>ohs3</name>
<machine>localmachine</machine>
</system-component>
<system-component>
<name>ohs4</name>
<machine>localmachine</machine>
</system-component>
STEP 4: You can also check folders with instance_name under below directory
[oracle@orahow servers]$ pwd
/scratch/u01/Oracle/OHS/user_projects/domains/<domain_name>/servers
[gbuora@den01dxj servers]$ ls -lrt
total 16
drwxr-x--- 5 oracle dba 4096 May 18 2018 ohs1
drwxr-x--- 5 oracle dba 4096 May 18 2018 ohs2
drwxr-x--- 5 oracle dba 4096 May 20 2018 ohs3
drwxr-x--- 5 oracle dba 4096 May 25 2018 ohs4

Using above method you can check the OHS instance name. You can also check using em.