In this blog i’m covering some basics on Oracle HTTP server(OHS) like
- Checking OHS status.
- Starting, stopping and restarting OHS.
- Creating an Oracle HTTP server component.
- Deleting an Oracle HTTP server component.
Checking OHS Status
We can determine the status of OHS by using the opmnctl command
$ORACLE_INSTANCE/bin/opmnctl status Processes in Instance: instance1 ---------------------------------+--------------------+---------+---------+------- ias-component | process-type | pid | status | Ports ---------------------------------+--------------------+---------+---------+------- ohs1 | OHS | 4789 | Alive | https:1000, https:4444, http:7778
Starting, Stopping and restarting OHSTo Start use: >$ORACLE_INSTANCE/bin/opmnctl startallTo Stop use: >$ORACLE_INSTANCE/bin/opmnctl stopproc process-type=OHSor use$ORACLE_INSTANCE/bin/opmnctl stopallTo restart: all Oracle HTTP Server components use:$ORACLE_INSTANCE/bin/opmnctl restartproc process-type=OHSCreating an Oracle HTTP server componentThe syntax for creating a Oracle HTTP server component is$ORACLE_INSTANCE/bin/opmnctl createcomponent -componentType OHS -componentName component_nameFor eg: to create an Oracle HTTP Server component namedohs1, use the following command:>$ORACLE_INSTANCE/bin/opmnctl createcomponent -componentType OHS -componentName ohs1When you create the Oracle HTTP Server component, ports are automatically assigned. However, you can use the following parameters to specify the ports of your choice:-listenPort: HTTP listening port-sslPort: HTTPS (SSL) listening port-proxyPort: Proxy MBean port internally used by Oracle HTTP Server to communicate with Fusion Middleware ControlDeleting an Oracle HTTP server componentThe syntax for deleting an Oracle HTTP server component using opmnctl is>$ORACLE_INSTANCE/bin/opmnctl deletecomponent -componentName component_nameFor eg: to delete an Oracle HTTP Server component named ohs1 use the following command:>$ORACLE_INSTANCE/bin/opmnctl deletecomponent -componentName ohs1
No comments:
Post a Comment