Skip to content

Instantly share code, notes, and snippets.

@bulain
Created February 27, 2012 06:22
Show Gist options
  • Save bulain/1921891 to your computer and use it in GitHub Desktop.
Save bulain/1921891 to your computer and use it in GitHub Desktop.
sqlplus to run sql autmatically
# run_sql.bat
sqlplus system/system@xe @test.sql
# test.sql
set echo on;
spool test.log
...your sql
spool off;
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment