Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ON-LOGON TRIGGER

201506Feb 8 2002
Hi eveybody,

I am trying to write the "ON LOGON" trigger to monitor the user activities(Logons with time). I have written following code. But it is not compiling. Can you please identify the error?

=================================================
create or replace trigger register_logon
on logon
begin
insert into logon_time
values (Select user, to_char(sysdate, 'DD-MON-RRRR hh:mm:ss') from dual)
end;
=================================================

Regards

Mudassar
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 12 2002
Added on Feb 8 2002
7 comments
5,043 views