單位發的ThinkPad T61,太弱小了。windows
問題是我去百度下T61,發現它好貴好貴,真心無力吐槽,還不如給我發臺外星人,便宜點的。。oracle
Oracle一開就內存就不夠了,因此絕對不能讓它開機自啓動!spa
可是每次要用到Oracle就得手工去:cmd -> services.msc -> 一個個點擊開啓!.net
這個讓這麼懶的我沒法忍受,只能怒寫bat命令!code
[plain] view plaincopyblog
sc query state= all > 1.txt ip
把輸出結果導入到1.txt中,打開1.txt,發現oracle相關的服務有:內存
[plain] view plaincopyget
OracleMTSRecoveryService cmd
OracleOraDb10g_home1Agent
OracleOraDb10g_home1ClientCache
OracleOraDb10g_home1HTTPServer
OracleOraDb10g_home1PagingServer
OracleOraDb10g_home1SNMPPeerEncapsulator
OracleOraDb10g_home1SNMPPeerMasterAgent
OracleOraDb10g_home1TNSListener
OracleServiceGT2
OpenOracleServices.bat:
[plain] view plaincopy
@echo on
echo "Open Oracle Services..."
net start OracleMTSRecoveryService
net start OracleOraDb10g_home1Agent
net start OracleOraDb10g_home1ClientCache
net start OracleOraDb10g_home1HTTPServer
net start OracleOraDb10g_home1PagingServer
net start OracleOraDb10g_home1SNMPPeerEncapsulator
net start OracleOraDb10g_home1SNMPPeerMasterAgent
net start OracleOraDb10g_home1TNSListener
net start OracleServiceGT2
echo "Open Oracle Services finished..."
雙擊OpenOracleServices.bat以後:
StopOracleServices.bat:
[plain] view plaincopy
@echo on
echo "Stop Oracle Services..."
net stop OracleMTSRecoveryService
net stop OracleOraDb10g_home1Agent
net stop OracleOraDb10g_home1ClientCache
net stop OracleOraDb10g_home1HTTPServer
net stop OracleOraDb10g_home1PagingServer
net stop OracleOraDb10g_home1SNMPPeerEncapsulator
net stop OracleOraDb10g_home1SNMPPeerMasterAgent
net stop OracleOraDb10g_home1TNSListener
net stop OracleServiceGT2
echo "Stop Oracle Services finished..."
雙擊StopOracleServices.bat以後:
歡迎轉載,但轉載請註明地址: