Re: How to get session number?

From: Doug Harris <ah513_at_FreeNet.Carleton.CA>
Date: Fri, 5 Aug 1994 22:31:20 GMT
Message-ID: <Cu32K8.I3C_at_freenet.carleton.ca>


In a previous article, lanclosd_at_bcstec.ca.boeing.com (Dwayne K. Lanclos) says:

>If I'm in PL/SQL, how do I obtain the current session ID?

    SELECT SID

       FROM V$SESSION
       WHERE AUDSID = USERENV("SESSIONID");

   Note that the special function USERENV() can be used to obtain other neat things. See your SQL Language Reference for more fun stuff.

  • Doug --
Received on Sat Aug 06 1994 - 00:31:20 CEST

Original text of this message