A.15 Starting and Stopping the Oracle Stack

This appendix describes how to start and stop the components of the Oracle stack in a specific order. It includes the following sections:

Note:

For an Oracle Autonomous Transaction Processing-Shared (ATP-S) database, before starting/stopping the Oracle WebLogic Administration Server, OID system components, or the Node Manager, you must set the TNS_ADMIN property to <$DOMAIN_HOME>/config/fmwconfig/components/OID/config/ using the following command:
export TNS_ADMIN=<$DOMAIN_HOME>/config/fmwconfig/components/OID/config

To update the contents of the directory pointed to by TNS_ADMIN, see Prerequisites for ATP-S.

A.15.1 Starting the Stack

This section describes the procedure to start the stack.

Start the stack components in the following order.

  1. Start the Oracle Database.
    1. In the Database ORACLE_HOME, set the ORACLE_SID, ORACLE_HOME and PATH environment variables to the appropriate values.
    2. Start the listener.
      ORACLE_HOME/bin/lsnrctl start 
      
    3. Start the database.
      ORACLE_HOME/bin/sqlplus "/as sysdba"
      startup
      
  2. Start the Oracle WebLogic Administration Server.

    Note:

    If you start the Oracle WebLogic Administration Server from the command line as shown, it runs in the foreground and prints output to the screen. You can, however, run the server in the background by using nohup at the beginning of the command line. This sends all output to the file nohup.out and prevents the script from prompting you for USER_NAME and PASSWORD. To pass parameters to StartWebLogic.sh when using nohup, you can use a boot identity file. See Starting and Stopping Servers in Administering Server Startup and Shutdown for Oracle WebLogic Server.
    (UNIX) DOMAIN_HOME/bin/startWebLogic.sh
    (Windows) DOMAIN_HOME\bin\startWebLogic.cmd

    When executing these scripts:

    • The default value for DOMAIN_NAME is base_domain
    • You will be prompted for values for USER_NAME and PASSWORD if you do not provide them as options when you execute the script.
  3. Ensure that the Node Manager is running. If, for some reason, the Node Manager is not running, start it.
    (UNIX) DOMAIN_HOME/bin/startNodeManager.sh
    (Windows) DOMAIN_HOME\bin\startNodeManager.cmd
  4. Start WebLogic system components, such as Oracle Internet Directory.
    (UNIX) DOMAIN_HOME/bin/startComponent.sh component_name
    (Windows) DOMAIN_HOME\bin\startComponent.cmd component_name 

    You can verify that the system components have started in a WLST shell by executing:

    oid_instanceStatus(instanceName = 'instance-name')
    
  5. Start WebLogic Managed Servers, such as Oracle Directory Integration Platform.
    (UNIX) DOMAIN_HOME/bin/startManagedWebLogic.sh managed_server_name admin_url 
    (Windows) DOMAIN_HOME\bin\startManagedWebLogic.cmd managed_server_name admin_url

    When prompted, enter your user name and password.

    To start managed components in the background, you can use the Oracle WebLogic Administration Console. See Overview of Administration Consoles in Understanding Oracle WebLogic Server.

    You can view the status of WebLogic managed components with Oracle Enterprise Manager Fusion Middleware Control. See Overview of Using Fusion Middleware Control to Manage Oracle Internet Directory.

A.15.2 Stopping the Stack

You can stop the Administration Server and all the managed servers by using Oracle WebLogic Administration Console.

See Overview of Administration Consoles in Understanding Oracle WebLogic Server.

To stop the stack components from the command line, issue the commands in the following order.

  1. Stop WebLogic Managed Servers such as WLS_ODS1. The Oracle Directory Integration Platform (DIP) typically runs from the WLS_ODS1 Managed Server.

    (UNIX) DOMAIN_HOME/bin/stopManagedWebLogic.sh managed_server_name admin_url  
    (Windows) DOMAIN_HOME\bin\stopManagedWebLogic.cmd managed_server_name admin_url

    When prompted, enter your user name and password.

  2. Stop WebLogic system components, such as Oracle Internet Directory.

    (UNIX) DOMAIN_HOME/bin/stopComponent.sh component_name
    (Windows) DOMAIN_HOME\bin\stopComponent.cmd component_name
  3. Stop the WebLogic Administration Server.

    (UNIX) DOMAIN_HOME/bin/stopWebLogic.sh
    (Windows) DOMAIN_HOME\bin\stopWebLogic.cmd
  4. If you want to stop the Node Manager:

    (UNIX) DOMAIN_HOME/bin/stopNodeManager.sh
    (Windows) DOMAIN_HOME\bin\stopNodeManager.cmd
  5. Stop the Oracle Database.

    1. In the Database ORACLE_HOME, set the ORACLE_SID, ORACLE_HOME, and PATH environment variables to the appropriate values.

    2. Stop the database.

      ORACLE_HOME/bin/sqlplus "/as sysdba"
      shutdown immediate 
      
    3. Stop the listener.

      ORACLE_HOME/bin/lsnrctl stop