spool not running from sql script [message #650696] |
Fri, 29 April 2016 14:11 |
TorontoTrader
Messages: 8 Registered: January 2007
|
Junior Member |
|
|
i am running this following script from sqlplus by using @pathname\scriptfile but the output from the script is not outputting to output.txt. infact the sql script is getting populated in the output.txt
how i can i fix it so my select * from DAILYSTATS_ROWCOUNT gets spooled to file as i wnat to schedule this in a batch job
SET LINES 32000
SET TERMOUT OFF ECHO OFF NEWP 0 SPA 0 PAGES 0 FEED OFF HEAD OFF TRIMS ON TAB OFF
SET MARKUP HTML PREFORMAT ON
SET COLSEP '|'
set pagesize 50000
set heading on
SET SERVEROUTPUT ON
spool e:\scripts\output.txt
select * from DAILYSTATS_ROWCOUNT
spool off
/
|
|
|
|