Starting SQLPlus via batch script
Hey Guys,
I'm trying to execute these lines through a batch file. However, the program stops at the SQL> prompt after connecting to SQLplus and does not execute the rest of the lines, I have to then manually run them.
sqlplus user/pass@database
set linesize 4000
set pagesize 0
set feedback off
:: RUN Usage_Report_Query
set markup html on spool on
spool Usage_Report_%systemdate%.xls
@Usage_Report_Query.sql
set markup html off spool off
Any help is greatly appretiated