Starting and Stopping SAP Systems Using SAPControl
You can use SAPControl to start or stop an SAP system from the command line.
Prerequisites
You are logged on to the SAP system host as user <sapsid>adm.
Context
This section only lists the basic commands how to start or stop an SAP system. You can find a detailed list of all SAPControl options and features in the command line help, which you can call as follows:
You can start an SAP system by executing the following commands from the command line (<Instance_Number> can be the number of any instance of the SAP system):
You can stop an SAP system by executing the following commands from the command line (<Instance_Number> can be the number of any instance of the SAP system):
With the following command you get a list of system instances, their status, and the ports used by them (<Instance_Number> can be the number of any instance of the SAP system):
If you get an error like "FAIL: NIECONN_REFUSED", execute sapcontrol -nr <Instance_Number> -function StartService <SAPSID> to ensure that sapstartsrv is running. Then execute again the start or stop command.