Run Oracle SQL script and exit from sqlplus.exe via command prompt

Another way is to use this command in the batch file:

echo exit | sqlplus user/pass@connect @scriptname

Leave a Comment