Starting and Stopping the SAP Web AS J2EE System (UNIX)

Use

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.

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.

    • 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

  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.

    • 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