【发布时间】:2012-03-26 21:52:33
【问题描述】:
我正在使用 Oracle/MyBatis 并尝试调试具有大量参数的存储过程。在存储过程中我得到一个ORA-01438: value larger than specified precision allowed for this column
所以我最初的方法是在存储过程中像dbms_output.put_line 一样尝试在有问题的语句之前查看值是什么。如果没有 MyBatis,我通常会打开一个 sqlplus 脚本并键入 set serveroutput on,然后稍后运行我的存储过程以查看所有调试消息。使用 MyBatis,我无法弄清楚如何(如果可能)获得这些调试语句。
我为 DEBUG 设置了 ibatis 和 sql 调试器,我使用 log4j 为我的 Tomcat 6 应用程序记录所有内容。
【问题讨论】:
标签: oracle debugging stored-procedures mybatis