dbms_output size buffer overflow

别等时光非礼了梦想. 提交于 2019-12-10 15:06:29

问题


I tried to set the dbms_output size to unlimited inside a stored procedure.

But it gave me compilation errors. So I tried in the SQL*Plus prompt the below way. But still I get the buffer overflow error. How can I overcome this?

 set serveroutput on size unlimited;
 exec service_update;


ORA-20000: ORU-10027: buffer overflow, limit of 30000 bytes
ORA-06512: at "SYS.DBMS_OUTPUT", line 32
ORA-06512: at "SYS.DBMS_OUTPUT", line 97
ORA-06512: at "SYS.DBMS_OUTPUT", line 112
ORA-06512: at "ARBOR.SERVICE_UPDATE", line 27
ORA-06512: at line 1

回答1:


In the procedure service_update, by any chance is there a call to

dbms_output.enable(30000); 

This may override the first limit you set.




回答2:


In Oracle 10gR2 you may also use unlimited buffer (https://forums.oracle.com/forums/thread.jspa?threadID=361639):

dbms_output.enable(null);


来源:https://stackoverflow.com/questions/8045844/dbms-output-size-buffer-overflow

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!