Oracle
  Home arrow Oracle arrow Page 2 - Managing the Oracle HTTP Server
Dev Shed Forums 
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Sun Developer Network 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Moblin 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ORACLE

Managing the Oracle HTTP Server
By: McGraw-Hill/Osborne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 4
    2007-01-11

    Table of Contents:
  • Managing the Oracle HTTP Server
  • The Oracle HTTP Server Processing Model
  • Oracle HTTP Server Installation and Configuration
  • OHS Directives

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Managing the Oracle HTTP Server - The Oracle HTTP Server Processing Model


    (Page 2 of 4 )

    Once you start the Oracle HTTP server, it listens for connection requests and passes them on to the appropriate service. The spawning of these listener processes differs in UNIX and Windows servers. In a UNIX /Linux system, the OHS control process launches several copies of itself, known as child processes, to listen to user's requests. The main process runs as the root user and the child processes under a less privileged user account, usually a UNIX user named "nobody. " Each child process is another instance of the httpd program, as you can see from the output below.

    [] $root 12928 1 0 Apr 11 ? 36:06 /opt/hpws/apache/bin/httpd -d
    /opt/hpws/apache -k start

    awuser

     7898

    22238

    0

    May 16

    ?

     0:14

    /opt/apache/bin/httpd

    -DSSL

    awuser

    12653

    22238

    0

    May 19

    ?

     0:12

    /opt/apache/bin/httpd

    -DSSL

    awuser

    22249

    22238

    0

    May 16

    ?

     0:14

    /opt/apache/bin/httpd

    -DSSL

    awuser

    22248

    22238

    0

    May 16

    ?

     0:15

    /opt/apache/bin/httpd

    -DSSL

    awuser

    22250

    22238

    0

    May 16

    ?

     0:15

    /opt/apache/bin/httpd

    -DSSL

      root

    22238

        1

    0

    May 16

    ?

    18:55

    /opt/apache/bin/httpd

    -DSSL

    $

    On a Windows server, there is a multithreaded implementation of the HTTP server process, which involves a single control process and just one child process; it creates multiple threads to listen to connection requests. Thus, the child processes actually aren't separate processes but threads within a single child process.

    Under both UNIX and Windows systems, the httpd.pid
    file, located in the $ORACLE_HOME/Apache/Apache/logs directory, contains the process ID of the original OHS process.

    Starting and Stopping the Oracle HTTP Server

    You start and stop the OHS with the help of the opmnctl tool, which was explained in Chapter 3. When you use the startall command, all OracleAS components, including the OHS, are started by OPMN. Similarly, by using the stopall command, you can stop all the OracleAS processes. You can also start just the OHS server itself using the following command:

      $ opmnctl startproc ias-component=HTTP_Server

    You stop the OHS component by using the following opmnctl command:

      $ opmnctl stopproc ias-component=HTTP_Server

    Although you can start and stop the OHS processes with the opmcntl command as shown here, it's best to start OHS as part of the entire component stack of the OracleAS instance, because OHS is a key component of the OracleAS instance and you may run into problems by starting and stopping just the OHS by itself. You may also reconfigure, start, and stop the OHS server from the Application Server control console.

    on the job:  You mustn't use the apachectl script, traditionally used to start up the Apache Web server, to start the OHS.

    More Oracle Articles
    More By McGraw-Hill/Osborne


       · This article is an excerpt from the book "Oracle 10g Application Server Exam Guide,"...
     

    Buy this book now. This article is excerpted from chapter five of the book Oracle 10g Application Server Exam Guide, written by Sam Alapati (McGraw-Hill, 2006; ISBN: 0072262710). Check it out today at your favorite bookstore. Buy this book now.

       

    ORACLE ARTICLES

    - Implementing and Using Oracle`s Restore Poin...
    - Tuning PL/SQL Code
    - Debugging PL/SQL Code
    - Testing PL/SQL Code
    - Working With PL/SQL Code
    - Conditional Compilation for Oracle Database ...
    - Compile-Time Warnings for Oracle DB 10g
    - Compiling PL/SQL Code for an Oracle Database
    - Troubleshooting PL/SQL Code
    - Managing PL/SQL Code
    - Data Manipulation and More for HTML DB Appli...
    - Oracle Database Fundamentals
    - Adding Processes to HTML DB Applications
    - Adding Computations, Processes, and Validati...
    - Sub-templates and More with Oracle HTML DB





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
    Stay green...Green IT