也许我们经常会有这样一些困惑,如果让oracle随开机启动,我们得电脑内存会被占用殆尽,运行速度会变的异常慢,但是,手动一个一个去启动和关闭,又会非常麻烦。为了解决这个问题,我们有一个办法,那就是写两个bat文件,批处理启动和关闭:
1.批处理启动(oracle_start.bat):
@echo off net start "Oracle ORCL VSS Writer Service" net start OracleDBConsoleorcl net start OracleMTSRecoveryService net start OracleOraDb11g_home1ConfigurationManager net start OracleORaDb11g_home1TNSListener net start OracleServiceORCL pause :end
2.批处理关闭(oracle_stop.bat):
@echo off net stop "Oracle ORCL VSS Writer Service" net stop OracleDBConsoleorcl net stop OracleMTSRecoveryService net stop OracleOraDb11g_home1ConfigurationManager net stop OracleORaDb11g_home1TNSListener net stop OracleServiceORCL pause :end
时间: 2024-10-27 13:24:44