Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: selecting name of instance
Harald Maier wrote:
> "Christoph Seidel" <christoph.seidel1_at_gmx.de> writes:
>
>
>>how can i select the name of the instance i'm connected to? >> >>e.g. something like "select SID from dual;" or so.
FWIW - not that I'd recommend this, but it is NOT a requirement that GLOBAL_NAME = SID (or anything close to it.)
On the instance of your choice, do
UPDATE GLOBAL_NAME SET GLOBAL_NAME = 'FUBAR';
COMMIT;
Now "select global_name from global_name;"
and ask yourself if the results match the SID.
Received on Wed Jun 11 2003 - 20:09:23 CDT