trigger and procedure privileges ??!! [message #238476] |
Fri, 18 May 2007 04:18 |
cefb
Messages: 56 Registered: March 2007
|
Member |
|
|
Hi there.
I have a trigger on before insert that calls a procedure that only checks if the values that someone is trying to insert are valid.
In the procedure i have
select count(*) into counter from all_tables
The counter returns 50 if the procedure is called inside the trigger, if e just execute the procedure it returns 629.
thanks
|
|
|
|
|
|
|
|
Re: trigger and procedure privileges ??!! [message #238544 is a reply to message #238476] |
Fri, 18 May 2007 08:36 |
cefb
Messages: 56 Registered: March 2007
|
Member |
|
|
sorry!!!!!
CREATE OR REPLACE TRIGGER MY_LIST BEFORE
INSERT ON LISTS FOR EACH ROW
BEGIN
Teste;
END;
create procedure teste authid current_user
as
counter number;
begin
select count(*) into counter from all_tables;
dbms_output.put_line('Counter -> '||counter);
end;
i execute this as a dba user
insert into lists('ce','Teste');
[Updated on: Fri, 18 May 2007 08:37] Report message to a moderator
|
|
|
|
|
|
|
|
|