城市猎人

在一网情深的日子里,谁能说得清是苦是甜,只知道确定了就义无反顾
posts - 1, comments - 7, trackbacks - 0, articles - 89

Oracle Applciation Server10g启动

Posted on 2011-08-18 11:13 sailor 阅读(358) 评论(0)  编辑  收藏 所属分类: oracle

第二章:管理工具

关键两个: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  

 


只有注册用户登录后才能发表评论。


网站导航: