Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Spool Command issue

697176Apr 21 2009 — edited Apr 21 2009
I am using a spool command to export a table to a flat file. But I am not seeing any data on output file but it creates a balnk file.

here is the code that I am using

SET termout OFF;
SET feedback OFF;
SET pagesize 0;
SET linesize 800;
SET heading OFF;
SET TRIMOUT ON;
SET trimspool ON;
SPOOL \\accdf\public\abc.txt append
SELECT id
|| '|'
|| Message
|| '|'
|| body
|| '|'
|| ROOM_No
|| '|'
|| ROOM_Cat
|| '|'
|| USER_No
|| '|'
|| Cdate

FROM D_Mail_HISTORY;

SPOOL OFF;
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 19 2009
Added on Apr 21 2009
18 comments
3,795 views