select osuser
from v$session
where audsid=userenv('SESSIONID');
dont try with user sys though
this works as well
select sys_context('USERENV', 'OS_USER') from dual;
this works with sys
[Edited by pando on 06-24-2002 at 05:02 PM]
|
Results 1 to 5 of 5
Threaded View
|
Click Here to Expand Forum to Full Width |