使用批處理啟動及關閉SAP MMC for ECC6

來源:互聯網
上載者:User

以前有寫過使用批處理啟動及關閉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下直接輸入命令不起作用。

以上文字都是做懶人的結果。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.