Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: SID Environment Variable
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
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: 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).
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: 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
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
![]() |
![]() |