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: The eternal Question: SID etc..

Re: The eternal Question: SID etc..

From: Sybrand Bakker <postmaster_at_sybrandb.demon.nl>
Date: Fri, 22 Oct 1999 01:28:09 +0200
Message-ID: <940548512.1491.0.pluto.d4ee154e@news.demon.nl>


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

Hth,

--
Sybrand Bakker, Oracle DBA
<dyork_at_houston.rr.com> wrote in message news:380f9dad.157002167_at_news-server...
> I need to know if it is possible for Oracle to return my unique
> session id when in a SQL*NET Window and what the command is to do it,
> also I would need something similar when I login through visual basic.
>
>
> For example, when I login programmatically through VB, I need oracle
> to tell me what my SID is, ie my unique record in v$session.
>
> This is not "look in v$session for your computer name etc", I can't
> believe its that hard in oracle to do something like a visual basic
> MsgBox user.sid?
>
> Any ideas. I can't find anything.....how do other people get the same
> job done.
>
> Any ideas would help,
> Grasping at straws....
>
> dyork_at_coair.com
Received on Thu Oct 21 1999 - 18:28:09 CDT

Original text of this message

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