Skip to Main Content

SQL & PL/SQL

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 file not spooling all the records in the SQL statement

User_YFE93May 20 2013 — edited May 21 2013
Hello,

I am trying to spool a SQL statement to generate a CSV file in Unix server. Total record count expected in the file is 674,378 where as the spooled output file contains only 637256 records. When I do a count on the sql statement it gives the expected count. I could find where exactly the records are missing. Can somebody help me with the issue if I am missing any parameters?

Script
**********************
set termout off
set arraysize 200
set echo off
set verify off
set trimspool on
set headsep off
set pagesize 0
set pages 0
set feed off
set linesize 3000


spool &1.GL_Extract_&2..csv

WHENEVER SQLERROR EXIT FAILURE ROLLBACK;

<<<<SQL Statement>>>>

spool off

**********************************************

Thanks,
Sriram

Edited by: 959903 on May 21, 2013 6:29 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 18 2013
Added on May 20 2013
10 comments
3,621 views