Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle server name in SQL prompt
How about this:
select host_name from v$instance;
Winnie Liu (winnie_liu_at_infonet.com) wrote:
: I get it in a kind of dump way. I do a query on V$sesion and find out the
: column "machine" in which one of the bg process like 'smon' is running on.
: I know.. this method does not work on parallel server!
: Winnie Liu
: DBA
: Infonet Services Corporation
: mailto:winnie_liu_at_infonet.com
: Michael Morley wrote in message ...
: >Anybody know how to put the name of the host server into the SQLPROMPT
: >SQLPlus parameter? I can get the instance name but not the server name.
: >
: >Thanks.
: >
: >Mike M
: >
: >
Received on Wed Sep 29 1999 - 18:38:59 CDT
![]() |
![]() |