Configure your SAP application servers for an automatic-start after reboot. Step-by-step guide
You want to configure your SAP application servers for an automatic-start after reboot
Resolution for Windows environment.
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>
Create a Schedule task for batch-file sapstart.bat
Name – SAPSTART
Triggers – At Startup
Action – Start a program (sapstart.bat)
User – SAPService<SID> (The SAP System administrator)
Run whether user is logged on or not
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
Nice one, but the before starting the SAP Application server, your SAP CI should be up and running.
startsap should not be used anymore, It is deprecated - note 1763593
what about Linux Environnement ?