cancel
Showing results for 
Search instead for 
Did you mean: 

Start SAP Script

Former Member
0 Kudos

Hi Guys,

We installed SAP ERP system on windows VM and We are testing failover.

From VM side we have two host

HOST1 & HOST2

Our production system is running on HOST2 and rest of dev/qas systems are on HOST1.

During our testing i turn-off the power for HOST2 and see that OS starts at HOST1, which is perfect.

Now i have to start data-base and SAP manually.

Need your suggestion whether HOW  we can write a script to do this automatically ?

Script in such a way first it will start database and then check whether sidadm is able to connect database (activate database) or check R3trans -d etc, after confirmation it will start sap.

SAP Environmnet

OS :- Windows 2008

Database :- DB2 9.7

SAP Product :- ECC 6.0 with EHP 6

Regards

Anuj

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member182034
Active Contributor
0 Kudos

hi Anuj,

You can make and configure the scripts(Start & Stop SAP) with the help of below link.

Windows scripts to Start - Stop SAP multi-instances

Regards,

former_member192421
Active Participant
0 Kudos

Hi Anuj,

I think this is quite possible.

Check out this link once.

Execute a script a startup and shutdown

Add startup and shutdown scripts in Windows


Regards,

Rajkumar

isaias_freitas
Advisor
Advisor
0 Kudos

Hello Anuj,

I don't know about the database.

Regarding the SAP, you can add the parameter "Autostart = 1" (the first "A" needs to be in uppercase letter) at the START profile. If there is no START profile at your system, then add it to the instance profile.

Note that if SAP starts before the database, it will not be accessible, and it may even stop itself.

Regards,

Isaías