获取DB Server 端的IP,Host Name的函数
SELECT UTL_INADDR.GET_HOST_ADDRESS FROM DUAL;
SELECT UTL_INADDR.GET_HOST_NAME FROM DUAL;
USERENV函数的使用
select sys_context('USERENV','IP_ADDRESS') from dual;
select sys_context('USERENV','CURRENT_SCHEMA') from dual;
select sys_context('USERENV','CLIENT_INFO') from dual;
select sys_context('USERENV','HOST') from dual;
select sys_context('USERENV','AUTHENTICATION_DATA') from dual;
SELECT UTL_INADDR.GET_HOST_ADDRESS FROM DUAL;
SELECT UTL_INADDR.GET_HOST_NAME FROM DUAL;
USERENV函数的使用
select sys_context('USERENV','IP_ADDRESS') from dual;
select sys_context('USERENV','CURRENT_SCHEMA') from dual;
select sys_context('USERENV','CLIENT_INFO') from dual;
select sys_context('USERENV','HOST') from dual;
select sys_context('USERENV','AUTHENTICATION_DATA') from dual;
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/25574072/viewspace-712411/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/25574072/viewspace-712411/