Re: Is there a trigger on session end?
- From: DA Morgan <damorgan@xxxxxxxxx>
- Date: Fri, 29 Feb 2008 00:08:34 -0800
dean wrote:
10g / Win
I have a trigger that calls a procedure when a user logs off session:
create or replace trigger LoggedOff
before logoff on database
call procLoggedOff
/
But this trigger is not called if my session ends unexpectedly - a
crash or if the app is killed by some means (simple crash, compiler
reset, CTRL-ALT_DEL, etc).
Is there a way to get Oracle to call a procedure when it determines
that a session has been killed or otherwise has died?
Thanks in advance for any advice.
You can create a SYSTEM EVENT trigger to fire on AFTER SERVERERROR.
Should work for what you want.
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@xxxxxxxxxxxxxxxx (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
.
- References:
- Is there a trigger on session end?
- From: dean
- Is there a trigger on session end?
- Prev by Date: Re: Change default error message on check constraint
- Next by Date: Re: parent key not found error
- Previous by thread: Re: Is there a trigger on session end?
- Next by thread: parent key not found error
- Index(es):
Relevant Pages
|