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: SQL to get IP and OS

Re: SQL to get IP and OS

From: DA Morgan <damorgan_at_psoug.org>
Date: Thu, 05 Jul 2007 16:59:45 -0700
Message-ID: <1183679985.388516@bubbleator.drizzle.com>


Jeff B wrote:
> Hello,
>
> I am using Oracle 10gR2 on Windows 2003 Server. Is it possible to
> retrieve the host's IP address and its OS version using a sql
> statement? I know that I can get the host_name from v$instance, and I
> can get the OS from the v$version, but I need more that just "Windows"
> for the OS. I'm looking for something like "Windows 2003 Server".
>
> Any ideas?
>
> Thanks in adavance!
> Jeff

SELECT sys_context('USERENV', 'IP_ADDRESS') FROM dual;

SELECT dbms_utility.port_string FROM dual;

If you want something else you'll need to explicitly describe it.

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Received on Thu Jul 05 2007 - 18:59:45 CDT

Original text of this message

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