cancel
Showing results for 
Search instead for 
Did you mean: 

How to start and stop SAP in command line(WIN)

Former Member
0 Kudos

Good afternoon, colleagues.

Tell me how I can start / stop SAP from the command line? I know that you can start like that

E:\usr\sap\TST\SYS\exe\uc\NTAMD64\sapstart.exe name=TST nr=00 sapdiahost=test

, but in this case, the sap runs without a profile that is unacceptable.

With a stop seems to be clear, is performed in the

E:\usr\sap\TST\SYS\exe\uc\NTAMD64\stopsap.exe name=TST nr=00 sapdiahost=test

if that is not correct me.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos
Former Member
0 Kudos

Strange, but I stopsap with any parameters gives a message here

------------------------------------------------------------

  USAGE: STOPSAP.EXE name=<SID> nr=<SYSNR> SAPDIAHOST=<host>

  FURTHER INFORMATION:

    - The following executables must be in the same directory:

      sapsrvkill.exe

      sapntwaitforhalt.exe

------------------------------------------------------------

A startup is run only so

sapstart r3

and reports

sapstart=>sapparam(1c): No Profile used.

sapstart=>sapparam: SAPSYSTEMNAME neither in Profile nor in Commandline

SAPSTART finished successfully on Test__00.

And that means No Profile used, that he does not start using a profile?

Former Member
0 Kudos

If you execute sapstart under user <SID>adm, it will use profile values, since the user has environment parameters set.

Regards

George Solc

Former Member
0 Kudos

Of course I run under user <SID>adm.

Former Member
0 Kudos

Managed to solve the problem. To start the instance with a specific profile, run the command:

startsap sapstart.exe name=TST nr=00 sapdiahost=test pf=E:\usr\sap\TST\SYS\profile\TST_DVEBMGS00_Test


And in order to stop the SAP instance to execute a command like this:

stopsap name=TST nr=00 sapdiahost=test

Thank you all for your help! 😃

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Stepan,

In Unix/Linux, commands are as follows:

startsap , stopsap - complete

stopsap r3, startsap r3 - instance only

you must be logged as <SID>adm.

Should be alike in Windows.

Regards

George Solc