Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: SQL/SID question

Re: SQL/SID question

From: John P. Higgins <jh33378nospam_at_deere.com>
Date: 1997/10/01
Message-ID: <3431DE6F.5694@deere.com>#1/1

Why not try this:

select instance from v$thread;

It works on my 7.2 system. I don't know if it would return multiple rows on OPS.

Michael Abbey wrote:
>
> Haresh Assumal wrote:
> >
> > How do I find what my current SID is when I'm in SQLplus?
> > -Haresh
>
> There is no way to find the ORACLE_SID from the data dictionary. Most
> DBAs name their database the same as the ORACLE_SID for just that
> reason. Relying on V$DATABASE only works if one has ensured the name and
> the SID are the same.
>
> Michael
>
> +---------------------------------------------
> + Michael Abbey Author of 5 works in the
> + Ottawa Canada Oracle Press Series
> +---------------------------------------------
 

-- 
John P. Higgins      Voice:    (309)765-7868
Deere & Company      Fax:      (309)765-7800
John Deere Road      Internet: jh33378nospam_at_deere.com
Moline, IL 61265     Opinions: My Own
Received on Wed Oct 01 1997 - 00:00:00 CDT

Original text of this message

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