Skip to Content
Technical Articles

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
1 Comment
You must be Logged on to comment or reply to a post.