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: SID Environment Variable

RE: SID Environment Variable

From: Mercadante, Thomas F <NDATFM_at_labor.state.ny.us>
Date: Tue, 02 Oct 2001 12:48:31 -0700
Message-ID: <F001.0039F6D5.20011002122520@fatcity.com>

Ethan,

I'm not sure what you mean by SID.

Do you mean an environmental like ORACLE_SID?

On NT, this does not exist unless you create it by issuing 'set oracle_sid=prod'.

Similiar thing on Unix, I think.

Internally (in Oracle), you can check things like v$database, v$instance, even v$thread for the instance that you are connected to but this may not be the SID.

There are also couple of functions called sys.database_name or sys.login_user that return some interesting information.

hope this helps.

Tom Mercadante
Oracle Certified Professional

-----Original Message-----

Sent: Tuesday, October 02, 2001 2:25 PM
To: Multiple recipients of list ORACLE-L

I am trying to find an environment variable that returns the current session's SID. I see things like ora_login_user but can't find anything SID related. Basically I want to take a statspack snapshot using the SID of the current session. - E



--

This e-mail is intended for the use of the addressee(s) only and may contain privileged, confidential, or proprietary information that is exempt from disclosure under law. If you have received this message in error, please inform us promptly by reply e-mail, then delete the e-mail and destroy any printed copy. Thank you.

==
--

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

Author: Post, Ethan
  INET: epost_at_kcc.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).
--

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

Author: Mercadante, Thomas F
  INET: NDATFM_at_labor.state.ny.us
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 Tue Oct 02 2001 - 14:48:31 CDT

Original text of this message

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