Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> About getting real time of user application discinnect

About getting real time of user application discinnect

From: Vitaliy Ogiychuk <vitalio_at_infoplus.kiev.ua>
Date: Mon, 28 Oct 2002 17:33:06 +0200
Message-ID: <apjhme$2v56$1@news.kiev.sovam.com>


I have a trigger

CREATE OR REPLACE TRIGGER TBL_DISCONNECT BEFORE LOGOFF DATABASE DECLARE
  SID NUMBER;
BEGIN
  SELECT USERENV('SESSIONID') INTO SID FROM DUAL;   INSERT INTO USERID(SID, LOGOFF_TIME)
  VALUES (SID, SYSDATE);
END; The trigger insert time of application disconnect in specified table. But the trigger fires only if application terminated successfully. Question: how Oracle may determine that application was break (such as pull out the network cable or shutdown the user's terminal) and set it disconnect time without waiting of killing application session by PMon? Received on Mon Oct 28 2002 - 09:33:06 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US