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

Home -> Community -> Usenet -> c.d.o.tools -> Re: Get host name of server from within ORACLE SQL script?

Re: Get host name of server from within ORACLE SQL script?

From: Daniel A. Morgan <dmorgan_at_exesolutions.com>
Date: Wed, 07 Mar 2001 22:06:30 -0800
Message-ID: <3AA72166.5530CCCD@exesolutions.com>

> How can I determine the host (or computer) name of the computer where ORACLE
> server is installed from within a SQLPLUS .SQL script? this applies to
> ORACLE running on UNIX as well as NT, and remote or local connections.
>
> Somebody suggested dbms_utility and port_string, but that returns a generic
> name; not the explicit machine name of the host computer.

SELECT *
FROM v$instance;

You will find what you seek.

Daniel A. Morgan Received on Thu Mar 08 2001 - 00:06:30 CST

Original text of this message

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