Starting and Stopping AS ABAP

Objectives

After completing this lesson, you will be able to:
  • Start and stop using SAP MC
  • Start and stop using SAPControl
  • Start and stop using SAP MMC

Database Start and Stop Using SAP MC and SAP Host Agent

The SAP MC also enables you to start and stop the database. This function is not implemented in other tools, such as the SAP Microsoft Management Console (SAP MMC) or SAPControl. With tools, such as SAPControl, the database is only started when a PAS or AAS instance is started on the same host on which the database is installed (on condition that the database belongs to the same SAP system).

On the host where the database of the SAP system is installed, an SAP Host Agent must be installed, too. The SAP Host Agent starts and stops the database and provides monitoring data from the operating system to the SAP MC. The SAP MC receives the core information from sapstartsrv of the SAP instances that communicates on which host the database is installed. The SAP MC connects to the SAP Host Agent of the communicated host via port 1128 (or 1129 for secure network communications - SNC).

Note

On each host on which an SAP instance is installed, an SAP Host Agent should be installed, too. The SAP MC also connects to the SAP Host Agent of the individual instances to gather information about memory consumption, file system allocation, and processes of the corresponding operating system.

The SAP MC holds a connection to each sapstartsrv process and the SAP Host Agent (see figure below).

When it comes to a start action, the SAP Host Agent is addressed first to start the database, if the status is Stopped. For all SAP instances the sapstartsrv negotiate, based on the priorityLEVEL, the further start sequence. Accordingly the instances are started. The communication takes place directly between the sapstartsrvdaemon or services. Instances with priorityLEVEL 1 (ASCS instance in ABAP environments) are in most scenarios started directly after the database, although they could also be started before the database. Central Services are not dependent on a successful connection to the database at this stage within the start procedure.

The procedure to start an ABAP-based SAP system with instance prioritiesLEVEL 1 and 3 is a typical scenario and explained here with the steps shown in the previous figure SAP MC: Sequence when Starting an SAP System (including Database) as follows:

  1. The administrator uses the SAP MC to start the SAP system.

  2. Before starting the SAP system, the SAP Host Agent on the database host receives the command to start the underlying database.

  3. If the database has the status Stopped, the SAP Host Agent uses a database start command. In case the database status returns Running, the next step is executed.

  4. The sapstartsrv of the instance with priorityLEVEL 1 receives the command to start the instances according to their priority. The connection point is the result of identifying the instance with the highest priorityLEVEL , which corresponds to the lowest number!

  5. The instance with priorityLEVEL 1 is started by the corresponding sapstartsrv.

  6. The sapstartsrv of the instance with priorityLEVEL 1 triggers the sapstartsrv of the instance with priorityLEVEL 3, signaling it to start its instance.

    Note

    In case there is a scaled SAP system given, which is a system with at least one further AAS instance, the signal to start will be sent in parallel to all instances with the same priorityLEVEL.
  7. The instance with priorityLEVEL 3 is started by the respective sapstartsrv.

The status of a database in the SAP MC is self-explanatory, according to the colors (already discussed in a former lesson): a stopped database is displayed in gray, a started database in green color. In phases starting and stopping it shows up in yellow color.

Note

The SAP MC provides for some databases an option to stop the database when you stop the SAP system. If the flag is set, the SAP Host Agent stops the database when all the instances have been stopped. This does not apply to SAP HANA-based SAP systems, like the SAP systems used in this class!

You can start and stop the database independently from the SAP system in the SAP MC by expanding the Database node and selecting the relevant option in the context menu based on the <DBSID>.

Hint

Remember the dependency of the Application Server (AS) instances to a database in operational state. Technically spoken it is possible to stop the database even if AS-based instances were started before. But practically users cannot continue their work in the ABAP-based SAP system.

Hint

If the database icon is colored blue in the SAP MC, it could have different reasons, for example:

  • The SAP Host Agent may not be installed

  • The SAP Host Agent version is outdated

  • The database authentication is missing

Start of an SAP System Using the SAP MC

In the Navigation Pane on the left of the SAP MC the SAP system displays directly or included in a Landscape (folder). The individual SAP systems can be expanded to view details, for example different types of SAP instances, and further down other elements like Process Lists, technical information, and monitoring data.

Different colors are used to identify the status of systems, instances, processes, and services within the SAP MC (please refer to the list in the predecessor lesson).

When an access to an SAP system in the Navigation Pane takes place for the first time after starting the SAP MC, an authentication box appears, requesting an operating system user and password. Typically the <sid>adm will be used. This user is authorized to start and stop an entire SAP system or individual instances. The SAP MC remembers the credentials until closing the tool.

In the context of starting a complete SAP system, there is an option to select which components should be started (see step no. 2 in figure above). The default settings is All Instances. The SAP MC starts the individual instances of the system according to the start priorityLEVEL and in the correct sequence. Nevertheless, alternatively the administrative personnel are able to choose another variant, like type of instance or priorityLEVEL.

Hint

Have a look at the possible selection for the components, which can be started when doing the exercises.

A further option when starting an SAP system is the definition of so called start timeout. This can be seen in the figure above at step 2, looking at the dialog box. This start timeout is defined as a maximum period for the instance to start. If all instances with the same priorityLEVEL do not start within this timespan, instances with the next priorityLEVEL cannot be started. The default value is 300 seconds and can be overridden in the field of the dialog box. The timeout countdown begins again when the start process of another priorityLEVEL is completed. If the start timeout limit was reached, the remaining SAP instances are not started and the procedure will be stopped.

From a handling perspective the administrative personnel are supported by visualization features in the SAP MC. By selecting a specific node (for example, an instance) in the Navigation Pane tree structure at the left of the SAP MC, the details about the current status of the single elements can be identified. The information is provided in the Result Pane on the right.

Here are some example statuses during startup of an SAP system:

  • Running

    All elements of the selected component have been started successful and are running.

  • Running but status info unavailable

    All elements of the selected component have been started successful, but no further information is available.

  • Server startup procedure running

    The start was initialized and the procedure is still ongoing, but did not yet finish.

  • Dialog Queue standstill

    This status indicates that the start process is not fully finished and that ABAP work processes may not yet be fully initialized.

In any case use the recommended best practice procedure for verification of a start action, which is logging on to the system or instance to check the system availability.

Stop of an SAP System Using the SAP MC

When an SAP system is stopped using the SAP MC, the stop process is executed following the reverse sequence of the start process taking the priorityLEVEL into account. After calling the stop process, a dialog window appears where you can choose between hard and soft shutdown options. Soft shutdown means that no further user requests are received by the instance and processes are terminated if no process is handling a request. Hard shutdown means that all request processing is terminated immediately and open transactions are rolled back in the underlying database.

The Soft shutdown timeout specifies how much time instances with the same priorityLEVEL are given to complete the stop process before instances with the next lowest priorityLEVEL are stopped. If the PAS and AAS instances (with priority 3) cannot be stopped within 300 seconds, for example, the ASCS instance (with priorityLEVEL 1) is stopped once this timeout has expired, and so on.

The figure above clarifies the different statuses during an SAP system stop procedure. The statuses on the left show in which sequence the instances of the SAP system are stopped, whilst on the right the statuses of the processes of one AS instance can be seen. In this case it is the PAS instance of the SAP system.

As already discussed in this and a predecessor lesson, only some databases can profit from an integrated database shutdown within the SAP MC and if specific conditions are fulfilled. If it is supported in the specific scenario, the flag Include Database is active and can be set by the administrator when stopping the SAP system.

Instance Start Using the SAP MC

In some situations it is meaningful to start an SAP system stepwise or even start or restart only individual instances. The SAP MC provides the complete range of functionality and supports the administrative department with those features. The required options are provided in the Navigation Pane by making use of the context menu of the instance nodes.

A typical use case is an instance Restart. There are different reasons why an individual instance Restart might be necessary, for example:

  • Parameter changes to activate new parameter values

  • Solving hardware allocation problems (for example, main memory or CPU)

  • Operating system software maintenance or parametrization with the need of a reboot

  • Hardware changes

In highly scaled ABAP environments with multiple AAS instances, the administration might not start the SAP systems completely. Initially specific instances are started in the correct sequence and others remain offline, for example because of the need for a further downtime window.

Note

The step-by-step start of an SAP system is treated to be an advanced feature by means of mandatory knowledge concerning interdependencies. As you already know, the priorityLEVEL of individual instances plays an important role within the start procedure. The system administration is in charge of providing reliable start and stop procedures. As the individual start of an SAP system instance-by-instance requires mandatory further background knowledge, be careful when using these start options in productive environments.

The relevant start and stop handling options for individual instances can be found in the context menu of the respective instance in the Navigation Pane underneath the <SAPSID>. Depending on the current status of an instance, the functions Start... or Stop... are active or inactive (grayed out). The function Restart... always appears as an active option, as even if an instance is stopped, it simply gets started with this function (without a preceding stop action).

Caution

The SAP MC does not avoid a stop or restart of a "Single Point of Failure", if you decide to execute this action. There is only the following standard question presented in the dialog box: "Really stop <SAPSID> instance <instance_number> on <host>?". Confirm with Ok or abort with Cancel.

When you expand the instance, other elements are displayed in the SAP MC, such as the Process List and the AS ABAP WP Table. The Process List provides status information about the start process and indicates which processes and/or services have been started by the responsible sapstartsrv. At the beginning of the start process, it is possible to see the sapcpe process in the Process List, verifying, whether a replication of kernel binaries is needed.

In the figure, you can see that the ABAP Dispatcher (disp+work) of the AAS instance is still starting. The IGS Watchdog (igswd_mt), the RFC Gateway (gwrd) and the Internet Communication Manager (icman) are already running.

By checking the content of the AS ABAP WP Table, the status of a PAS or AAS instance can be verified. The status of the individual ABAP work processes, allows a conclusion of the overall status of an instance and in whether the initialization was completed (column Start displays yes).

Stop and Start an SAP System Using the SAP Management Console (SAP MC)

Business Example

As a system administrator, you need to manage stopping and starting actions for SAP systems, which are part of your System Landscape. In most of the cases the reason for restarts is a maintenance activity, like changing non-dynamic parameters for the SAP system or even hardware or software changes of the platform used by the SAP systems.

Depending on the scenario, you will have to stop and later on start the SAP systems, or directly use the restart function and in this way optimize the action from a time perspective. Both methods end up (hopefully) in having the SAP systems in operational state again.

In this exercise, when an object name or value contains ##, replace ## by the number your instructor assigned to you.

Task 1: Stop the SAP System with the SAP Management Console (SAP MC)

You have planned and announced a system downtime. Now the deadline is reached and you want to stop the SAP system using the SAP Management Console (SAP MC).

Steps

  1. Stop the SAP system using the SAP Management Console (SAP MC).

    1. Use Case 1: SAP MC is still open (started in a former exercise). Continue with step 1g.

    2. Use Case 2: SAP MC was closed: follow steps 1c-1f as a short description (or use the former exercise to open the tool again).

    3. On the WTS use a File Explorer to open the following folder: SAP > SAPMC > servicehttp > sapmc.

    4. Double-click training_sapmc.jnlp.

    5. Confirm the Security Warning: The application's digital signature has an error. Do you want to run this application? ... in the dialog box with push-button Run.

      Result

      The SAP MC should be started and will be opened.
    6. Wait until the stop signs at the left Navigation Pane disappear.

    7. In the SAP Management Console (SAP MC) expand the node of the SAP system which was assigned to you by the instructor and select the <SAPSID>.

      Replace <X> with D, Q or P depending on the training systems assigned to you.

      There are 3 options for your assignment to an SAP system, S4D, S4Q or S4P. These are the available and individually assigned <SAPSID>'s.

      The PAS instance of the training system has the following instance number:

      • S4D: replace <$$> with 11
      • S4Q: replace <$$> with 21
      • S4P: replace <$$> with 31
    8. Enter the operating system User ID (<sid>adm in lower case letters) and the Password provided by the instructor.

      The credentials will be provided by the instructor.

    9. Right-click the SAP system <SAPSID>.

    10. Choose function Stop from the context menu.

      When you choose Stop for the entire system, a dialog box appears, prompting you to choose between a Hard or a Soft shutdown.

    11. Select Hard shutdown.

      Hint

      If you stop the instances individually, you should always stop them in the reverse priority order:

      • First the instance(s) with priority3, which is the priority of all instances with a dispatcher, but without enqueue process (PAS and AAS instances).
      • OR the instance (if any) with priority2, which have a dispatcher and an enqueue work process (the PAS has priority 2 if it has an enqueue work process). An instance with priority2 only exists for older releases.
      • Finally the instance with priority1, which is the central services instance (ASCS).

      Result

      The entire SAP system is stopped.

      Note

      If you were still logged on to the SAP system, which you just stopped, an SAP GUI message will be displayed informing you about the application server shutdown. This is because you have used the hard shutdown option. You can ignore this message within this exercise.

    12. A dialog box is shown. Select Skip to be able to monitor the shutdown, but do not select Cancel. The dialog box would close automatically when the chosen action is finished.

    13. Monitor the shutdown using for example the Process List. You can find this area in the Navigation Pane if expanding an instance.

    14. Check the status of the processes and refresh from time to time with the blue icon in the Application toolbar.

      Depending on the instance type you are looking at, different entries are visible in the Process List at the right in the Result Pane:

      • For PAS and AAS instances, for example, Dispatcher, ICM, and so on.
      • For the ASCS instance: Message Server, Enqueue Server and optionally other processes.

    15. Caution: do not close the SAP MC as you need it for the next step again.

Task 2: Start the SAP System, Instance by Instance in the Correct Sequence, Using the SAP Management Console (SAP MC)

You have finished the system maintenance and you want to start the SAP system using the SAP Management Console (SAP MC), so that the end users can log on to the system again and the changes which you have done based on parameters take effect.

Note

As a special challenge and to test your knowledge regarding the preceding lessons, start your SAP system step-by-step. This means that you have to start the different instances building your SAP system in the correct order, according to the assigned priorityLEVEL of the individual instances.

Steps

  1. Start the SAP system using the SAP Management Console (SAP MC) by starting the ASCS instance.

    1. On the training WTS, use the still open SAP MC.

      If you closed the SAP Management Console (SAP MC), refer to steps 2a)-2j) in the exercise step "Stop the System with the SAP Management Console (SAP MC)".

      Replace <X> with D, Q or P (depending on the training systems assigned to you).

      There are 3 options for your assignment to an SAP system, S4D, S4Q or S4P. These are the available and individually assigned <SAPSID>'s.

      The PAS instance of the training system has the following instance number:

      • S4D: replace <$$> with 11
      • S4Q: replace <$$> with 21
      • S4P: replace <$$> with 31

      The AAS instance of the training system has the following instance number:

      • S4D: replace <$$> with 12
      • S4Q: replace <$$> with 22
      • S4P: replace <$$> with 32
    2. Expand the SAP system assigned to you in the Navigation Pane.

    3. Identify the ASCS instance and check the status using the color or alternatively using the content of the included Processes as part of the Process List in the Result Pane.

      Result

      The included processes Message Server, Enqueue Server, (and optionally others, like Web Dispatcher) are displayed in gray color, which means stopped.
    4. Select the ASCS instance of your system in the Navigation Pane at the left of the SAP MC. This is the priorityLEVEL1 instance.

      • S4D: ASCS instance number 10
      • S4Q: ASCS instance number 20
      • S4P: ASCS instance number 30
    5. Choose Start from the context menu.

    6. The start of the ASCS instance is typically quite fast. Wait until the dialog box disappears and check the status of the processes. The color should be green, which means online. Then proceed with the next step.

    7. Now select one of the other instances PAS or AAS (see lists of instance types and numbers above). It should not matter which instance you choose, cause both have one and the same priorityLEVEL3!

    8. Choose Start from the context menu of the selected instance.

    9. Select Skip on the upcoming dialog box to be able to monitor the start procedure in details.

    10. Monitor the progress of the start procedure using the Process List in theNavigation Pane and checking the status of the AS processes in the Result Pane on the right.

      Note

      You are not forced to wait until the first selected AS Instance is online, by means of starting both instances in parallel is feasible.
    11. Repeat the start of the instance for the second AS instance (depending on which you selected first). and monitor again the startup procedure.

      Result

      After a while all of the instances building your SAP system should have green status. Your system is again up-and-running. Congratulations!
  2. Check which process types are started at the operating system level after your system has been started up. To do so, make sure that you are logged on to the operating system of the host on which your SAP system is installed, for example, with Remote Desktop Connection (XRDP).

    1. Select the Windows logo and type remote

    2. Select Remote Desktop Connection in the Best match results list.

    3. In the window Remote Desktop Connection enter into the field named Computer the hostname of your assigned SAP system.

      • S4D: s4dhost with OS user s4dadm
      • S4Q: s4qhost with OS user s4qadm
      • S4P: s4phost with OS user s4padm
    4. A dialog box asks for username and password. Enter the corresponding values and confirm with OK.

      Result

      You are now logged on to the operating system on which your SAP system is installed.
    5. At the operating system level, open the System Monitor (from the toolbar: ApplicationsUtilitiesSystem Monitor) to check the running processes.

      Note

      You may use filter criteria (binocular icon) to restrict the processes visible in the System Monitor.

      Result

      The following kernel processes should be running at the operating system level after your system has been started: SAP_<SID>_<Instance_name><instance_number>_<Process Type>For example SAP_S4P_30_ENQ (enqueue server) or SAP_S4P_31_W10 (work process), if you are administering S4P.
  3. Check in the SAP Management Console (SAP MC) if all processes are running and the system has started correctly. This has to be done on the training WTS. Additionally, log on to your SAP system as a "real life test".

    1. In the SAP Management Console (SAP MC), check the Process List of every instance to check the status of every process.

    2. Open the AS ABAP WP Table to determine the status of the work processes.

    3. Start SAP Logon.

    4. Choose the logon entry for your SAP system.

      Result

      If the logon screen is displayed, the dispatcher of the application server could be reached.
    5. Log on to your SAP system with your TRAIN-## user and password.

Related Information

For further information about starting and stopping SAP systems, refer to the following SAP Notes:

  • SAP Note 936273: sapstartsrv for all platforms
  • SAP Note 927637: Web service authentication in sapstartsrv as of release 7.00

  • SAP Note 823941: SAP Start Service on Unix

  • SAP Note 995116: Backward porting of sapstartsrv for earlier releases

  • SAP Note 1014480: SAP Management Console (SAP MC)

  • SAP Note 927637: Web service authentication in sapstartsrv as of release 7.00

  • SAP Note 877795: Problems with sapstartsrv from Release 7.00 and 6.40 patch 169

  • SAP Note 2200230: Problems with use of system PKI

How to use the SAPControl Web Service Interface: https://www.sap.com/documents/2016/09/0a40e60d-8b7c-0010-82c7-eda71af511fa.html

Interface

Start of an SAP System Using SAPControl

Only as a reminder:

As already discussed in a former lesson, SAPControl is a command line tool for starting and stopping SAP systems. It uses the Web Service interface of the sapstartsrv, is part of the SAP kernel, and is available on all supported operating system platforms.

Note

The startsap and stopsap commands are deprecated. SAP recommends that you do not use them any longer. For more information, see SAP Notes 1763593 - Starting and stopping SAP system instances - startsap/stopsap are deprecated.

The following figure shows the basic structure of the syntax with some selected examples. The execution is not yet shown, but will follow in the flow of this lesson.

Hint

Calling sapcontrol -h or sapcontrol --help or even without any other option in the command line displays the syntax description of the tool.

As you can see in the figure above, there are multiple alternatives to start or stop an SAP system or elements of it with SAPControl. Most methods use by default hard shutdown options. With further parameters it is possible to trigger a soft shutdown, which can be limited, so that after a time limit is reached, the stop continues with a hard shutdown.

In addition there is a Webmethod to handle the sapstartsrv. For example to restart the daemon or service after important changes, which affect the processes to be started by an instance.

Use SAPControl to Start a complete SAP system

As with other command line tools the syntax of SAPControl is highly relevant. This is an important reason, why the access to the tool should be strictly limited to some administrators only. Operating system access has to be treated to be a highly critical task from a security perspective. The execution of SAPControl commands is bound to a shell and requires an OS user with administrative permissions.

In SAP environments there are different predefined OS users for the use case of start and stop actions. The main approach uses the <sid>adm created during installation. In addition an OS user with access to the SAP Host Agent is able to make use of SAPControl functions.

Note

There are differences regarding the supported operating system platforms. Please refer to the previous lesson and the OS-specific information about sapstartsrv.

Which option should be used, highly depends on the environment (OS, user, security configuration, and so on) and is not discussed in details in this class. Nevertheless, there are some hints and use cases within this lesson.

Before starting or stopping an SAP system using SAPControl, check the status of the SAP instances building the SAP system (please refer to the previous lesson). Alternatively use a command on OS-level to check the status of the relevant processes (for example, ps -ef | grep or pstree).

In the first example sapcontrol -user <user> <password> -nr <instance_number> -function StartSystem ALL, the web method StartSystem is called with the option ALL. As with the SAP MC, a sapstartsrv process is addressed to start the instances. ALL means that all instances are started according to the given priorityLEVEL. It is assumed that the instances exist and are not already operational. Typically the ASCS with an assigned priorityLEVEL 1 will take over control.

Note

There are two exceptions:
  • An ERS instance exists with priorityLEVEL 0.5
  • There is no ASCS instance installed, but a Central instance exists with priorityLEVEL 2

The PAS and any AAS instances have priorityLEVEL 3 and are started after the ASCS instance is running. Instances can run on the same host or on different hosts. With StartSystem LEVEL 3, which corresponds to the above used and mentioned StartSystemALL, the complete SAP system is started according to the priority of the individual instances, unless the instances are already running. This is the same process as with a system start using SAP MC.

Special Functions of SAPControl

Making use of special options

The use of username and password directly in the command line interface (SSH session) carries the risk that sensitive data can be viewed in the history log or process list. Under security aspects this is not acceptable and should be avoided.

If the SSH session is used directly with the user <sid>adm (see example above with StartSystemALL) , the user/password input is not needed for execution of a SAPControl command.

Another alternative is the use of a protected web method to use a trusted connection. No user name or password is provided because the operating system authentication as <sid>adm is sufficient. However, it is only possible to execute a protected web method for the local host.

  • UNIX/Linux: sapcontrol -prot NI_HTTP -nr <instance_number> -function Start

  • Windows: sapcontrol -prot PIPE -nr <instance_number> -function Start

If the command is used based on a specific instance like with WebmethodStart or Stop, it should work properly. But in case StartSystemALL or option LEVEL 3 is used, it will fail in a distributed environment with instances installed on different hosts. The communication with instances on other hosts is not permitted under trust connections. Only local functions can be executed with this method.

Caution

Read SAP Note 927637 - Web service authentication in sapstartsrv as of release 7.00.

The limitation of executing protected web methods only on a local basis can be eliminated with the use of option -systempki. In this way it is possible to use Webmethods like StartSystempriorityLEVEL or StartSystemALL instead of explicitly specifying the OS user and password with the option -<user > <password> in the command line. This method also works in distributed environments, where the instances are installed on different hosts. Nevertheless, a dedicated configuration is needed to make use of this option (not covered in this class).

The following commands are examples using the option -systempki:

  • sapcontrol -systempki <path_to_instance_profile><name_of_instance_profile> -nr <instance_number> -function StartSystem ALL

  • sapcontrol -systempki <path_to_instance_profile><name_of_instance_profile> -nr <instance_number> -function StopSystem LEVEL 3

Stop of an SAP Instance Using SAPControl

Use SAPControl to Stop specific Instances of an SAP system

If the administration is planning to stop only a specific instance type, this action can also be done using a StopSystem command. In case all AS instances should be stopped, the option LEVEL with value 3 can be executed. All instances with lower priorityLEVEL values remain up-and-running, for example the ASCS instance (if existent). With StopSystemLEVEL 1, also the ASCS instance would be stopped (but not an installed ERS instance!).

Stop and Start an SAP System Using SAPControl

You want to stop and start the SAP system using SAPControl on the command line level.

Steps

  1. Check at the operating system level, whether your SAP system is running. Use, for example, the formerly initialized Remote Desktop Connection to log on to the host of your SAP system.

    1. Log on to the host of your assigned training SAP system with user <sid>adm and the password using, for example, Remote Desktop Connection (XRDP).

    2. Use the System Monitor on operating system level to display an overview of processes (alternatively you can use the SAP MC).

  2. Use the SAPControl command in a terminal session or XTerm to stop the entire SAP system.

    1. In the terminal or XTerm, enter the command sapcontrol -nr <instance number> -function StopSystem ALL to stop your SAP system completely.

      Replace "<instance number>" by " any of your own instance numbers, depending on the training system assigned to you. When stopping or starting a complete SAP system, the "<instance number>" is only for verification purposes.

      • S4D: instance numbers "10", "11", "12"
      • S4Q: instance numbers "20", "21", "22"
      • S4P: instance numbers "30", "31", "32"

      Result

      The entire SAP system is stopped.
  3. Check at the operating system level, whether your SAP system was stopped and start the SAP system using SAPControl on the command line level.

    1. Check in the System Monitor whether processes exist related to your SAP system (alternatively you can use the SAP MC).

      Note

      Remember that sapstartsrv (daemon) processes are still running if purely the SAP system was stopped.
  4. Use the SAPControl command in the terminal session or XTerm to start the entire SAP system.

    1. At the operating system level, open the Terminal (from the toolbar: ApplicationsUtilitiesTerminal) to start the SAP system.

    2. In the Terminal or XTerm, enter the command sapcontrol -nr <instance number> -function StartSystem ALL to start your system.

      Replace "<instance number>" by " any of your own instance numbers, depending on the training system assigned to you. When stopping or starting a complete SAP system, the "<instance number>" is only for verification purposes.

      • S4D: instance numbers "10", "11", "12"
      • S4Q: instance numbers "20", "21", "22"
      • S4P: instance numbers "30", "31", "32"
    3. In the System Monitor check if the kernel processes have been started (alternatively you can use the SAP MC).

      Result

      The following kernel processes should be running at the operating system level after your system has been started: SAP_<SID>_<Instance_name><instance_number>_<Process Type>.For example, SAP_S4Q_20_ENQ (enqueue server) or SAP_S4Q_21_W8 (work process), if you are administering S4Q.

Start and Stop Using SAP MMC

The Microsoft Management Console (SAP MMC) is used on Windows operating system platforms. The installation of an SAP system on Windows adds a Snap-in to make available SAP systems in the console, in order to provide start and stop functions. This tool, with the Snap-in, is called SAP MMC and can be used on any Windows operating system platform, so even on front-end computers. SAP systems on platform UNIX/Linux can be included using the Snap-in.

The SAP MMC is OS-dependent and provides functions comparable to the SAP MC.

Note

In this class, the SAP Microsoft Management Console (SAP MMC) is only covered for the sake of completeness. SAP recommends to use the OS-independent SAP MC as graphical tool to start and stop SAP systems.

Start and Stop an SAP System using the SAP MMC

The following figure describes the start of an ABAP based SAP system.

When stopping or restarting an SAP system in the SAP MMC, options will be provided on how to shutdown. There is no difference in comparison to the already discussed tools SAP MC and SAPControl. The following figure shows the corresponding options.

Log in to track your progress & complete quizzes