@echo off goto Begin OraInit.bat v1.0 - Start/Stop oracle service written 04/04/2002 by Ken Teague ChangeLog: v1.0 04/04/2002 kt initial version INSTALLATION: 1. copy orainit.bat %WINDIR% 2. edit %WINDIR%\OraInit.bat 3. Set the SID, PORT, ORA1-* vars 4. Set ORA var to include the ORA1-* vars you defined :BEGIN set SID=ORCL set VER=80 set ORA1=OracleClientCache%VER% set ORA2=OracleExtprocAgent set ORA3=OracleStart%SID% set ORA4=OracleService%SID% set ORA5=OracleTNSListener%VER% set ORA=%ORA1% %ORA2% %ORA3% %ORA4% %ORA5% if "%1" == "" goto HELP if "%1" == "/?" goto HELP if "%1" == "?" goto HELP if /i "%1" == "/H" goto HELP if /i "%1" == "help" goto HELP if /i "%1" == "start" goto EXECUTE if /i "%1" == "stop" goto EXECUTE :HELP echo. echo Start or Stop the Oracle services. echo. echo Syntax: "%0 [start | stop]" echo. echo. echo INSTALLATION: echo 1. copy %0.bat %WINDIR% echo 2. edit %WINDIR%\%0.bat echo 3. Set the SID, PORT, ORA1-* vars echo 4. Set ORA var to include the ORA1-* vars you defined echo. echo. goto END :EXECUTE for %%a in (%ORA%) do net %1 "%%a" goto END :END