ORA-21000:20001 的raise_application_error 错误号参数超出范围
ORA-06512:在"TECHDB.PROC_SELECTTEST",line 19
ORA-06512:在line 3
第一行的异常知道如何捕获的,那么第二行和第三行异常如何捕获的???

解决方案 »

  1.   


    --第1次出現異常就不會往下執行了,除非你內嵌的,如
    begin
    dbms_output.put_line('error test:');
    begin
    raise_application_error(-20001,'test');
    raise_application_error(-20002,'不會執行');
    exception 
    when others then
    dbms_output.put_line('inerrors');
    raise_application_error(-20001,'testout');
    end;
    dbms_output.put_line('不會執行,因內層有未處理的異常,直接到外層異常處理處');
    exception
    when others then
    dbms_output.put_line('outerrors');
    end;
    /
      

  2.   

    http://www.dbfaq.net/FAQ/FixupQL.aspx?QuestionID=91
    http://www.dbfaq.net/FAQ/FixupQL.aspx?QuestionID=93
    http://www.dbfaq.net/FAQ/FixupQL.aspx?QuestionID=94这里有三篇文章是关于异常操作,可以作为参考。。
      

  3.   

    具体问题可以去dbfaq.net提提。。
      

  4.   

    具体问题可以去dbfaq.net提提。。