写了个小软件,oracle服务比较费资源 平时服务设置成手动,用这个批处理直接打开、关闭服务,很实用!!
@ echo off &title oracle服务软件color 0a
echo --------------------------------------------------------------------------------
echo.
echo 请 选 择 操 作 步 骤
echo.
echo 1.开启oracle的服务
echo 2.关闭oracle的服务
echo.
echo made by Mars
echo.
echo --------------------------------------------------------------------------------
set /p orcl=
set "orcl=%orcl:"=%"
if "%orcl%"=="1" goto start
if "%orcl%"=="2" goto stop
:start
net start "OracleDBConsoleorcl"
net start "OracleOraDb11g_home1TNSListener"
net start "OracleServiceORCL"
cls
echo oracle服务开启成功
pause
exit
:stop
net stop "OracleDBConsoleorcl"
net stop "OracleOraDb11g_home1TNSListener"
net stop "OracleServiceORCL"
cls
echo oracle服务关闭成功
pause
exit