oracle pl sql dump result into file
Posted
by CC
on Stack Overflow
See other posts from Stack Overflow
or by CC
Published on 2010-03-31T07:42:17Z
Indexed on
2010/03/31
7:43 UTC
Read the original article
Hit count: 450
Hi.
I'm working on a pl sql stored procedure. What I need is to do a select, use a cursor and for every record build a string using values. At the end I need to write this into a file. I try to use dbms_output.put_line("toto") but the buffer size is to small because I have about 14 millions lines. I call my procedure from a unix ksh. I'm thinking at something like using "spool on" (on the ksh side) to dump the result of my procedure, but I don' know how to do it (if this is possible)
Anyone has any idea?
Thank alot.
C.C.
© Stack Overflow or respective owner