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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Thankx and more questions about SID

RE: Thankx and more questions about SID

From: Trassens, Christian <CTrassens_at_uni2.es>
Date: Mon, 19 Feb 2001 03:45:43 -0800
Message-ID: <F001.002B7C8E.20010219031628@fatcity.com>

You have some options:

select sid from v$mystat
where rownum=1;

If the user has privilege to access sys.v_$session, then you can issue:

select sid from v$session
where audsid=userenv('SESSIONID');

However connected as internal the userenv('SESSIONID') gives you a 0. Hence, you couldn't recognize the sid.

Regards.

> -----Mensaje original-----
> De: bipin sahani [SMTP:bipinsahani_at_yahoo.co.in]
> Enviado el: sábado 17 de febrero de 2001 12:56
> Para: Multiple recipients of list ORACLE-L
> Asunto: Re:Thankx and more questions about SID
>
> Thankx for info
>
> Can I write a query which will give me a SESSION ID of
> only
> my session??????????
>
>
> And where system id is stored?????????????
>
>
> Thankx and regards
> Bipin
> --- Arun Aggarwal <arun_at_ggn.aithent.com> wrote: > The
> SID in V$SESSION is session id not the system ID
> > given to the Instance.
> >
> > These are two different things.
> >
> > Regards
> > Arun Aggarwal
> > Aithent Technologies (P) Ltd.
> > arun_at_ggn.aithent.com
> > +91-124-6455504 (101)
> >
> > "If I knew what I was so anxious about, I wouldn't
> > be so anxious."
> > --Mignon McLaughlin
> >
> > ----- Original Message -----
> > To: "Multiple recipients of list ORACLE-L"
> > <ORACLE-L_at_fatcity.com>
> > Sent: Saturday, February 17, 2001 13:55
> >
> >
> > > Hi ALL,
> > > I'm confused regarding numeric and multiple SIDs
> > > present in V$SESSION for same USER# and USERNAME
> > > How is it possible??????????
> > > As far as I know there should be one SID for every
> > > instance of oracle.
> > > Then how v$session shows me more than one SID
> > > for same user.And if all these numeric SIDs
> > > correspond to one alphanumeric SID
> > > which is SID of that instance then where is the
> > > mapping between numeric and alpha numeric SID?
> > >
> > >
> > > Thankx and regards
> > > Bipin
> > >
> > >
> > >
> >
> ____________________________________________________________
> > > Do You Yahoo!?
> > > Get your free @yahoo.co.in address at
> > http://mail.yahoo.co.in
> > > --
> > > Please see the official ORACLE-L FAQ:
> > http://www.orafaq.com
> > > --
> > > Author: =?iso-8859-1?q?bipin=20sahani?=
> > > INET: bipinsahani_at_yahoo.co.in
> > >
> > > Fat City Network Services -- (858) 538-5051
> > FAX: (858) 538-5051
> > > San Diego, California -- Public Internet
> > access / Mailing Lists
> > >
> >
> --------------------------------------------------------------------
> > > To REMOVE yourself from this mailing list, send an
> > E-Mail message
> > > to: ListGuru_at_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).
> >
> > --
> > Please see the official ORACLE-L FAQ:
> > http://www.orafaq.com
> > --
> > Author: Arun Aggarwal
> > INET: arun_at_ggn.aithent.com
> >
> > Fat City Network Services -- (858) 538-5051 FAX:
> > (858) 538-5051
> > San Diego, California -- Public Internet
> > access / Mailing Lists
> >
> --------------------------------------------------------------------
> > To REMOVE yourself from this mailing list, send an
> > E-Mail message
> > to: ListGuru_at_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).
>
>
> ____________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.co.in address at http://mail.yahoo.co.in
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: =?iso-8859-1?q?bipin=20sahani?=
> INET: bipinsahani_at_yahoo.co.in
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_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).

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Trassens, Christian
  INET: CTrassens_at_uni2.es

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_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).
Received on Mon Feb 19 2001 - 05:45:43 CST

Original text of this message

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