This is correct - $ORACLE_SID is a host environmental variable and cannot be
obtained from the data dictionary.  However, you can get the instance name
from v$instance.instance_name in 8.x or from v$thread.instance in v7.

-Don Granaman
[certifiable OraSaurus]

----- Original Message -----
To: "Multiple recipients of list ORACLE-L" <[EMAIL PROTECTED]>
Sent: Monday, May 28, 2001 1:20 PM


>
> machine_name is found in v$session.
>
> You can't query the server for the SID, as it is
> simply an environment variable.
>
> Jared
>
>
> On Monday 28 May 2001 10:10, Szecsy Tamas wrote:
> > Hi,
> >
> > can I query a database's server's maschine name and SID (not database
> > name!!!!) through SQL*Plus?
> >
> > TIA,
> >
> > Tamas Szecsy
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Jared Still
>   INET: [EMAIL PROTECTED]
>
> 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: [EMAIL PROTECTED] (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: Don Granaman
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).

Reply via email to