How to execute sqlplus command in bat file ?
882532Nov 27 2011 — edited Nov 7 2012Hello
I have a simple script file that looks like this:
"sqlplus admin/admin as sysdba
shutdown immediate"
But.. when i start this file.bat my system logs but do not make any script. Sqlplus just waiting for command, and when i write "exit" i logout from sqlplus, and then system execute next command, that is "shutdown immediate" but beyond sqlplus (so my base is still working). Is it at all possible to log on and execute commands from file.bat or some other way ?
I'm using oracle 11g, windows 7x64
Regards and thx for help
Edited by: 879529 on 2011-11-27 04:52