How to get system error message!

zhaozj2021-02-12  146

SQL> DECLARE 2 ERR_MSG VARCHAR2 (120); 3 Begin4 dbms_output.enable (1000000); 5 for err_num in 10000..109996 loop7 err_msg: = sqlerrm (-ERR_NUM); 8 if err_msg not like '% Message' || err_num | | 'NOT FOUND%' TEN9 DBMS_OUTPUT.PUT_LINE (ERR_MSG); 10 End IF; 11 End Loop; 12 End; 13 /

转载请注明原文地址:https://www.9cbs.com/read-7098.html

New Post(0)