CODE
Oracle Code Library
JOBS
Find Or Post Oracle Jobs
FORUM
Oracle Discussion & Chat
HOME | BROWSE | SEARCH | REFERENCE | ADD CODE | LINKS | SPONSORS
SQL University.net courses meet the most demanding needs of the business world for advanced education in a cost-effective manner. SQL University.net courses are available immediately for IT professionals and can be taken without disruption of your workplace schedule or processes. Click here to find out more.
Search the Reference Library pages:  
Help us help you! Take our 1-minute PSOUG survey. Free Oracle Magazines & Oracle White Papers

Oracle UTL_INADDR
Version 11.1
 
General Information
Purpose Provides procedures to support internet addressing
Source {$ORACLE_HOME}/rdbms/admin/utlinad.sql
First Available 8.1.7
Dependencies
DBMS_ISCHED UTL_INA_LIB
Exceptions
Exception Name Error Code Reason

network_access_denied

24247 Network privileges issue

unknown_host

29257 Host not found
Required Object Privilege GRANT execute ON utl_inaddr TO <schema_name>;
GRANT execute ON utl_inaddr TO uwclass;
 
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;
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
UTL_NETWORK_ACL_ADMIN
UTL_NETWORK_ACL_UTILITY
SYS_CONTEXT
 
Contact Us Legal Notices and Terms of UsePrivacy Statement
Home      :      Code Library      :      Sponsors      :      Privacy      :      Terms of Use      :      Contact Us [35 visitors online]    © 2009 psoug.org