这是因为在过程中用到了dbms_output.put_line()在服务器端输出信息,而serveroutput 的size默认定义为10000bytes。
修改一下size应该就可以了
set serveroutput on 30000
ORA-20000 string
Cause:The stored procedure RAISE_APPLICATION_ERROR was called which causes this error to be generated.
Action:Correct the problem as described in the error message or contact the application administrator or database administrator for more information.
Cause:The stored procedure RAISE_APPLICATION_ERROR was called which causes this error to be generated.
Action:Correct the problem as described in the error message or contact the application administrator or database administrator for more information.
本文介绍了如何解决因DBMS_OUTPUT默认大小限制导致的问题。通过调整serveroutput的大小限制到30000bytes,可以避免ORA-20000错误的发生。此外,文章还提到了当调用RAISE_APPLICATION_ERROR过程时可能引发的错误及其解决方法。
161

被折叠的 条评论
为什么被折叠?



