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

Home -> Community -> Usenet -> c.d.o.server -> Re: Utility for extracting table's data into flat file ?

Re: Utility for extracting table's data into flat file ?

From: Peder Holst <pederh_at_elektrosoft.se>
Date: 1997/11/24
Message-ID: <01bcf8ff$a69bab60$1a0a0a0a@pederh>#1/1

If you want to have the option of treating your textfile almost as a database table I suggest you look att http://www.sqlmover.com in combination with the MS or Intersolv ODBC driver. Any delimiter, WHERE clauses, concatenation, insert missing info, call system functions like date and string functions, transaction control ... Download both the MS ODBC driver and SQLMover from the site and use 1JHHYDOHG as key. Peder Holst, pederh_at_elektrosoft.se

Timo Haatainen <Timo.Haatainen_at_tietogroup.com> wrote in article <34728879.36B5_at_tietogroup.com>...
> Shirley Donor wrote:
> >
> > Is there an Oracle Utility that can dump a table's data
> > into a flat file ?
> >
> > Thank you very much.
> >
> > --
>
> If you want to move table data between Oracle databases you can use
> utility exp (and imp). It dumps data in binary format, I quess.
>
> To make an ASCII file you can try the following:
>
> SQL> set pagesize 200000
> SQL> -- Additional formatting commands here
> SQL> spool myfile.txt
> SQL> select * from mytable;
> SQL> spool off
>
> Now you have file myfile.txt in your working directory.
>
> Hope this helps.
> --
>
> Timo Haatainen
> Carelcomp Forest Oy
>
  Received on Mon Nov 24 1997 - 00:00:00 CST

Original text of this message

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