Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Trigger Help
"Jeffrey A. Thompson" <thompsonja_at_phibred.com> wrote:
>I'm trying to write a trigger to update a 'revisor_name' column in a table.
>The problem is that we are using powerbuilder and signing onto ORACLE 7.3
>with a generic userid. I noticed that osuser in the v$session has the
>username I want. Does anyone have an example of trigger that does this?
>
>
Here is the skeleton of a trigger I designed to monitor and track inserts into
one of my tables:
sid = usid;
if inserting then
insert into audit_lid values('Insert',sysdate,oname,'Future ') ;
elsif updating then
insert into audit_lid values('Update',sysdate,oname,'Future ');
elsif deleting then
insert into audit_lid values('Delete',sysdate,oname,'Future ');
else
raise_application_error(-20100,'Undefined Action...');
end if;
end;
Hope it helps,
John Greco
To reply please remove the 'nospam' part of the address Received on Mon Dec 07 1998 - 11:35:54 CST
![]() |
![]() |