ORA-20000: ORU-10027: buffer overflow, limit of 2000 bytes Solution

Source: Internet
Author: User

ORA-20000: ORU-10027: buffer overflow, limit of 2000 bytes solves the problem of using dbms_output.put_line to output the statement with the following error: begin user_priv (username => 'hr'); end; ORA-20000: ORU-10027: buffer overflow, limit of 2000 bytesORA-06512: at "SYS. DBMS_OUTPUT ", line 32ORA-06512: at" SYS. DBMS_OUTPUT ", line 97ORA-06512: at" SYS. DBMS_OUTPUT ", line Monitoring ora-06512: at" HR. USER_PRIV ", line 20ORA-06512: at line 2 it is clear that when we are outputting, the buffer size of the output results is controlled by DBMS _ OUTPUT. ENABLE control. The default buffer size is 20000. the maximum limit of each row is 32 KB. The following example shows that the stored procedure returns the result only after all the data is cached. So when we use a cursor for output, if there are a lot of results, it will exceed this value to report the ORA-20000, ORU-10027: Buffer overflow, limit of <buf_limit> bytes this error solution: add DBMS_OUTPUT.ENABLE (buffer_size => null) after the Stored Procedure begin to indicate that there is no limit.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.