PLSQL代码调试Oracle dbms_utility返回错误

PLSQL代码调试Oracle dbms_utility返回错误

输出SQLCODE、SQLERRM 不能定位具体错误

推荐以下几种方法

1.dbms_utility.format_call_stack

This Function Formats The Current Call Stack. This Can Be Used On Any Stored Procedure Or Trigger To Access The Call Stack. This Can Be Useful For Debugging.

dbms_output.put_line(dbms_utility.format_call_stack);  

2.dbms_utility.format_error_stack

This Function Formats The Current Error Stack. This Can Be Used In Exception Handlers To Look At The Full Error Stack.

dbms_output.put_line(dbms_utility.format_error_stack);  

3.dbms_utility.format_error_backtrace

This Procedure Displays The Call Stack At The Point Where An Exception Was Raised, Even If The Procedure Is Called From An Exception Handler In An Outer Scope. The Output Is Similar To The Output Of The Sqlerrm Function, But Not Subject To The Same Size Limitation.

 dbms_output.put_line(dbms_utility.format_error_backtrace); 

--刘轶鹤

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值