Return-Path: <ml-errors@fatcity.com>
Received: from ensim.rackshack.net (root@localhost)
 by orafaq.net (8.11.6/8.11.6) with ESMTP id h8PIrgi19995
 for <oracle-l@orafaq.net>; Thu, 25 Sep 2003 13:53:42 -0500
X-ClientAddr: 66.27.56.210
Received: from ns3.fatcity.com (rrcs-west-66-27-56-210.biz.rr.com [66.27.56.210])
 by ensim.rackshack.net (8.11.6/8.11.6) with ESMTP id h8PIrfc19990
 for <oracle-l@orafaq.net>; Thu, 25 Sep 2003 13:53:41 -0500
Received: from ns3.fatcity.com (localhost.localdomain [127.0.0.1])
 by ns3.fatcity.com (8.12.8/8.12.8) with ESMTP id h8PGEVkM002266
 for <oracle-l@orafaq.net>; Thu, 25 Sep 2003 09:15:00 -0700
Received: (from root@localhost)
 by ns3.fatcity.com (8.12.8/8.12.5/Submit) id h8PG0QS3029188
 for oracle-l@orafaq.net; Thu, 25 Sep 2003 09:00:26 -0700
Received: by fatcity.com (05-Jun-2003/v1.0g-b73/bab) via fatcity.com id 005D10EF; Thu, 25 Sep 2003 08:59:44 -0800
Message-ID: <F001.005D10EF.20030925085944@fatcity.com>
Date: Thu, 25 Sep 2003 08:59:44 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: "Mladen Gogala" <mladen@wangtrading.com>
Sender: ml-errors@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: "Mladen Gogala" <mladen@wangtrading.com>
Subject: RE: USERENV('SESSIONID') on RAC
Organization: Fat City Network Services, San Diego, California
X-ListServer: v1.0g, build 73; ListGuru (c) 1996-2003 Bruce A. Bergman
Precedence: bulk
Mime-Version: 1.0
Content-Type: text/plain;	charset="us-ascii"
Content-Transfer-Encoding: 7bit

select inst_id,username,sid,serial# 
from gv$session
where sid=dbms_support.mysid;

--
Mladen Gogala
Oracle DBA 



> -----Original Message-----
> From: ml-errors@fatcity.com [mailto:ml-errors@fatcity.com] On 
> Behalf Of Jesse, Rich
> Sent: Thursday, September 25, 2003 12:20 PM
> To: Multiple recipients of list ORACLE-L
> Subject: USERENV('SESSIONID') on RAC
> 
> 
> Hey all,
> 
> Is there a way to get your own executing program from a 
> 9.2.0.4 RAC node?
> USERENV('SESSIONID') and SYS_CONTEXT('USERENV','SESSIONID') 
> each return a big fat zero on RAC.
> 
> My ultimate goal is to get the executing session's program, 
> and the only place I can find that info is in V$SESSION.  And 
> the only way I know to get the current session's row from 
> V$SESSION is to join it with USERENV('SESSIONID').  If 
> there's a better/different way to do this, I'm listening.
> 
> Thanks!
> Rich
> 
> Rich Jesse                           System/Database Administrator
> rjesse@qtiworld.com                  Quad/Tech Inc, Sussex, WI USA
> -- 
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> -- 
> Author: Jesse, Rich
>   INET: Rich.Jesse@qtiworld.com
> 
> Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
> San Diego, California        -- Mailing list and web hosting services
> ---------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') 
> and in the message BODY, include a line containing: UNSUB 
> ORACLE-L (or the name of mailing list you want to be removed 
> from).  You may also send the HELP command for other 
> information (like subscribing).
> 




Note:
This message is for the named person's use only.  It may contain confidential, proprietary or legally privileged information.  No confidentiality or privilege is waived or lost by any mistransmission.  If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender.  You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Wang Trading LLC and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks.
Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity.

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Mladen Gogala
  INET: mladen@wangtrading.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

