The Oracle (tm) Users' Co-Operative FAQ
The line length in the utl_file package is limited to 1023 bytes - is there a workaround ?
| Author's name: Connor McDonald
Author's Email: connor_mcdonald@yahoo.com |
Date written: August 13, 2001 Oracle version(s): 8.0+ |
| The line length in the utl_file package is limited to 1023 bytes - is there a workaround ? |
A change to UTL_FILE came along some time ago to allow for output lines to be up to 32k - its just that for a long time this change was not in the documentation, and even when it appeared, it was not widely publicised.
So instead of
declare f utl_file.file_type; begin f := utl_file.fopen( 'dir', 'file', 'mode' ); end;
you can use the optional fourth parameter to control line width
declare f utl_file.file_type; begin f := utl_file.fopen( 'dir', 'file', 'mode', nnn ); end;
where nnn is can be between 1 and 32767
Further reading: N/A
最后修改时间:2020-04-16 15:12:52
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




