存储过程中不要写commit
在调用完所有存储过程后写commit

解决方案 »

  1.   

    to: drabit(square) 
    那主存储过程能不能捕捉子存储过程的异常呢?
      

  2.   

    我的意思就是用一个存储过程调用其他存储过程阿可以捕捉到
    ...
    begin
    p_otherproc(v_instr);
    excetpion when others then
       ...--错误处理
    end;
    ...
    begin
    p_otherproc2(v_instr2);
    excetpion when others then
       ...--错误处理
    end;
    ...