Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> sessionid always returns 0 in AFTER LOGON
List,
i was trying to implement AFTER LOGON trigger on a schema when i found
out that i cannot use - audsid = userend('sessionid') !!!
the trigger always returns sessionid as 0 (zero) which is for background
processes !!
CREATE OR REPLACE TRIGGER logon_audit
AFTER LOGON ON scott.schema
declare
CURSOR c1 IS SELECT osuser, machine,audsid FROM sys.v_$session where audsid = userenv('sessionid');
end;
/
is there a way i can identify the session which just connected ???
TIA Rahul
PS: checked metalink.. the examples uses userenv('sessoinid') also... which, i think, is wrong.. Received on Fri Sep 08 2000 - 01:21:07 CDT
![]() |
![]() |