ORA-24331: user buffer too small Cause: The user buffer to contain the output data is too small. Action: Specify a bigger buffer.有人说:set serveroutput on size 200000,你可以试试。
楼上说的应该只是对当前会话起作用吧,是不是PGA初始化值太小了噢.
是不是dbms_output 一次输出太多了? 解决方法如下: 1、用dbms_output.enable( )设定长度. DBMS_OUTPUT.ENABLE (buffer_size IN INTEGER DEFAULT 20000); (注:该方法按如上设置没成功,直接DBMS_OUTPUT.ENABLE (20000);则成功执行) 2、也可以SET SERVEROUTPUT ON SIZE 5000或者分批输出。
user buffer too small
Cause: The user buffer to contain the output data is too small.
Action: Specify a bigger buffer.有人说:set serveroutput on size 200000,你可以试试。
解决方法如下:
1、用dbms_output.enable( )设定长度.
DBMS_OUTPUT.ENABLE (buffer_size IN INTEGER DEFAULT 20000);
(注:该方法按如上设置没成功,直接DBMS_OUTPUT.ENABLE (20000);则成功执行)
2、也可以SET SERVEROUTPUT ON SIZE 5000或者分批输出。