Computing.Net > Forums > Database > Oracle spool output to file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Oracle spool output to file

Reply to Message Icon

Name: anilcgowda
Date: May 10, 2006 at 13:03:33 Pacific
OS: Unix
CPU/Ram: 1GB
Comment:

Hi,

I'm trying to spool the output of my query in SQL Plus in Oracle to an output file. But, it includes column names before each row. Is there a way to spool the output to a file without column names included.

I'm using following set of commands:

SQL> Spool on
SQL> Spool c:\spooltext.txt
SQL> Query
SQL> Spool off

Please guide me as to what steps needs to be executed to avoid column headers.

Thanks,
Anil



Sponsored Link
Ads by Google

Response Number 1
Name: lchi2000g
Date: June 1, 2006 at 11:00:40 Pacific
Reply:

SQL> Spool on
SQL> set heading off <===
SQL> Spool c:\spooltext.txt
SQL> Query
SQL> Spool off

Luke Chi


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Database Forum Home


Sponsored links

Ads by Google


Results for: Oracle spool output to file

SQL+ how to spool with data padding www.computing.net/answers/dbase/sql-how-to-spool-with-data-padding/191.html

Unload data from table to file www.computing.net/answers/dbase/unload-data-from-table-to-file/362.html

write into text file using spool www.computing.net/answers/dbase/write-into-text-file-using-spool-/136.html