If you still want a BAT approach you can do it in a single file:
@echo off
(
echo / as sysdba
echo startup
) | sqlplus -s
A batch file will work but it's probably better to figure out why it isn't starting on boot in the first place. Make sure the service is set to automatic. Check the registry settings and make sure it's set to autostart the instance (I don't have any 8i left around so I'm not sure of the exact settings).
Then check the alert log for startup errors.
Main Topics
Browse All Topics





by: riazpkPosted on 2006-04-16 at 03:46:19ID: 16463743
create a bacthfile (say dbstart.bat) having contents:
sqlplus "/ as sysdba" @oradbastart (you will have to mention full path for this file)
where oradbstart.sql should contain:
startup
exit
Add dbstart.bat in stratup menu of windows.