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: Oracle Rac-question

Re: Oracle Rac-question

From: DA Morgan <damorgan_at_psoug.org>
Date: Thu, 24 Nov 2005 09:37:48 -0800
Message-ID: <1132853873.404064@yasure>


ohahaahr_at_hotmail.com wrote:
> Next question !
>
> How do i know, which record in gv$session is mine ??
>
> My users login through a front-end, which all uses the same
> oracle-username. Therefore i cannot use the username to find 'my'
> session.
>
> Select * from gv$session where ??????????????
>
> Regards,
> Ole

SELECT *
FROM gv_$session
WHERE sid = (SELECT DISTINCT sid FROM v_$mystat);

is one way.

-- 
Daniel A. Morgan
http://www.psoug.org
damorgan_at_x.washington.edu
(replace x with u to respond)
Received on Thu Nov 24 2005 - 11:37:48 CST

Original text of this message

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