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: Accessing the Databse name with pl/sql

Re: Accessing the Databse name with pl/sql

From: Harald Maier <maierh_at_myself.com>
Date: Fri, 15 Aug 2003 15:28:09 +0200
Message-ID: <m3n0ebkq3a.fsf@ate.maierh>


"Dave S." <mastercara_at_wanadoo.fr> writes:

> Hi, I need to extract y database name using pl/sql commands... how
> can I do? thahks in advance

I like:

  select global_name from global_name;

Because you don't need to have access to the dictionary. Disadvantage as other posted here 'global name' is changeable through 'alter database global_name rename to ...';

Harald Received on Fri Aug 15 2003 - 08:28:09 CDT

Original text of this message

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