cancel
Showing results for 
Search instead for 
Did you mean: 

startsap as a windows service

Former Member
0 Kudos

Hi there,

I would like to put the startsap and stopsap as a windows service, how can I do that?

Regards,

Walde

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

yes, that´s correctly. I want to start the system as soon as the Windows is started.

I have a Windows 2003 Server.

Regards,

Walde Requena

Former Member
0 Kudos

Hi,

you can make .cmd file for sapstart script and install this file as windows service.

but stopsap not possible as windows services.

regards,

kaushal

antonio_voce
Contributor
0 Kudos

Hi here an example for a bat ( you can insert in startup ) or cmd to add as a windows service so you don't need to logon to server.

where d: is the disk of your USR dir

R3T is the SID

nr is system number

SAPDIAHOST is the hostaname of your machine.

to install as a service you can use NTSCMGR command

-


@echo off

d:

cd \usr\sap\r3t\sys\exe\run

startsap name=R3T nr=00 SAPDIAHOST=saptest

pls reward if this help you.

Antonio Voce.

Edited by: Antonio Voce on May 29, 2008 3:27 PM

Answers (4)

Answers (4)

holger_mundhahs
Explorer
0 Kudos

Hello,

maybe I don't understand the problem right, but on Windows there is no need for a script to start SAP after a boot.

Just add

Autostart = 1

to your start profile, and after starting the Windows service the instance will be automaticly started too.

Regards

Holger

Former Member
0 Kudos

Hi,

the solution of Holger sounds good, but I tried to add the parameter to my SAP start profile using Transaction RZ10.

According to the error I got, when I tried to save "Autostart" is not a known parameter.

The only clue I got at service.sap.com was Note 80474, but this is about a gateway server.

I don't think this is exactly right.

So what I'm doing wrong?

holger_mundhahs
Explorer
0 Kudos

Hello Daniel,

yes, RZ10 doesn't "know" this parameter, but it still works. I've running it on:

4.6C (Kernel 4.6D)
6.20 (Kernel 6.40)
6.40 (Kernel 6.40)
7.00 (Kernel 7.00)

I've already the value in the profile an d RZ10, but on my systems the "CHECK (F8)" in RZ10 doesn't show any warning or error.

But I can remember this message.

Regards

Holger

Former Member
0 Kudos

Hi There,

It have worked

Thank you very much guys

Regards

antonio_voce
Contributor
0 Kudos

you are welcome !

Bye.

Antonio Voce.

Former Member
0 Kudos

I believe you want to start the system as soon as Windows start. Which Windows version do you have?

In windows the instance is installed as service and the startup type can be set to Automatic.

Regards,

Sudhir

antonio_voce
Contributor
0 Kudos

Hi ,

sorry if I answer with a question : what is your target ?

Antonio Voce.