我的机子上装了orcal平时不用的时候服务开着浪费资源,用的时候在去开服务麻烦,请高人帮写个批处理,能启动OracleServiceORCL和OracleOraDb10g_home1TNSListener这两个服务,
联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
@echo off
call :quiet>nul 2>&1
goto :EOF
:quiet
%systemroot%\system32\sc.exe config OracleServiceORCL start= DEMAND
%systemroot%\system32\sc.exe start OracleServiceORCL
%systemroot%\system32\sc.exe config OracleOraDb10g_home1TNSListener start= DEMAND
%systemroot%\system32\sc.exe start OracleOraDb10g_home1TNSListener
%systemroot%\system32\sc.exe config OracleOraDb10g_home1iSQL*Plus start= DEMAND
%systemroot%\system32\sc.exe start OracleOraDb10g_home1iSQL*Plus
%systemroot%\system32\sc.exe config OracleDBConsoleorcl start= DEMAND
%systemroot%\system32\sc.exe start OracleDBConsoleorcl
rem 3800+需要90秒才能启动完OracleDBConsoleorcl服务
rem %systemroot%\system32\ping.exe -n 90 127.0.0.1>nul
%systemroot%\system32\sc.exe config OracleCSService start= DEMAND
%systemroot%\system32\sc.exe start OracleCSService