0、吐槽
单位发的ThinkPad T61。太弱小了。
问题是我去百度下T61,发现它好贵好贵。真心无力吐槽。还不如给我发台外星人,廉价点的。
。
Oracle一开就内存就不够了。所以绝对不能让它开机自启动!
可是每次要用到Oracle就得手工去:cmd -> services.msc -> 一个个点击开启。
这个让这么懒的我无法忍受,仅仅能怒写bat命令!
1、查看windows全部服务
sc query state= all > 1.txt
把输出结果导入到1.txt中,打开1.txt,发现oracle相关的服务有:
OracleMTSRecoveryService OracleOraDb10g_home1Agent OracleOraDb10g_home1ClientCache OracleOraDb10g_home1HTTPServer OracleOraDb10g_home1PagingServer OracleOraDb10g_home1SNMPPeerEncapsulator OracleOraDb10g_home1SNMPPeerMasterAgent OracleOraDb10g_home1TNSListener OracleServiceGT2
2、编写开启服务bat
OpenOracleServices.bat:
@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之后:
3、编写关闭服务bat
StopOracleServices.bat:
@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之后:
emaster 关注信息安全的胖子
欢迎转载,但转载请注明地址:http://blog.csdn.net/emaste_r/article/details/25457815