sqlplus, how to send error messages to stdout when set feedback is off and spooling to file [message #257669] |
Thu, 09 August 2007 00:11 |
tberghuis
Messages: 6 Registered: August 2007
|
Junior Member |
|
|
My sql script basically dumps a table to a csv file.
whenever sqlerror exit 1
set termout off
set pagesize 0
set heading off
set feedback off
spool a_file.csv
select col1||','||col2 from table_name;
quit
My problem is that if the DB I log into doesn't contain table 'table_name', the error is not displayed on screen and is written into a_file.csv.
Any suggestions would be greatly appreciated.
Regards
Tom
|
|
|
|
|
|
|
|
|
|
|
|
|