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: <joel-garry_at_home.com>
Date: 25 Jul 2005 17:16:21 -0700
Message-ID: <1122336981.536800.267360@g49g2000cwa.googlegroups.com>


I seem to get stuff fast enough with a simple sqlplus -s << EOF > trans1$$.dat
$schema/$password
set colsep |
set verify off
set echo off
set feedback off
set pages 0
set heading off
set termout off
set linesize 100
select
...

from ...
where ... and
...

;
EOF Your colsep and linesize may vary. Also, you can echo the commands into sqlplus and then on to whatever unix utilities you need to transform and clean.

There's probably some I forgot, so show all in sqlplus.

jg

--
@home.com is bogus.
Billionaire next door:
http://www.forbes.com/forbes/1999/1011/6409050a.html
Received on Mon Jul 25 2005 - 19:16:21 CDT

Original text of this message

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