Oracle® Application Server Quick Administration Guide
10g Release 2 (10.1.2) Part No. B14126-01 |
|
![]() Previous |
![]() Next |
This chapter describes various procedures for starting and stopping Oracle Application Server and its components. It contains the following topics:
Oracle Application Server is a flexible product that you can start and stop in different ways, depending on your requirements.
This section describes how to start and stop application server instances. It contains the following topics:
Note: Oracle provides scripts that perform the procedures in this section. You can find them on the "OracleAS RepCA and Utilities" CD-ROM in theutilities/startup directory.
|
This section describes how to start all processes in OracleAS Infrastructure. OracleAS Infrastructure can have the following components:
OracleAS Metadata Repository
Oracle Identity Management
Your infrastructure can have both or one of the components. If your infrastructure contains both the components, then start the OracleAS Metadata Repository first.
You can start OracleAS Metadata Repository as follows:
Set the ORACLE_HOME
environment variable to the OracleAS Infrastructure Oracle home.
Set the ORACLE_SID
environment variable to OracleAS Metadata Repository SID (default is asdb
).
Start the Net Listener:
ORACLE_HOME/bin/lsnrctl start
Start OracleAS Metadata Repository instance:
ORACLE_HOME/bin/sqlplus /nolog
SQL> connect SYS as SYSDBA
SQL> startup
SQL> quit
You can start Oracle Identity Management as follows:
Start components:
ORACLE_HOME/opmn/bin/opmnctl startall
This command starts OPMN and all OPMN-managed processes such as DCM, Oracle HTTP Server, OC4J instances, and Oracle Internet Directory.
Start the Application Server Control Console:
ORACLE_HOME/bin/emctl start iasconsole
This section describes how to stop all processes in an OracleAS Infrastructure.
OracleAS Infrastructure can have the following components:
OracleAS Metadata Repository
Oracle Identity Management
Your OracleAS Infrastructure can have both or one of the components.
You can stop OracleAS Metadata Repository as follows:
Set the ORACLE_HOME
environment variable to the OracleAS Infrastructure Oracle home.
Set the ORACLE_SID
environment variable to OracleAS Metadata Repository SID (default is asdb
).
Stop OracleAS Metadata Repository instance:
ORACLE_HOME/bin/sqlplus /nolog
SQL> connect SYS as SYSDBA
SQL> shutdown
SQL> quit
Stop the Net Listener:
ORACLE_HOME/bin/lsnrctl stop
You can stop Oracle Identity Management as follows:
Stop the Application Server Control Console:
ORACLE_HOME/bin/emctl stop iasconsole
Stop components:
ORACLE_HOME/opmn/bin/opmnctl stopall
This command stops OPMN and all OPMN-managed processes such as DCM, Oracle HTTP Server, OC4J instances, and Oracle Internet Directory.
This section describes how to start all processes in a Middle Tier instance. A middle tier can have the following instance types:
You can start a Middle Tier instance as follows:
If the Middle Tier instance uses OracleAS Infrastructure services, such as Oracle Identity Management or a OracleAS Metadata Repository, then ensure they are started.
Start components:
ORACLE_HOME/opmn/bin/opmnctl startall
This command starts OPMN and all OPMN-managed processes such as DCM, Oracle HTTP Server, OC4J instances, and OracleAS Web Cache.
Start the Application Server Control Console:
ORACLE_HOME/bin/emctl start iasconsole
This section describes how to stop all processes in a Middle Tier instance. A middle tier can have the following instance types:
J2EE and Web Cache
Portal and Wireless
Business Intelligence
You can stop a Middle Tier instance as follows:
Stop the Application Server Control Console:
ORACLE_HOME/bin/emctl stop iasconsole
Stop components:
ORACLE_HOME/opmn/bin/opmnctl stopall
This command stops OPMN and all OPMN-managed processes such as DCM, Oracle HTTP Server, OC4J instances, and OracleAS Web Cache.
You can use the following tools to start, stop, restart, and view the status of components:
opmnctl
: a command-line tool
Application Server Control Console: a Web-based tool
These tools are completely compatible as they both use OPMN as their underlying technology for managing processes. For example, you can start a component using the opmnctl
command and stop it using the Application Server Control Console.
Although the two tools can be used interchangeably, they offer different features. The opmnctl
command allows you to start and stop subprocesses within components, as well as the entire component. For example, you can start and stop Web Cache, or you can start and stop only the Web Cache Admin subprocess. The Application Server Control Console allows you to view components that cannot be started or stopped, but whose status depends on other components. For example, it displays the status of the Single Sign-On component, whose status depends on the HTTP_Server.
You can start, stop, or restart a component, using the following commands:
ORACLE_HOME/opmn/bin/opmnctl stopproc ias-component=component ORACLE_HOME/opmn/bin/opmnctl startproc ias-component=component ORACLE_HOME/opmn/bin/opmnctl restartproc ias-component=component
You can start, stop, or restart the subprocess of a component, using the following commands:
ORACLE_HOME/opmn/bin/opmnctl stopproc process-type=process ORACLE_HOME/opmn/bin/opmnctl startproc process-type=process ORACLE_HOME/opmn/bin/opmnctl restartproc process-type=process
You can check the status of components and processes, using the following command:
ORACLE_HOME/opmn/bin/opmnctl status
You can start, stop, restart, and view status of components on the Application Server home page as follows:
Open the Application Server home page from the Application Server Control Console. Scroll to the System Components section.
Select the checkboxes in the Select column for the components you want to start, stop, or restart.
Click the Start, Stop, or Restart button on the top-right of the System Components section.
If you want a component to start every time the application server instance is started, then you must enable the component. On the other hand, if you disable a component, then it will no longer start when the application server instance is started.
You can enable and disable components using the Application Server Control Console. On the Application Server home page, click Enable/Disable Components. Components that are dependent on each other are grouped, and are all enabled or disabled together.
Note: If you use the backup and recovery procedures documented in this book, then you must runbkp_restore.pl -m config after you enable or disable components so that these are registered with the OracleAS Backup and Recovery Tool.
|
This section provides procedures for starting and stopping an Oracle Application Server environment. An environment can consist of multiple Infrastructure and Middle Tier instances distributed across multiple hosts. These instances are dependent on each other and you must start and stop them in the proper order.
You can follow these procedures when you need to completely shut down your Oracle Application Server environment. For example, when preparing to perform a complete backup of your environment, or apply a patch.
You can start an Oracle Application Server environment as follows:
Start any OracleAS Infrastructure that contains only OracleAS Metadata Repository.
If your environment has OracleAS Infrastructure installations that contain only OracleAS Metadata Repository, then start them in any order. For these installation types, you only need to start OracleAS Metadata Repository. You do not need to start any processes with opmnctl
and you do not need to start the Application Server Control Console.
Start the OracleAS Infrastructure that contains Oracle Identity Management.
If your environment uses Oracle Identity Management, then start the OracleAS Infrastructure that contains Oracle Internet Directory.
If your environment has Middle Tier instances that are part of OracleAS Cluster, then start the clusters in any order.
If your environment contains Middle Tier instances that are not part of OracleAS Cluster, then start them in any order.
You can stop all processes in an Oracle Application Server environment as follows:
Stop OracleAS Clusters.
Stop Middle Tier instances.
Stop the OracleAS Infrastructure that contains Oracle Identity Management.
Stop any OracleAS Infrastructure instances that contain only OracleAS Metadata Repository.