oracle、mysql数据库停止与启动的批处理文件

1.关机,取消关机

::关机
echo 30秒之后关机
%systemroot%\system32\shutdown -s -t 30
 
::取消关机
echo 取消关机
%systemroot%\system32\shutdown -a

2.oralce,或者mysql滴服务启动与关闭

::oralce service start
net start OracleVssWriterORCL
net start OracleDBConsoleorcl
net start OracleOraDb10g_home1iSQL*Plus
net start OracleOraDb10g_home1TNSListener
net start OracleServiceORCL
 
::oralce stop service
net stop OracleServiceORCL
net stop OracleOraDb10g_home1TNSListener
net stop OracleOraDb10g_home1iSQL*Plus
net stop OracleDBConsoleorcl
net stop OracleVssWriterORCL
 
::mysql start service
net start MySQL
 
::mysql stop service
net stop MySQL

相关推荐