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: Getting the SID setting?

Re: Getting the SID setting?

From: DA Morgan <damorgan_at_psoug.org>
Date: Thu, 15 Mar 2007 08:52:38 -0700
Message-ID: <1173973957.46367@bubbleator.drizzle.com>


dean wrote:
> 10.1g, Windows.
>
> Hello all, is there a simple way to get the SID from one of the sys
> views?
>
> And I guess a more general question is: What's a good reference book
> or web site for these views?
>
> Thanks
>
> DeanB

SELECT DISTINCT sid FROM gv$mystat;

SELECT sys_context('USERENV', 'SID') FROM dual;

SELECT sid FROM gv_$session;

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Received on Thu Mar 15 2007 - 10:52:38 CDT

Original text of this message

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