Oracle® Process Manager and Notification Server Administrator's Guide 10g Release 3 (10.1.3.1.0) Part Number B28944-01 |
|
|
View PDF |
This chapter provides command-line examples on how to use OPMN for Oracle Application Server. It features the following topics:
Section 5.6, "Starting and Stopping a Multi-Oracle Application Server Instance Environment"
Section 5.7, "Starting a Component on an Oracle Application Server Cluster"
OPMN does not depend on any other Oracle Application Server component being up and running before it can be started and used. The OPMN server should be started as soon as possible after turning on the host.
Use the following command to start OPMN without starting other Oracle Application Server components:
prompt > opmnctl start
Use the following command to start OPMN-managed processes for a local Oracle Application Server instance:
prompt > opmnctl startproc
Use the following command to stop OPMN-managed processes for a local Oracle Application Server instance:
prompt > opmnctl stopproc
Note: Without arguments theopmnctl startproc and opmnctl stopproc commands start and stop all OPMN-managed processes. |
Use the following command to start OPMN managed processes for a remote Oracle Application Server instance:
prompt > opmnctl @instance:oracleas2.foo.com startproc
Use the following command to stop OPMN managed processes for a remote Oracle Application Server instance:
prompt > opmnctl @instance:oracleas2.foo.com stopproc
Use the following command to start Oracle Internet Directory in a local Oracle Application Server instance:
prompt > opmnctl startproc ias-component=OID
Use the following command to stop Oracle Internet Directory in a local Oracle Application Server instance:
prompt > opmnctl stopproc ias-component=OID
Use the following command to start the performance_server process-type
in a local Oracle Application Server instance:
prompt > opmnctl startproc ias-component=OC4J process-type=performance_server
Use the following command to stop the performance_server process-type
in a local Oracle Application Server instance:
prompt > opmnctl stopproc ias-component=OC4J process-type=performance_server
Use the following command to start a multi-Oracle Application Server instance environment from local instance oracleas1:
prompt > opmnctl @instance:oracleas1.foo.com:oracleas2.bar.com startproc
This command starts all processes of all components on both instances specified with the <scope>
argument. Notice that the local instance oracleas1
is specified in the command.
Use the following command to stop a multi-Oracle Application Server instance environment from local instance oracleas1
:
prompt > opmnctl @instance:oracleas1.foo.com:oracleas2.bar.com stopproc
This command stops all processes of all components on all two instances specified with the <scope>
argument. Notice that the local instance oracleas1
is specified in the command.
Note: You must also indicate your local Oracle Application Server instance when using the@instance <scope> with other Oracle Application Server instances. Commands with a <scope> argument only operates on the instances described by the <scope> argument. The command will only be applied to the local instance if it is described in the <scope> argument. |
Use the following command to start the same Oracle Application Server component on multiple Oracle Application Server instances:
prompt > opmnctl @cluster startproc ias-component=HTTP_Server
Use the following command to stop the same Oracle Application Server component on multiple Oracle Application Server instances:
prompt > opmnctl @cluster stopproc ias-component=HTTP_Server
Use the following command to start an OC4J group called COLORS
on a cluster of Oracle Application Server instances:
prompt > opmnctl @cluster startproc oc4j-group=colors
Use the following command to stop an OC4J group called "green" on a cluster of Oracle Application Server instances:
prompt > opmnctl @cluster stopproc oc4j-group=colors
Refer to Section 3.2, "OC4J Groups" for more information about the OC4J groups.