第二章:管理工具
關鍵兩個:OEM和opmn命令:
2.1.1 Managing Oracle Application Server with Oracle Enterprise Manager 10g Application Server Control
Oracle Enterprise Manager 10g Application Server Control is installed with every instance of Oracle Application Server. As a result, you can immediately begin managing your application server and its components from your Web browser.
The Enterprise Manager home pages make it easy to locate the most important monitoring data and the most commonly used administrative functions—all from your Web browser.
這是個好東西,并且它提供的幫助更是個好東西。
2.1.2 Managing Oracle Application Server Using the OPMN Command Line
You can also use the opmnctl command-line tool, which provides a command-line interface to Oracle Process Manager and Notification Server (OPMN). For example, you can use this command line (opmnctl) to:
l Start and stop applications and application server instances
l Associate two or more application server instances to form a cluster
l Display a summary of the instances that are part of a cluster
2.1.3 Managing Oracle Application Server Using the admin_client.jar Utility
這個用處不大
第三章:Starting and Stopping
3.2 Starting and Stopping Application Server Instances
3.2.1 Starting a Middle-Tier Instance
To start a middle-tier instance:
If the middle-tier instance is associated with OracleAS Infrastructure services, such as Oracle Identity Management, make sure the services are started. See Section 3.4.3 for more information.
Start the middle-tier components:
(UNIX) ORACLE_HOME/opmn/bin/opmnctl startall
(Windows) ORACLE_HOME\opmn\bin\opmnctl startall
This command starts OPMN and all OPMN-managed processes such as Oracle HTTP Server, OC4J instances, and the Application Server Control Console.
3.2.2 Stopping a Middle-Tier Instance
(UNIX) ORACLE_HOME/opmn/bin/opmnctl stopall
(Windows) ORACLE_HOME\opmn\bin\opmnctl stopall
3.3 Starting and Stopping Components
opmnctl: A command-line tool.
Application Server Control Console: A Web-based tool. (OEM)
3.3.1 Starting and Stopping Components Using opmnctl
You can use the opmnctl command-line tool to start and stop components. It is located in the following directory:
(UNIX) ORACLE_HOME/opmn/bin
(Windows) ORACLE_HOME\opmn\bin
To start, stop, or restart a component using opmnctl:
opmnctl stopproc ias-component=component
opmnctl startproc ias-component=component
opmnctl restartproc ias-component=component
For example, the following command starts OracleAS Wireless at the <process-set> level:
prompt > opmnctl startproc ias-component=wireless process-type=alert_server process-set=alert_instance_1
The following command restarts OC4J at the <process-type> level:
prompt > opmnctl restartproc ias-component=OC4J process-type=home
The following command stops Oracle HTTP Server at the <ias-component> level:
prompt > opmnctl stopproc ias-component=HTTP_Server
Enter one of the following commands to obtain additional information:
prompt > opmnctl usage startproc
在我安裝的環境里,通過上面一行我們從幫助中找到:
Values for the target attributes (ias-instance, ias-component,
process-type and process-set) should be the same as the id
value of each attribute specified in opmn.xml.
從opmn.xml可以找到這些ias-component,也可以通過命令:opmnctl status
To start, stop, or restart the sub-process of a component:
opmnctl stopproc process-type=process
opmnctl startproc process-type=process
opmnctl restartproc process-type=process
To start, stop, or restart an application, such as Application Server Control:
opmnctl startproc application=app_name
opmnctl stopproc application=app_name
opmnctl restartproc application=app_name
To view the status of components and processes:
[oracle@ias ~]$ opmnctl status
Processes in Instance: ias.ias
--------------------------------------+--------------------+---------+---------
ias-component | process-type | pid | status
--------------------------------------+--------------------+---------+---------
OC4JGroup:default_group | OC4J:home | 4812 | Alive
ASG | ASG | N/A | Down
HTTP_Server | HTTP_Server | 4312 | Alive