为什么会引发错误ORA-04098?

时间:2015-10-31 13:43:25

标签: oracle triggers ora-04098

我尝试在Oracle 11g上运行以下触发器代码:

create trigger attempt
  before insert on orde
  for each row
begin
  if(:new.supplierid < 10) or (:new.supplierid > 99) then

    dbms_output.put_line('SUPPLIERID SHOULD BE BETWEEN 11 AND 99');

  end if;
end;

它成功创建了触发器,但在将任何值插入表orde时,会产生以下错误:

ORA-04098: trigger 'GOOGLE.ATTEMPT' is invalid and failed re-validation

为什么会出现此错误?

0 个答案:

没有答案