1

I have been searching online and only found commands to retrieve the hostname.

As far as I can make out there is no reverse-resolution mechanism within Oracle itself; it relies on DNS, HOST records or its own Net Management.

Is it possible to return the database server's local IP address from an SQL command?

pulsar
  • 986
  • 1
  • 9
  • 22

1 Answers1

3
SQL> SELECT UTL_INADDR.get_host_address from dual;

GET_HOST_ADDRESS
----------------------------------
192.168.2.5

Following URL would be helpful: http://www.oracle-base.com/articles/misc/identifying-host-names-and-addresses.php

ntalbs
  • 28,700
  • 8
  • 66
  • 83