How to Start and Stop S/4 HANA 2020

 

  • How to start and stop SAP S/4 HANA 2020

 

I will explain how to start and stop SAP S/4 HANA 2020.

The Startsap and Stopsap commands, which have been used from SAP 4.6C to ERP 6.0 until now, cannot be used.

However, the familiar commands, startsap and stopsap, are simple scripts, and it will not hurt to use previous versions.

So, I will explain how to use the sapcontrol command and startsap and stopsap commands used in the new S/4 HANA 2020.

  • HANA 2.0 Start and Stop Method (In case of Single Node)
  • S/4 HANA 2020 Start and Stop method

 

  1. HANA 2.0 Start and Stop Method (In case of Single Node)

Execute Command as <SID>adm user at OS-level.

>HDB start

Alternatively, you can start it with the sapcontrol command as shown below.

>sapcontrol -nr <InstNo> -function Start

>sapcontrol -nr 10 -function Start

Execute a command to check whether the process starts normally.

>sapcontrol -nr 10 -function GetProcessList

2. How to start HANA 2.0 (in case of single node)

This is only stopped on local nodes.

>HDB stop

Execute Command as <SID>adm user at OS-level.

Alternatively, you can do it with the sapcontrol command.

>sapcontrol -nr <InstNo> -function Stop

>sapcontrol -nr 10 -function Stop

Execute a command to check whether the process stop normally.

>sapcontrol -nr 10 -function GetProcessList

3. Check the process of HANA DB.

>HDB info

>HDB proc

4. In the case of multiple HANA Nodes, Multi-Node is performed with the following command.

This case is for Distributed system.

This is a command to stop/start/status all HANA DB processes in multiple nodes at once.

This is done by logging in as the root user.

Action Command
Start the HANA system /usr/sap/hostctrl/exe/sapcontrol -nr <instance_number> -function StartSystem<sid>
Stop the HANA system /usr/sap/hostctrl/exe/sapcontrol -nr <instance_number> -function StopSystem<sid>
Query current host status /usr/sap/hostctrl/exe/sapcontrol -nr <instance_number> -function GetSystemInstanceList

 

5. SAP HANA S/4 HANA 2020 Start sequence and instructions

This is the sequence of starting S/4 HANA.

5-1) HANA Database

5-2) ASCS Instance

5-3) ABAP Instance

Execute Command as <SID>adm user at OS-level.

>sapcontrol -nr <InstNo> -function Start

or

>sapcontrol -nr <InstNo> -function StartSystem

Execute a command to check whether the process starts normally.

>sapcontrol -nr <InstNo> -function GetSystemInstanceList

 

6. This is how to perform S/4 HANA 2020 Start with sapcontrol.

6-1) Execute Command as <SID>adm user at OS-level.

>sapcontrol -nr <InstNo> -function Start

>sapcontrol -nr 00 -function Start

sapcontrol -nr 01 -function Start

Execute a command to check whether the process starts normally.

>sapcontrol -nr <instance number> -function GetProcessList

>sapcontrol -nr 01 -function GetProcessList

>sapcontrol -nr 00 -function GetProcessList

7. SAP HANA S/4 HANA 2020 Stop command is executed.

This is the order of S/4 HANA stop.

5-1) ABAP Instance

5-2) ASCS Instance

5-3) HANA Database

 

Execute Command as <SID>adm user at OS-level.

> sapcontrol -nr <instance number> -function Stop

or

>sapcontrol -nr <instance number> -function StopSystem

Execute a command to check whether the process stop normally.

> sapcontrol -nr <InstNo> -function GetSystemInstanceList

 

8. This is how to perform S/4 HANA 2020 Start with sapcontrol.

Execute Command as <SID>adm user at OS-level.

>sapcontrol -nr <instance number> -function Stop

>sapcontrol -nr 01 -function Stop

>sapcontrol -nr 00 -function Stop

Execute a command to check whether the process starts normally.

>sapcontrol -nr <instance number> -function GetProcessList

>sapcontrol -nr 01 -function GetProcessList

>sapcontrol -nr 00 -function GetProcessList

9. How to start and stop S/4 HANA 2020 using Startsap and Stopsap scripts.

Since S/4 HANA 2020 is no longer supported, it is used by copying from the previous kernel file.

Download the SAP Kernel file.

10. Extract the compression with the SAPCAR command.

11. From the extracted contents, copy the startsap and stopsap files to the exe folder.

>cp stoptsap /sapmnt/<SID>/exe/uc/linuxx86_64

>cp startsap /sapmnt/<SID>/exe/uc/linuxx86_64

12. At OS-level, execute Startsap Script Command as <SID>adm user.

>startsap

13.At OS-level, execute Stoptsap Script Command as <SID>adm user.

>stopsap