Skip Headers
Oracle® Fusion Middleware Administrator's Guide
11g Release 1 (11.1.1)
E10105-01
  Go To Documentation Library
Library
Go To Product List
Product
Go To Table Of Contents
Contents
Go To Index
Index

Previous
Previous
 
Next
Next
 

4 Starting and Stopping Oracle Fusion Middleware

This chapter describes procedures for starting and stopping Oracle Fusion Middleware.

It contains the following topics:

4.1 Overview of Starting and Stopping Procedures

Oracle Fusion Middleware is a flexible product that you can start and stop in different ways, depending on your requirements. In most situations, you can use Fusion Middleware Control, Oracle WebLogic Server Administration Console, or the WLST or OPMN commands to start or stop Oracle Fusion Middleware components.

These tools are completely compatible and, in most cases, can be used interchangeably. For example, you can start a J2EE component using WLST and stop it using Fusion Middleware Control.

4.2 Starting and Stopping WebLogic Servers

You can start Oracle WebLogic Administration Servers using the WLST command line. You can start and stop Managed Servers using the WLST command line, the WebLogic Server Administration Console, or Fusion Middleware Control. The following sections describe how to start and stop WebLogic Servers using the WLST command line, Fusion Middleware Control, or both.

4.2.1 Starting and Stopping Administration Servers Using the Command Line

You can start and stop Oracle WebLogic Server Administration Servers using the WLST command line. When you do so, you also stop the processes running in the Administration Server, including the WebLogic Server Administration Console and Fusion Middleware Control.

To start a WebLogic Administration Server, use the following command:

MW_HOME/user_projects/domains/domain_name/bin/startWebLogic.sh
         -Dweblogic.management.username=weblogic
         -Dweblogic.management.password=password
         -Dweblogic.system.StoreBootIdentity=true

To stop a WebLogic Administration Server, use the following command:

MW_HOME/user_projects/domains/domain_name/bin/stopWeblogic.sh 
       username password admin_url

4.2.2 Starting and Stopping Managed Servers Using the Command Line

You can use WLST to start and stop a WebLogic Managed Server.

To start a WebLogic Managed Server, use the following command:

(UNIX) MW_HOME/user_projects/domains/domain_name/bin/startManagedWebLogic.sh
    managed_server_name admin_url username password
(Windows) MW_HOME\user_projects\domains\domain_name\bin\startManagedWebLogic.cmd

To stop a WebLogic Managed Server, use the following command:

(UNIX) MW_HOME/user_projects/domains/domain_name/bin/stopManagedWebLogic.sh
                      username password admin_url
(Windows) MW_HOME\user_projects\domains\domain_name\bin\stopManagedWebLogic.cmd 
                      username password admin_url

4.2.3 Starting and Stopping Managed Servers Using Fusion Middleware Control

Fusion Middleware Control, as well as the Oracle WebLogic Server Administration Console, use Node Manager to start Managed Servers. If you are starting a Managed Server that does not contain Oracle Fusion Middleware products other than Oracle WebLogic Server, you can start the servers using the procedure in this section.

However, if the Managed Server contains other Oracle Fusion Middleware products, such as Oracle SOA Suite, Oracle WebCenter, or Oracle JRF, you must first configure Node Manager, as described in Section 4.2.4.

To start or stop a WebLogic Managed Server using Fusion Middleware Control:

  1. From the navigation pane, expand the farm, then WebLogic Domain, and then the domain.

  2. Select the Managed Server.

  3. From the WebLogic Server menu, choose Control, then Start Up or Shut Down.

Alternatively, you can right-click on the server, then choose Control, then Start Up or Shut Down.

4.2.4 Configuring Node Manager to Start Managed Servers

If a Managed Server contains other Oracle Fusion Middleware products, such as Oracle SOA Suite, Oracle WebCenter, or Oracle JRF, the Managed Servers environment must be configured to set the correct classpath and parameters. This environment information is provided through the start scripts, such as startWebLogic and setDomainEnv, that are located in the domain directory.

If the Managed Servers are started by Node Manager, (as is the case when the servers are started by the Oracle WebLogic Server Administration Console or Fusion Middleware Control) Node Manager must be instructed to use these start scripts so that the server environments are correctly configured. Specifically, Node Manager must be started with the property StartScriptEnabled=true.

There are several ways to ensure that Node Manager starts with this property enabled. As a convenience, Oracle Fusion Middleware provides the following script, which adds the property StartScriptEnabled=true to the nodemanager.properties file:

(UNIX) ORACLE_HOME/common/bin/setNMProps.sh.
(Windows) ORACLE_HOME\common\bin\setNMProps.cmd

For example, on Linux, execute the setNMProps script and start Node Manager:

ORACLE_HOME/common/bin/setNMProps.sh
MW_HOME/wl_server_n/server/bin/startNodeManager.sh

When you start Node Manager, it reads the nodemanager.properties file with the StartScriptEnabled=true property, and uses the start scripts when it subsequently starts Managed Servers. Note that you need to run the setNMProps script only once.


See Also:

"Using Node Manager" in the Oracle Fusion Middleware Node Manager Administrator's Guide for Oracle WebLogic Server for other methods of configuring and starting Node Manager

4.3 Starting and Stopping Components

You can start and stop components using the command line, the WebLogic Server Administration Console, or Fusion Middleware Control, depending upon the component. The following sections describe how to start and stop components using the command line and Fusion Middleware Control.

4.3.1 Starting and Stopping Components Using the Command Line

If a component is a Java component, you use WLST commands to start and stop the component. If a component is a system component, you use opmnctl commands to start and stop the components.

  • To start and stop Java components, use the WLST startApplication and stopApplication commands:

    startApplication(appName, [options])
    stopApplication(appName, [options])
    

    For example, to start Oracle Directory Integration Platform, use the following command:

    startApplication("DIP")
    
  • To start and stop system components, use the opmnctl command-line tool. It is located in the following directory:

    (UNIX) ORACLE_HOME/opmn/bin
    (Windows) ORACLE_HOME\opmn\bin
    

    To start or stop OPMN and all system processes, such as Oracle HTTP Server:

    opmnctl startall
    opmnctl stopall
    

    To start, stop, or restart a component using opmnctl:

    opmnctl startproc ias-component=component_name
    opmnctl stopproc ias-component=component_name
    opmnctl restartproc ias-component=component_name
    

    For example, to start Oracle HTTP Server, ohs1:

    opmnctl startproc ias-component=ohs1
    

    To start, stop, or restart the subprocess of a component:

    opmnctl stopproc process-type=process
    opmnctl startproc process-type=process
    opmnctl restartproc process-type=process
    

4.3.2 Starting and Stopping Components Using Fusion Middleware Control

To start, stop, and restart components:

  1. From the navigation pane, expand the farm, then navigate to the component.

  2. Select the component, such as SoaInfra.

  3. From the dynamic target menu, choose Control, then Start Up or Shut Down.


Note:

If OPMN is not started, you cannot start system components such as Oracle HTTP Server or Oracle Internet Directory using Fusion Middleware Control. To start OPMN, use the following command:
opmnctl start

4.4 Starting and Stopping Fusion Middleware Control

If Fusion Middleware Control is configured for a domain, it is automatically started when you start an Oracle WebLogic Server Administration Server, as described in Section 4.2.1.

If Fusion Middleware Control is configured for a domain, it is automatically stopped when you stop an Oracle WebLogic Server Administration Server, as described in Section 4.2.1.

4.5 Starting and Stopping Oracle Management Agent

Oracle Management Agent is designed specifically for monitoring particular Oracle Fusion Middleware components.

To start Oracle Management Agent, use the following command:

opmnctl startproc ias-component=EMAGENT

To stop Oracle Management Agent, use the following command:

opmnctl stopproc ias-component=EMAGENT

4.6 Starting and Stopping Applications

You can start and stop applications using WLST command line, the WebLogic Server Administration Console, or Fusion Middleware Control. The following sections describe how to start and stop applications using the command line and Fusion Middleware Control.

4.6.1 Starting and Stopping Java EE Applications Using the Command Line

To start or stop applications with the WLST command line, use the following commands:

startApplication(appName, [options])
stopApplication(appName, [options])

The application must be fully configured and available in the domain. The startApplication command returns a WLSTProgress object that you can access to check the status of the command. In the event of an error, the command returns a WLSTException. For more information about the WLSTProgress object, see "WLSTProgress Object" in the Oracle Fusion Middleware Oracle WebLogic Scripting Tool.

4.6.2 Starting and Stopping Applications Using Fusion Middleware Control

To start or stop a Java EE application using Fusion Middleware Control:

  1. From the navigation pane, expand Application Deployments.

  2. Select the application.

  3. From the Application Deployment menu, choose Control, then Start Up or Shut Down.

To start or stop a SOA Composite application using Fusion Middleware Control:

  1. From the navigation pane, expand the farm, then SOA, and then soa-infra.

  2. Select the application.

  3. On the SOA Composite page, click Start Up or Shut Down.

4.7 Starting and Stopping Your Oracle Fusion Middleware Environment

This section provides procedures for starting and stopping an Oracle Fusion Middleware environment. An environment can consist of  Oracle WebLogic Server domain, an Administration Server, multiple Managed Servers, Java components, system components, including Identity Management components, and a metadata repository. The components may be dependent on each other and it is important to start and stop them in the proper order.

You can follow these procedures when you need to completely shut down your Oracle Fusion Middleware environment. For example, when preparing to perform a complete backup of your environment, or apply a patch.

4.7.1 Starting an Oracle Fusion Middleware Environment

To start an Oracle Fusion Middleware environment:

  1. Start any database-based metadata repository:

    1. Set the ORACLE_HOME environment variable to the Oracle home for the database.

    2. Set the ORACLE_SID environment variable to the SID for the database (default is orcl).

    3. Start the Net Listener:

      ORACLE_HOME/bin/lsnrctl start
      
    4. Start the database instance:

      ORACLE_HOME/bin/sqlplus /nolog
      SQL> connect SYS as SYSDBA
      SQL> startup
      SQL> quit
      
  2. Start Oracle Identity Management system components:

    1. Set the ORACLE_HOME environment variable to the Oracle home for the Identity Management components.

    2. Start OPMN and all system components:

      opmnctl startall
      
  3. Start the Oracle WebLogic Server Administration Server as described in Section 4.2.1.

  4. Start the Oracle WebLogic Server Managed Servers as described in Section 4.2.2. Any applications deployed to the server are also started.

  5. Start OPMN and all system components.

    1. Set the ORACLE_HOME and ORACLE_INSTANCE environment variables to the Oracle home and Oracle instance for the system components.

    2. Start OPMN and all system components in that Oracle instance:

      opmnctl startall
      
  6. If your environment includes components that are targets monitored by Oracle Management Agent, start Oracle Management Agent, as described in Section 4.5.

4.7.2 Stopping an Oracle Fusion Middleware Environment

To stop an Oracle Fusion Middleware environment:

  1. Stop system components, such as Oracle HTTP Server. You can stop them in any order.

    1. Set the ORACLE_HOME and ORACLE_INSTANCE environment variables to the Oracle home and Oracle instance for the system components.

    2. Stop OPMN and all system components in that Oracle instance:

      opmnctl stopall
      
  2. If your environment includes components that are targets monitored by Oracle Management Agent, stop Oracle Management Agent, as described in Section 4.5.

  3. Stop the Oracle WebLogic Server Managed Servers as described in Section 4.2. Any applications deployed to the server are also stopped.

  4. Stop Oracle Identity Management components:

    1. Set the ORACLE_HOME environment variable to the Oracle home for the Identity Management components.

    2. Stop OPMN and all system components:

      opmnctl stopall
      
  5. Stop the Administration Server as described in Section 4.2.1.

  6. Stop any database-based metadata repository:

    1. Set the ORACLE_HOME environment variable to the Oracle home for the database.

    2. Set the ORACLE_SID environment variable to the SID for the database (default is orcl).

    3. Stop the database instance:

      ORACLE_HOME/bin/sqlplus /nolog
      SQL> connect SYS as SYSDBA
      SQL> shutdown
      SQL> quit
      
    4. Stop the Net Listener:

      ORACLE_HOME/bin/lsnrctl stop
      

4.8 Starting and Stopping: Special Topics

This section contains the following special topics about starting and stopping Oracle Fusion Middleware:

4.8.1 Starting and Stopping in High Availability Environments

There are special considerations and procedures for starting and stopping High Availability environments, such as:

  • Oracle Fusion Middleware Cold Failover Cluster

  • Oracle Application Server Disaster Recovery


    See:

    Oracle Fusion Middleware High Availability Guide for information about starting and stopping in high-availability environments

4.8.2 Forcing a Shut Down of Oracle Metadata Repository

If you find that the Oracle Metadata Repository instance is taking a long time to shut down, you can use the following commands to force an immediate shutdown:

ORACLE_HOME/bin/sqlplus /nolog
SQL> connect SYS as SYSDBA
SQL> SHUTDOWN IMMEDIATE;

Immediate database shutdown proceeds with the following conditions:

  • No new connections are allowed, nor are new transactions allowed to be started, after the statement is issued.

  • Any uncommitted transactions are rolled back. (If long uncommitted transactions exist, this method of shutdown might not complete quickly, despite its name.)

  • Oracle does not wait for users currently connected to the database to disconnect. Oracle implicitly rolls back active transactions and disconnects all connected users.

The next startup of the database will not require any instance recovery procedures.


See Also:

Oracle Database Administrator's Guide in the Oracle Database 11g documentation library