ORA-20000:ORU-10027:buffer overflow,limit of 2000 bytes.
2016-04-01 09:40
375 查看
在sql*plus 等工具使用 dbms_output函数进行输出时,如若输出的内容很多,会出现ORA-20000:ORU-10027:buffer overflow,limit of 2000 bytes.错误,这是由于输出缓冲区溢出造成的,有两种方法来解决!
1、增加输出缓冲区大小
SET SERVEROUTPUT ON SIZE 1000000;
2、DBMS_OUTPUT缓冲区设置限制
在输出的最开始运行DBMS_OUTPUT.ENABLE(buffer_size => null),说明不启用输出限制
以下为oracle DBMS_OUTPUT.ENABLE的说明
1、增加输出缓冲区大小
SET SERVEROUTPUT ON SIZE 1000000;
2、DBMS_OUTPUT缓冲区设置限制
在输出的最开始运行DBMS_OUTPUT.ENABLE(buffer_size => null),说明不启用输出限制
以下为oracle DBMS_OUTPUT.ENABLE的说明
procedure enable (buffer_size in integer default 20000); pragma restrict_references(enable,WNDS,RNDS); -- Enable calls to put, put_line, new_line, get_line and get_lines. -- Calls to these procedures are noops if the package has -- not been enabled. Set default amount of information to buffer. -- Cleanup data buffered from any dead sessions. Multiple calls to -- enable are allowed. -- Input parameters: -- buffer_size -- Amount of information, in bytes, to buffer. Varchar2, number and -- date items are stored in their internal representation. The -- information is stored in the SGA. An error is raised if the -- buffer size is exceeded. If there are multiple calls to enable, -- then the buffer_size is generally the largest of the values -- specified, and will always be >= than the smallest value -- specified. Currently a more accurate determination is not -- possible. The maximum size is 1,000,000, the minimum is 2000. procedure disable; pragma restrict_references(disable,WNDS,RNDS); -- Disable calls to put, put_line, new_line, get_line and get_lines. -- Also purge the buffer of any remaining information.
相关文章推荐
- 动态HTML和W3C文档对象模型
- Atitit.js的键盘按键事件捆绑and事件调度
- 原生js创建一个div层
- JS中多步骤多分步的StepJump组件实例详解
- JS判断对象是不是数组“Array”
- 在HTML中URL、src、href分别代表什么?如何使用?
- 自己动手丰衣足食之征服jQuery插件编写
- js获取项目路径
- jquery validate验证使用说明
- JSON练习
- angularJs中上传图片/文件功能:ng-file-upload
- js+flash实现的5图变换效果广告代码(附演示与demo源码下载)
- HTML5培训第二节课笔记(事件,原型,JSON)
- angularJs中上传图片/文件功能:ng-file-upload
- js中字符串编码函数escape()、encodeURI()、encodeURIComponent()区别详解
- angularJs中上传图片/文件功能:ng-file-upload
- 10个基本的HTML5动画工具设计
- js实现继承
- HTML学习笔记(七)<div>与<span>
- split()函数,join()函数,splice()函数的学习与总结