I am wanting to output a Query to a CSV file and am using the below as a small test;
spool c:\\test.csv select /*csv*/ username, user_id, created from all_u
set echo off spool c:\test.csv select /*csv*/ username, user_id, created from all_users; spool off;