How to increase dbms_output buffer?

后端 未结 3 1475
無奈伤痛
無奈伤痛 2021-01-01 15:07

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 :



        
3条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-01 15:23

    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(1000000);
    

    Check this

    EDIT

    As per the comment posted by Frank and Mat, you can also enable it with Null

    exec dbms_output.enable(NULL);
    

    buffer_size : Upper limit, in bytes, the amount of buffered information. Setting buffer_size to NULL specifies that there should be no limit. The maximum size is 1,000,000, and the minimum is 2,000 when the user specifies buffer_size (NOT NULL).

提交回复
热议问题