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: get sid (session id) and serial#?

RE: get sid (session id) and serial#?

From: Hatzistavrou John <John.Hatzistavrou.sema_at_mail.tellas.gr>
Date: Fri, 29 Aug 2003 01:04:34 -0800
Message-ID: <F001.005CDDE6.20030829010434@fatcity.com>


Check SYS_CONTEXT

Select sid,serial# from v$session where audsid = (select sys_context('USERENV','SESSIONID') from dual);

Kind Regards,

Hatzistavrou Yannis

-----Original Message-----
Sent: Friday, August 29, 2003 7:34 AM
To: Multiple recipients of list ORACLE-L

DABs,

  Is there any way in my connection to get the sid and serial# for my own connection?

Suppose I connect to Oracle db by >sqlplus scott/tiger_at_test. In this connection,

SQL> What shoud I input to get this sid and serial#?

TIA Chuan
Important: This transmission is intended only for the use of the addressee and may contain confidential or legally privileged information. If you are not the intended recipient, you are notified that any use or dissemination of this communication is strictly prohibited. If you receive this transmission in error please notify the author immediately by telephone and delete all copies of this transmission together with any attachments.

--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author:
  INET: chuan.zhang_at_customs.gov.au

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_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.net
--

Author: Hatzistavrou John
  INET: John.Hatzistavrou.sema_at_mail.tellas.gr
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_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 Fri Aug 29 2003 - 04:04:34 CDT

Original text of this message

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