Oracle http server installation on linux

1,241 views
1,005 views

Published on

Oracle http server installation on linux

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,241
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
37
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Oracle http server installation on linux

  1. 1. ORACLE HTTP SERVER INSTALLATION ON LINUX PREPARED BY RAVI KUMAR LANKE Page 1
  2. 2. PREPARED BY RAVI KUMAR LANKE Page 2
  3. 3. PREPARED BY RAVI KUMAR LANKE Page 3
  4. 4. PREPARED BY RAVI KUMAR LANKE Page 4
  5. 5. PREPARED BY RAVI KUMAR LANKE Page 5
  6. 6. PREPARED BY RAVI KUMAR LANKE Page 6
  7. 7. PREPARED BY RAVI KUMAR LANKE Page 7
  8. 8. PREPARED BY RAVI KUMAR LANKE Page 8
  9. 9. PREPARED BY RAVI KUMAR LANKE Page 9
  10. 10. PREPARED BY RAVI KUMAR LANKE Page 10
  11. 11. PREPARED BY RAVI KUMAR LANKE Page 11
  12. 12. PREPARED BY RAVI KUMAR LANKE Page 12
  13. 13. PREPARED BY RAVI KUMAR LANKE Page 13
  14. 14. PREPARED BY RAVI KUMAR LANKE Page 14
  15. 15. PREPARED BY RAVI KUMAR LANKE Page 15
  16. 16. PREPARED BY RAVI KUMAR LANKE Page 16
  17. 17. PREPARED BY RAVI KUMAR LANKE Page 17
  18. 18. PREPARED BY RAVI KUMAR LANKE Page 18
  19. 19. PREPARED BY RAVI KUMAR LANKE Page 19
  20. 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 PREPARED BY RAVI KUMAR LANKE Page 20
  21. 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 ~]$ PREPARED BY RAVI KUMAR LANKE Page 21

×