我使用的是oracle11,如果版本不同可以把Listener名字改下就好
@echo off
@echo Oracle服务
:menu
@echo 1 启动服务,2 关闭服务, 3 退出程序
set /p s=:123 (start,stop,exit):
if "%s%"=="1" goto:start
if "%s%"=="2" goto:stop
if "%s%"=="3" goto:exit
goto:menu
:start
net start OracleOraDb11g_home1TNSListener
net start OracleServiceORCL
net start OracleDBConsoleorcl
net start OracleVssWriterORCL
@echo oracle服务已全部启动
goto exit
:stop
net stop OracleOraDb11g_home1TNSListener
net stop OracleServiceORCL
net stop OracleDBConsoleorcl
net stop OracleVssWriterORCL
@echo oracle服务已全部关闭
goto exit
:exit
@echo 程序已完成
pause exit