现在的位置: 首页 > 综合 > 正文

使用批处理启动及关闭SAP MMC for ECC6

2013年08月23日 ⁄ 综合 ⁄ 共 849字 ⁄ 字号 评论关闭

以前有写过使用批处理启动及关闭SAP MMC IDES47的文章,请参见:http://blog.csdn.net/baiboyd/archive/2010/01/11/5171557.aspx。今天来讲讲ECC6是如何实现的(这是本人自动摸索出来的),为SQL Server版为例。

首先将相关服务设置为手动启动。

批处理启动SAP:

@net start SAPOsCol
@net start SAPECC_00
@net start MSSQLSERVER
@net start SQLSERVERAGENT
D:/usr/sap/ECC/DVEBMGS00/exe/startsap.exe name=ECC nr=00 sapdiahost=baiboyd user=baiboyd/Bryan password=******
exit

将以上命令写入记事本,并另存为StartSAP.bat。

批处理关闭SAP:

D:/usr/sap/ECC/DVEBMGS00/exe/stopsap.exe name=ECC nr=00 sapdiahost=baiboyd user=baiboyd/Bryan password=******
@net stop SAPECC_00
@net stop SAPOsCol
@net stop SQLSERVERAGENT
@net stop MSSQLSERVER
exit

将以上命令写入记事本,并另存为StopSAP.bat。

以后启动和关闭SAP服务器直接运行这两个批处理文件即可(注:在Windows 7下需要以管理员身份运行)。

比之前的多了“user=baiboyd/Bryan password=******”,是因为登录ECC6 MMC时,要求输入当前Windows用户的密码。其中baiboyd是我的主机名,Byan是我的Windows帐号,password就是Windows帐号的登录密码。

另外,startsap和stopsap使用了绝对路径,因为我发现它们在Windows 7下直接输入命令不起作用。

以上文字都是做懒人的结果。

抱歉!评论已关闭.