How to increase dbms_output buffer?
问题 I tried to debug my dynamic query via dbms_output but seems like the query string is too long for dbms_output buffer. I got : ORA-06502: PL/SQL: numeric or value error: character string buffer too small ORA-06512: at "SYS.DBMS_OUTPUT", line 148 ORA-06512: at line 1 Any idea how to increase the buffer size ? 回答1: You can Enable DBMS_OUTPUT and set the buffer size. The buffer size can be between 1 and 1,000,000. dbms_output.enable(buffer_size IN INTEGER DEFAULT 20000); exec dbms_output.enable