Selecting current userid???
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: Selecting current userid???

  1. #1
    Join Date
    Feb 2000
    Posts
    175

    Question

    Hi,

    I'm using both 7.3.4 and 8.1.6 and was wondering if there was a select statement in 7.3.4 that would return the userid of the current session. I know the command below will give me the answer in 8.1.6 but it does not work in 7.3.4

    'select sys_context('userenv','current_user') from dual;'

    Thanks for your help

    Moff.

  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    It's been a while since I worked with 7.x, but I think there was a USERENV() function that you could get to return the username. Check the 7.x docs...
    Jeff Hunter
    marist89@yahoo.com
    http://marist89.blogspot.com/
    Get Firefox!
    "I pledge to stop eating sharks fin soup and will not do so under any circumstances."

  3. #3
    Join Date
    Sep 2000
    Posts
    77
    select sid from v$session where audsid = USERENV('SESSIONID') ;
    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width