Show TOC

Procedure documentationStarting and Stopping the SAP Web AS J2EE System (UNIX) Locate this document in the navigation structure

 

You need to check that you can start and stop the SAP system after the installation using the scripts startsap and stopsap in the exe directory.

Prerequisites

  • You have signed on to the SAP system hosts as user <sapsid>adm.

  • For more information on how to start or stop database-specific tools, see the database-specific information in this documentation and the documentation from the database manufacturer.

  • If you want to use startsap or stopsap (for example, in a script) and require the fully qualified name of these SAP scripts, create a link to startsap or stopsap in the home directory of the corresponding user.

    Caution Caution

    If there are multiple SAP instances on one host - for example, a central instance and a dialog instance - you must add an extra parameter to the scripts:

    startsap <instanceID>

    stopsap <instanceID>

    For example, enter:

    startsap DVEBMGS00

    End of the caution.

    Note Note

    SAP Web AS J2EE only system

    The instance name (instance ID) of the central instance is JC<Instance_Number>, the instance name of a J2EE dialog instance is J<Instance_Number>.

    End of the note.

Procedure

Starting the SAP System
  1. To start the central instance and database instance:

    • If you have a central system - that is, central instance, central services instance and database instance on the same host - enter the following on the central system host:

      startsap

      This checks if the database is already running. If not, it starts the database before starting the central services instance and the central instance.

      Note Note

      You can start the database and SAP system separately by entering the following commands:

      startsap DB <instanceID>

      startsap R3 <instanceID of central services instance>

      startsap R3 <instanceID of central instance>

      Make sure that you always start the database first because otherwise the central services instance and the central instance cannot be started.

      End of the note.

      Note Note

      There is also the parameter J2EE that is a synonym for the parameter R3. For SAP Web AS ABAP+J2EE systems, you can enter either the command startsap R3 or startsap J2EE to start the SAP instance comprising both ABAP and J2EE.

      End of the note.
    • If you have a distributed system - that is, central instance, central services instance and database instance on different hosts - do the following:

      • On the database host, enter:

        startdb

      • On the central services instance host, enter:

        startsap R3

      • On the central instance host, enter:

        startsap R3

  2. Enter the following to start dialog instances, if there are any:

    startsap

Stopping the SAP System

Note Note

When you use stopsap in an MCOD (Multiple Components in One Database) system with two central instances, only one central instance and the database are shut down. Therefore, you must first stop the other SAP system with stopsap R3 or make sure that it has already been stopped.

End of the note.
  1. Enter the following to stop dialog instances:

    stopsap

  2. To stop the central instance, the central services instance and the database instance:

    • If you have a central system - that is, central instance, central services instance and database instance on the same host - enter the following on the central system host:

      stopsap

      This stops the central instance, the central services instance and then the database.

      Note Note

      You can stop the SAP system and the database separately by entering the command stopsap R3 <instanceID of central instance>, then stopsap R3 <instanceID of central services instance> and then stopsap <instanceID> .

      Make sure that you always stop the central instance first and the central services instance second because otherwise the database cannot be stopped.

      End of the note.

      Note Note

      There is also the parameter J2EE that is a synonym for the parameter R3. For SAP Web AS ABAP+J2EE systems, you can enter either the command stopsap R3 or stopsap J2EE to stop the SAP instance comprising both ABAP and J2EE.

      End of the note.
    • If you have a distributed system - that is, central instance, central services instance and database instance on different hosts - do the following:

      • On the central instance host, enter:

        stopsap R3

      • On the central services instance host, enter:

        stopsap R3

      • On the database host, enter:

        stopdb

      Caution Caution

      Make sure that no SAP instance is running before you enter stopdb on a standalone database server. No automatic check is made.

      End of the caution.