on 10-27-2009 9:22 AM
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.
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....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
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
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.
>>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
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
try this:
%SAPEXE%\stopsap.exe name=SSM nr=00 SAPDIAHOST=SSSMVV01
check the SAPserviceSSM is started, check that SAPMMC see your SSM instance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
What Windows OS user are you using to start that command? it should be SSMADM.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.