Oracle http server installation on linux

21
PREPARED BY RAVI KUMAR LANKE Page 1 ORACLE HTTP SERVER INSTALLATION ON LINUX

description

Oracle http server installation on linux

Transcript of Oracle http server installation on linux

Page 1: Oracle http server installation on linux

PREPARED BY RAVI KUMAR LANKE Page 1

ORACLE HTTP SERVER INSTALLATION ON LINUX

Page 2: Oracle http server installation on linux

PREPARED BY RAVI KUMAR LANKE Page 2

Page 3: Oracle http server installation on linux

PREPARED BY RAVI KUMAR LANKE Page 3

Page 4: Oracle http server installation on linux

PREPARED BY RAVI KUMAR LANKE Page 4

Page 5: Oracle http server installation on linux

PREPARED BY RAVI KUMAR LANKE Page 5

Page 6: Oracle http server installation on linux

PREPARED BY RAVI KUMAR LANKE Page 6

Page 7: Oracle http server installation on linux

PREPARED BY RAVI KUMAR LANKE Page 7

Page 8: Oracle http server installation on linux

PREPARED BY RAVI KUMAR LANKE Page 8

Page 9: Oracle http server installation on linux

PREPARED BY RAVI KUMAR LANKE Page 9

Page 10: Oracle http server installation on linux

PREPARED BY RAVI KUMAR LANKE Page 10

Page 11: Oracle http server installation on linux

PREPARED BY RAVI KUMAR LANKE Page 11

Page 12: Oracle http server installation on linux

PREPARED BY RAVI KUMAR LANKE Page 12

Page 13: Oracle http server installation on linux

PREPARED BY RAVI KUMAR LANKE Page 13

Page 14: Oracle http server installation on linux

PREPARED BY RAVI KUMAR LANKE Page 14

Page 15: Oracle http server installation on linux

PREPARED BY RAVI KUMAR LANKE Page 15

Page 16: Oracle http server installation on linux

PREPARED BY RAVI KUMAR LANKE Page 16

Page 17: Oracle http server installation on linux

PREPARED BY RAVI KUMAR LANKE Page 17

Page 18: Oracle http server installation on linux

PREPARED BY RAVI KUMAR LANKE Page 18

Page 19: Oracle http server installation on linux

PREPARED BY RAVI KUMAR LANKE Page 19

Page 20: Oracle http server installation on linux

PREPARED BY RAVI KUMAR LANKE Page 20

Post-Install Checks

If you would like to change the port after the installation,

edit$ORACLE_INSTANCE/config/OHS/<component_name>/httpd.conf and change the listen

port. If the listen port is less than 1024, then you need to set uid for root on .apachectl. In Unix,

ports less than 1024 requires root privileges.

If set uid is not set for .apachectl, you would see the following error messages:

/oracle/middleware/ohs/ohs/bin/apachectl startssl: execing httpd

[Wed Nov 30 18:58:17 2011] [warn] Errors will be logged into

/oracle/middleware/instances/ohs/diagnostics/logs/OHS/ohs1/ohs1.log

[OHS11g@oam10 ~]$cat /oracle/middleware/instances/ohs/diagnostics/logs/OHS/ohs1/ohs1.log

[2011-11-30T18:58:15.8385-05:00] [OHS] [INCIDENT_ERROR:32] [OHS-9999] [worker.c] [host_id:

oam10.freeoraclehelp.com] [host_addr: 192.168.1.69] [pid: 31982] [tid: 3086771936] [user: oracle] [VirtualHost: main]

(13)Permission denied: make_sock: could not bind to address [::]:80

[2011-11-30T18:58:15.8385-05:00] [OHS] [INCIDENT_ERROR:32] [OHS-9999] [worker.c] [host_id:

oam10.freeoraclehelp.com] [host_addr: 192.168.1.69] [pid: 31982] [tid: 3086771936] [user: oracle] [VirtualHost: main]

(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80

[2011-11-30T18:58:15.8386-05:00] [OHS] [INCIDENT_ERROR:20] [OHS-9999] [worker.c] [host_id:

oam10.freeoraclehelp.com] [host_addr: 192.168.1.69] [pid: 31982] [tid: 3086771936] [user: oracle] [VirtualHost: main]

no listening sockets available, shutting down

[2011-11-30T18:58:15.8386-05:00] [OHS] [ERROR:32] [OHS-9999] [worker.c] [host_id: oam10.freeoraclehelp.com]

[host_addr: 192.168.1.69] [pid: 31982] [tid: 3086771936] [user: oracle] [VirtualHost: main] Unable to open logs

[OHS11g@oam10 ~]$

So, set the permissions as below:

cd $ORACLE_HOME/Apache/Apache/bin

chown root .apachectl

chmod 6750 .apachectl

[root@oam10 Response]# cd /oracle/middleware/ohs/ohs/bin

[root@oam10 bin]# ls -l .apachectl

-rwxr-x--- 1 oracle oinstall 465658 Oct 27 2009 .apachectl

[root@oam10 bin]# chown root .apachectl

[root@oam10 bin]# chmod 6750 .apachectl

Page 21: Oracle http server installation on linux

PREPARED BY RAVI KUMAR LANKE Page 21

[root@oam10 bin]# ls -l .apachectl

-rwsr-s--- 1 root oinstall 465658 Oct 27 2009 .apachectl

[root@oam10 bin]#

Startup and Shutdown Start or Stop of Oracle HTTP Server is managed by opmnctl. Make sure that environment is

sourced right before calling opmnctl stopall or startall or status.

[oracle@oam10 ~]$ cat ohs.env

ORACLE_HOME=/oracle/middleware/ohs ; export ORACLE_HOME

ORACLE_INSTANCE=/oracle/middleware/instances/ohs ; export ORACLE_INSTANCE

TNS_ADMIN=$ORACLE_HOME/network/admin ; export TNS_ADMIN

PATH=$ORACLE_HOME/bin:$ORACLE_INSTANCE/bin:$PATH:. ; export PATH

export PS1="[OHS11g@\h \W]\$"

alias p='sqlplus "/ as sysdba" '

[oracle@oam10 ~]$ . ./ohs.env

[OHS11g@oam10 ~]$opmnctl stopall

opmnctl stopall: stopping opmn and all managed processes...

[OHS11g@oam10 ~]$opmnctl startall

opmnctl startall: starting opmn and all managed processes...

[OHS11g@oam10 ~]$opmnctl status

Processes in Instance: ohs_instance

---------------------------------+--------------------+---------+---------

ias-component | process-type | pid | status

---------------------------------+--------------------+---------+---------

ohs1 | OHS | 32763 | Alive

[OHS11g@oam10 ~]$