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

Home -> Community -> Usenet -> c.d.o.misc -> Re: which server am I on?

Re: which server am I on?

From: Greg Jackson <gjackson_at_pier1.com>
Date: 1996/12/19
Message-ID: <59br17$avt@news0-alterdial.uu.net>#1/1

In article <59bdan$ldf_at_svna0001.clipper.ssb.com> tahmossx_at_itd.ssb.com (Stephen A Tahmosh) wrote:

> One source of the data is: "select name from v$database;"
> column upper(VALUE) new_value _DB_NAME
> select upper(value) from v$parameter
> where upper(name) = 'DB_NAME';
> set SQLPROMPT '&_DB_NAME.> '

rather than querying the db, you could just add

HOST echo $ORACLE_SID

to the $ORACLE_HOME/sqlplus/admin/glogin.sql file.

greg jackson
gjackson_at_pier1.com Received on Thu Dec 19 1996 - 00:00:00 CST

Original text of this message

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