You can also use "net stop" and "net start" commands from the batch file to stop and start the service.
Adar Yechiel Rechovot, Israel Andrew Kerber wrote:
This is pretty much a shot in the dark, but you might try re-creating the password file.I tried connecting as sysdba but end up with ORA-12560 (protocol adaptor error) and the only way to solve this is to restart the service which autostarts the database.