Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Write millions of records of data to a flat file

Re: Write millions of records of data to a flat file

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Fri, 22 Jul 2005 23:23:51 +0200
Message-ID: <fso2e1dsvp8clmm42adt6j4jp6cvkikmus@4ax.com>


On 22 Jul 2005 13:27:14 -0700, "nickli" <ningli2000_at_hotmail.com> wrote:

>Hi,
>
> I have a table which contains over 30 million rows of data (over 50
>columns). I need to write all the data to a flat file with specified
>delimiter, header and output file name. Which tool is the fastest for
>this task? I can think of tools such as PL/SQL UTL_FILE package, Java
>stored procedure, Perl DBI, among others.
>
> Thanks in advance.
>
> Nick Li

Anything using array fetches, so BULK COLLECT in PL/SQL combined with UTL_FILE should do fine.
Anything else would be probably slower, because it is running outside the database and has extra network traffic associated.

--
Sybrand Bakker, Senior Oracle DBA
Received on Fri Jul 22 2005 - 16:23:51 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US