Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: how can a PL/SQL identify itself?

Re: how can a PL/SQL identify itself?

From: Malcolm Dew-Jones <yf110_at_vtn1.victoria.tc.ca>
Date: 20 Jan 2005 09:29:33 -0800
Message-ID: <41efea7d@news.victoria.tc.ca>


bidon70 (bidon70_at_hotmail.com) wrote:
: Hello everybody,

: I have browsed through the posts but I could not find any problem
: similar to mine, so I would like to ask you this question:
: is there a way to uniquely identify a running PL/SQL program (via the
: V$ views, sys_context, etc.)?
: I would like to get a unique identifier for a particular instance of a
: program running and the identifier should be retrieved by the PL/SQL
: itself.
: I have tried with v$SESSION and V$PROCESS but it seems they do not
: contain this kind of info.

What is wrong with the session id?

        select userenv('sessionid') from dual ;

--

This space not for rent.
Received on Thu Jan 20 2005 - 11:29:33 CST

Original text of this message

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