Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Using UTL_FILE.PUT() cannot write above 1 kb...

470643Dec 18 2006 — edited Dec 20 2006
Hi,

I'm currentlyt using UTL_FILE.FOPEN()... UTL_FILE.PUT() to write data to a text file from a pl/sql packaged procedure.

It looks like that everytime I'm about to get above 1kb of data in the file I get an error such as:

ORA-06502: PL/SQL: numeric or value error: character string buffer too small
ORA-06512: at "SYS.test_MIGRATION", line 73
ORA-06512: at line 1

Is there something I need to do to be able to write more than 1024 bytes of data?

The process is the following:

FOPEN();
LOOP
-- Write to file
END LOOP;
FCLOSE();

Thanks,

Greg
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 17 2007
Added on Dec 18 2006
4 comments
477 views