I work with datasets that exceeds the millions on a daily basis, most of my work I do at this stage is to write code for extracting the data from the databases into files for other users to use in their business intelligence divisions.
The code that I am currently using is a basic FOR loop which looks like this:
for x in cursor_body
loop
utl_file.put_line(out_file_filename, x.data_line);
end loop;
This takes hours to complete at this stage and I need something that moves a bit faster since this will run on a weekly basis and we have other unix bash jobs that has to run as well.
I've read up on some solutions using a little C or Java to do more efficient date extracts, but I am wondering if there isn't a PL/SQL or SQL way of doing it faster.
Your inputs will be highly appreciated. Thank you.