First you say its inserting into an Oracle table (so time/size shouldn't be an issue), then you say its outputting flat files.
Which is it, or is it both?
As asked, exactly what lang are you using (eg bare SQL at cmd line, or eg Perl, or C or .... ?), have you got access to the src code or is it just a binary you can't change?