utl_inaddr包:
用于取得局域网或internet环境中的主机名和ip地址;
–1,get_host_name
/*
该函数用于取得指定ip地址的主机名
*/
utl_inaddr.get_host_name(ip => );
begin
dbms_output.put_line(utl_inaddr.get_host_name(‘127.0.0.1’));
end;
–2,get_host_name
/*
该函数用于取得指定主机名所对应的ip地址
*/
utl_inaddr.get_host_address(host => );
begin
dbms_output.put_line(utl_inaddr.get_host_address('admin1505121853'));
end;