oracle的异常处理
时间:2021-07-01 10:21:17
帮助过:27人阅读
1);
P_STATE :=
0;
P_MSG := SUBSTRB(
‘line:‘ || dbms_utility.format_error_backtrace() ||
‘ Occur error;‘ || SQLCODE ||
‘,‘ ||
SQLERRM,
1,
200);
COMMIT;
WHEN OTHERS THEN
ROLLBACK;
P_STATE :=
0;
P_MSG := SUBSTRB(
‘line:‘ || dbms_utility.format_error_backtrace() ||
‘ Occur error;‘ || SQLCODE ||
‘,‘ ||
SQLERRM,
1,
200);
显示结果:
ine:ORA-06512: 在 "employeDB.__DATA_SYNC", line 512
Occur error;-12899,ORA-12899: 列 "EMS"."T_ISDT_ELOCKAUTOREQUEST"."WID" 的值太大 (实际值: 137, 最大值: 50)
oracle的异常处理
标签:llb ice style roc 使用 异常 ems bst values