Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Extracting ASCII files from database
I think it's far easier to use sql*plus, provided you're comfortable with
fixed length output. Using a procedure with DBMS_OUTPUT is bad because it has
a limited buffer (100,000 bytes) after which it dies and you get nothing
(although my understanding is that this has improved in Oracle8).
You can also do '.csv' style output by having your query concatenate all of your columns into a single comma-delimited string with quotes around text. The query is laborious to build, however.
Good luck.
-Brendan
In article <35A939BC.7FA48F00_at_sachsenlb.de>,
Sigrid Staudte <sstaudte_at_sachsenlb.de> wrote:
> Hi,
>
> I have to extract an ASCII file with fixed length of fields from a
> database table. This file should be transfered to another server and
> loaded by the sql*loader. Now I´m searching for the best way to extract
> the ASCII file.
> Can I use the spool command and sql*plus or is it necessary to write a
> pl/sql-programm ?
> Who can give an advice?
> Who knows a tool what can help to solve the problem ?
>
> Regards,
>
> Sigrid
>
-----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum Received on Mon Jul 13 1998 - 14:34:50 CDT
![]() |
![]() |