Lucy Jih
27th January 2003, 11:12
Hi,
By oracle user bsp, it raise ORA-01031 when I create oracle DB trigger. Do you know how to solve the problem ? Thanks.
My script is :
create or replace trigger acp200t01
before delete or insert or update
on baan.ttfacp200xxx for each row
declare wk_mode number
begin
if inserting then
wk_mode := 1
elsif updating then
wk_mode := 2
elsif deleting then
wk_mode := 3
end if;
insert into log_tfacp200 values(
wk_mode,
decode(:old.t$ttyp, null, :new.t$ttyp, :old.t$ttyp),
decode(:old.t$ninv, null, :new.t$ninv, :old.t$ninv),
decode(:old.t$tdoc, null, :new.t$tdoc, :old.t$tdoc),
decode(:old.t$docn, null, :new.t$docn, :old.t$docn),
:old.t$user, :new.t$user, sysdate, user
);
end;
/
on baan.ttfacp200xxx for each row
*
ERROR at line 3:
ORA-01031: insufficient privileges
Regards,
Lucy
By oracle user bsp, it raise ORA-01031 when I create oracle DB trigger. Do you know how to solve the problem ? Thanks.
My script is :
create or replace trigger acp200t01
before delete or insert or update
on baan.ttfacp200xxx for each row
declare wk_mode number
begin
if inserting then
wk_mode := 1
elsif updating then
wk_mode := 2
elsif deleting then
wk_mode := 3
end if;
insert into log_tfacp200 values(
wk_mode,
decode(:old.t$ttyp, null, :new.t$ttyp, :old.t$ttyp),
decode(:old.t$ninv, null, :new.t$ninv, :old.t$ninv),
decode(:old.t$tdoc, null, :new.t$tdoc, :old.t$tdoc),
decode(:old.t$docn, null, :new.t$docn, :old.t$docn),
:old.t$user, :new.t$user, sysdate, user
);
end;
/
on baan.ttfacp200xxx for each row
*
ERROR at line 3:
ORA-01031: insufficient privileges
Regards,
Lucy