Skip to Content
Technical Articles
Author's profile photo Roman Gorbenko

Configure your SAP application servers for an automatic-start after reboot. Step-by-step guide

Prerequisites.

You want to configure your SAP application servers for an automatic-start after reboot

Resolution for Windows environment.

  1. Create batch-file sapstart.bat
ping 127.0.0.1 -n 150 > nul
E:\usr\sap\<SID>\ASCS00\exe\startsap name=<SID> nr=00 SAPDIAHOST=<host> > C:\Scripts\sapstartASCS00.log
ping 127.0.0.1 -n 50 > nul
E:\usr\sap\SID\DVEBMGS01\exe\startsap name=<SID> nr=01 SAPDIAHOST=<host> > C:\Scripts\sapstartDIA.log
For this example ASCS (instance number – 00 ) and PAS (instance number – 01) are located on the host – <host>
and have SID – <SID>
  1. Create a Schedule task for batch-file sapstart.bat
Name – SAPSTART
Triggers – At Startup
Action  – Start a program (sapstart.bat)
Security options:
User –  SAPService<SID> (The SAP System administrator)
Run whether user is logged on or not

 

Conclusion.

We must keep in mind about SAP starting sequence:
DB – ERS – ASCS – PAS/AAS
So this approach will be good only for DEV environment where ASCS and PAS usually are located on the same host

Assigned Tags

      3 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo S Sriram
      S Sriram

      Hi Roman.

      Nice one, but the before starting the SAP Application server, your SAP CI should be up and running.

      Regards

      Sriram

      Author's profile photo Dominik Kastner
      Dominik Kastner

      Hi Roman,

      startsap should not be used anymore, It is deprecated - note 1763593

       

      BR Dominik

      Author's profile photo Anouar ABDERRAHIM
      Anouar ABDERRAHIM

      Hi,

       

      what about Linux Environnement ?

       

      Kr.