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: Timo Haatainen <Timo.Haatainen_at_tietogroup.com>
Date: 1997/11/19
Message-ID: <34728879.36B5@tietogroup.com>#1/1

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 Wed Nov 19 1997 - 00:00:00 CST

Original text of this message

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