Oracle UTL_INADDR
Version 12.1.0.2

General Information
Library Note Morgan's Library Page Footer
The Library is currently in the process of being upgraded from Oracle Database Version 12.1.0.1 to 12.1.0.2. Demos are being upgraded to reflect the new Container paradigm as well as EBR (Edition Based Redefinition) and may contain references to CDBs, PDBs, and other objects you may not be familiar with such as CDB_OBJECTS_AE: Welcome to 12c.

Interested in Oracle GoldenGate? Check out the IGGOUG,
Purpose Provides PL/SQL procedures to support internet addressing. It provides an API to retrieve host names and IP addresses of local and remote hosts.
AUTHID CURRENT_USER
Dependencies
DBMS_GSM_CLOUDADMIN DBMS_ISCHED MGMT_DB_LL_METRICS
DBMS_GSM_DBADMIN DBMS_MACADM UTL_INA_LIB
Documented Yes
Exceptions
Error Code Reason
ORA-24247 network_access_denied: Network privileges issue
ORA-29257 unknown_host: Host not found
First Available 8.1.7
Security Model Owned by SYS with EXECUTE granted to PUBLIC and ORACLE_OCM
Source {$ORACLE_HOME}/rdbms/admin/utlinad.sql
Subprograms
 
GET_HOST_ADDRESS
Retrieves an IP address given the host name utl_inaddr.get_host_address(host IN VARCHAR2 DEFAULT NULL) RETURN VARCHAR2;
SELECT utl_inaddr.get_host_address('washington.edu')
FROM dual;

SELECT utl_inaddr.get_host_address('www.oracle.com')
FROM dual;
Retrieve IP address of Oracle client SELECT sid, machine, utl_inaddr.get_host_address(SUBSTR(machine, INSTR(machine,'\')+1)) ip
FROM gv$session
WHERE type = 'USER'
AND username IS NOT NULL;
 
GET_HOST_NAME
Retrieves a host name given the IP Address utl_inaddr.get_host_name(ip IN VARCHAR2 DEFAULT NULL) RETURN VARCHAR2;
SELECT utl_inaddr.get_host_name('140.142.15.233')
FROM dual;

Related Topics
DBMS_NETWORK_ACL_ADMIN
DBMS_NETWORK_ACL_UTILITY
Packages
SYS_CONTEXT

Morgan's Library Page Footer
This site is maintained by Dan Morgan. Last Updated: This site is protected by copyright and trademark laws under U.S. and International law. © 1998-2014 Daniel A. Morgan All Rights Reserved