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 -> Re: How can I get this info?

Re: How can I get this info?

From: Thomas Kyte <tkyte_at_us.oracle.com>
Date: Wed, 01 Dec 1999 16:03:15 -0500
Message-ID: <u73b4s45gjni1bavonnandptoillggv8mp@4ax.com>


A copy of this was sent to kshave_at_health.gov.mb.ca (if that email address didn't require changing) On Wed, 01 Dec 1999 20:06:26 GMT, you wrote:

> Is it possible to figure out what your current session id is? I know
>it is listed in v$session, but if you are logged in several times then
>there is no definite way to distinguish between the sessions.
>
> Any ideas?

select * from v$session where audsid = userenv('sessionid')

gets your session.

--
See http://osi.oracle.com/~tkyte/ for my columns 'Digging-in to Oracle8i'... Current article is "Part I of V, Autonomous Transactions" updated June 21'st  

Thomas Kyte                   tkyte_at_us.oracle.com
Oracle Service Industries     Reston, VA   USA

Opinions are mine and do not necessarily reflect those of Oracle Corporation Received on Wed Dec 01 1999 - 15:03:15 CST

Original text of this message

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