VBA 调用oracle 包
报 某个包 多少多少行 ora-06512 我现在把定位到的行贴上来,
         IF (recAccount.ACCT_DELTAT_START_DT IS NULL) THEN
      nBillDeltaT := 1;
    ELSE
      IF (inRevDeltaT IS NULL) THEN
        nBillDeltaT := 1;
      ELSE
        nBillDeltaT := recAccount.Acct_DeltaT_Factor / inRevDeltaT;  ----定位到这行
      END IF;
    END IF;感觉没问题啊 不知道怎么改了   06512 是个什么错误???有具体解释和解决方法不?

解决方案 »

  1.   

    ORA-06512: at stringline string 
    Cause: Backtrace message as the stack is unwound by unhandled exceptions.
    Action: Fix the problem causing the exception or write an exception handler for this condition. Or you may need to contact your application administrator or DBA.
      

  2.   

    报06512之前还报了个错  是被除数为0了
    我在想ora-06512是不是 这个错误引起的并发症???
      

  3.   

    nBillDeltaT := recAccount.Acct_DeltaT_Factor / inRevDeltaT;这行语句有问题,未排除inRevDeltaT这个值等于0的情况,因为除数不能为0,当inRevDeltaT这个值为0时当然就会报错,这个值inRevDeltaT不为0时就不会出现错误。