cancel
Showing results for 
Search instead for 
Did you mean: 

Erron when execute stopsap from Windows

Former Member
0 Kudos

Dear Expert,

my company use OS Windows. When I execute from command line the command "stopsap name=<SID> nr=<SYSNR> SAPDIAHOST=<host>" nothing happens. If I see the stopsap.log I read this:

SAPSRVKILL failed on SSSMVV01_SSM_00: -2147312566

Cannot connect to DCOM Interface of Start Service: -2147312566

sapntwaitforhalt.exe=>sapparam(1c): No Profile used.

running sapsrvkill.exe SSSMVV01_SSM_00

running sapntwaitforhalt.exe name=SSM nr=00 SAPDIAHOST=SSSMVV01 3600

Please help me.

Regards.

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

For those interested in the answer to the original question....

The DCOM error is reported when the stopsap command if called from outside the running directory.

For the stop sap command to run correctly you will need to change directory to

<DRIVE>:\usr\sap\<SID>\SYS\exe\run

Then issue the stop sap command:

> stopsap.exe name=<SID> nr=<INSTANCE NUM> SAPDIAHOST=<HOSTNAME> pf=<PATH TO PROFILE>

example:

> cd D:\usr\sap\XID\SYS\exe\run

> stopsap.exe name=XID nr=00 SAPDIAHOST=trixyddb04 pf=D:\usr\sap\XID\SYS\profile\START_DVEBMGS00_trixyddb04

STOPSAP exected successfully

This method works for both ABAP and J2EE stacks....

Former Member
0 Kudos

Solution:

Call 'sapstartsrv.exe -t ' from the command line and confirm the dialog box. This should again register the type library that is contained in SAPSTARTSRV. Restart the service. The snap-in works again.

Please see the note: 142100 for detail information.

Former Member
0 Kudos

Hi,

Please check if your SAP and DB services are in automatic startup mode...

User (SIDADM) should be in administrators group to access DCOM Components...

Regards.

Rajesh Narkhede

Former Member
0 Kudos

Windows services of SAP are default as following:

- sapccmsr.00 Manual .\SAPService<SID>

- SAPOsCol Automatic .\<sid>adm

- SAPSMD_98 Automatic .\smdadm

- SAP<SID>_00 Automatic .\SAPService<SID>

- SAP<SID>_01 Automatic .\SAPService<SID>

<sid>adm is in administrators group (default) & SAPService<SID> is not in administrators group (default).

My system is just up after a fresh installation, I think this problem relates to Wins 2008, in Wins 2003 it's ok.

Former Member
0 Kudos

Hi,

SAPService<SID> this user also need to be a member of Administrators group or at least should have rights to start the service independently...

Regards.

Rajesh Narkhede

Former Member
0 Kudos

I don't think so. SAPService<SID> should not be set into administrators group.

Finally, I find the reason why - that's because of Windows 2k8 security.

Former Member
0 Kudos

Toan Do

What changes did you do in windows 2008 security tha made it work?

My scenario is quite similar to yours and I'm still stuck.

Regards,

Ricardo

Former Member
0 Kudos

To be a little more helpful, Can you tell us what the security issue in W2K8 is my man - and how to resolve?

Thanks Rick

Former Member
0 Kudos

in general I would strongly recomment no longer to use stopsap and startsap for scripting.

as of 700 we have sapcontrol.exe which has a much wider functionality to control your SAP system.

for more information about sapcontrol just open a command box as SIDadm and type in sapcontrol.exe.

a good way to start the system is:

sapcontrol -nr 00 -prot PIPE -function Start

sapcontrol will provide returncodes which are more usefull than the one of the older tools.

regards

Peter

Former Member
0 Kudos

Ok,thanks.

sapcontrol -nr 00 -prot PIPE -function Stop

to stop the system.

Is there a way to wait until the system is stopped?

Thanks.

Former Member
0 Kudos

Hi Ferruccio,

Since how long you are facing this problem ?

See the link it may give you some info.

http://help.sap.com/saphelp_nw04/helpdata/en/58/7d8f671e0fa54db744991e200f9111/content.htm

and also apply latest service pack/ updates of windows server 2008 whatever is available....

- Rohit

Former Member
0 Kudos

No, I am using Windows Server 2003

The problem there is from October 2009.

Now, I would prefer to use

sapcontrol

to stop the system but the problem is that I want wait until the system is stopped, because if I use sapcontrol in a script, it returns to the script without to wait that the system is relally shutdown.

Thanks.

Former Member
0 Kudos

>>sapcontrol -nr 00 -prot PIPE -function Stop

>>to stop the system.

>>Is there a way to wait until the system is stopped?

well, I hoped that you where able to run sapcontrol.exe without any arguments to get an overview of the available functions.

among others we have:

StopWait (Stop and Wait for Stopped)

WaitforStopped

for more details see

sapcontrol.exe -h or just sapcontrol.exe

regards

Peter

Former Member
0 Kudos

To solve the problem with sapstartsrv.exe :

note Oss 142100, point 18.

Stop the service SAP<SID>_<NR>

open a prompt in the directory where there is sapstartsrv.exe used by the service SAP<SID>_<NR>

execute

sapstartsrv.exe -t

and choose "Register COM type library only" and choose "OK"

Now restart the service.

After this, stopsap name=<SID> nr=<SYSNR> SAPDIAHOST=<host> works.

former_member204746
Active Contributor
0 Kudos

if problem is really fixed, set this question's status to ANSWERED.

Former Member
0 Kudos

I have the samme problem.

OS=Windows 2008 on x64 server. SAP system= NW 7.0 SP19. Java stack only.

I can start and stop SAP system from SAP-MMC console without any problem, but I can't start/stop from command line.

If I try to start SCS or CI, I get the error:

Start service SAPSID_00 on machine
"hostname"

StartService of SAPSID_00 failed. Error#: 1056

Cannot connect to DCOM Interface of Start Service: -2146959355

The event viewer also show an error:

The server {EFC29CC0-A03C-11D0-A1F2-0000F62893CC} did not register with DCOM within the required timeout.

If I restart all SAP services, it's possible to use start/stop from the command line.

It's look like a timeout problem with DCOM then the server boot, and all services start. Sometimes it's working and sometimes not.

Regard,

Jesper D-K

Former Member
0 Kudos

HI,

i have now the same problem.

Any solutions in the meanwhile???

Thanks.

Marcel

Former Member
0 Kudos

Hi all,

I have the same problem.

- Environment Wins 2k8

- Start SAP using SAPMMC is ok, but cannot start SAP using commnad startsap.exe with dbl-click batch file/run as administrator

File sapstartcon.trc's content is:

Start service SAP<SID>_0 on machine
<hostname>

OpenService of SAP<SID>_0 failed. Error#: 1060

Cannot connect to DCOM Interface of Start Service: -2146959355

Anyone has solution up to now?

Regards,

Toan Do

former_member204746
Active Contributor
0 Kudos

try this:

%SAPEXE%\stopsap.exe name=SSM nr=00 SAPDIAHOST=SSSMVV01

check the SAPserviceSSM is started, check that SAPMMC see your SSM instance.

Former Member
0 Kudos

Eric, thankyou for your reply.

I execute the command mentioned above but the problem seems to persist.

In the stopsap.log I see again

____

SAPSRVKILL failed on SSSMVV01_SSM_00: -2147312566

Cannot connect to DCOM Interface of Start Service: -2147312566

____

The SAP service SSM is started and I see the SSM instance in the SAPMMC console.

former_member204746
Active Contributor
0 Kudos

check Windows security. make sure that SSMADM his part of proper groups and is an admin of your server.

former_member524429
Active Contributor
0 Kudos

Hi,

Please refer this [SAP Note 142100 - Windows: Problems with new SAP service as of Rel. 4.5B|https://websmp130.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/spn/sapnotes/index2.htm?numm=142100] to get some help.

Also look at this [relevant thread|;.

Regards,

Bhavik G. Shroff

former_member204746
Active Contributor
0 Kudos

What Windows OS user are you using to start that command? it should be SSMADM.

Former Member
0 Kudos

Eric, right - I use SSMADM

Thanks

anindya_bose
Active Contributor
0 Kudos

Hi

Please check the link below

http://www.sapfans.com/forums/viewtopic.php?t=92996&highlight=stopsap

By the way, what is your SAP version?

Former Member
0 Kudos

Hi,

we use SAP on windows X64 64 bit unicode 700 Patch 204

Thanks

Former Member
0 Kudos

You SAP MMC to start and stop the SAP Application in Win servers. you can stopsap cmd from dir /usr/sap/SID/sys/exe/run .