1.查看oracle所在服务器的ip:
select utl_inaddr.get_host_address from dual;
2.查看登陆oracle机器的IP:
select sys_context(‘userenv‘,‘ip_address‘) from dual;
3.查看oracle数据库的SID:
select instance_name from v$instance;
时间: 2024-10-09 09:54:47
1.查看oracle所在服务器的ip:
select utl_inaddr.get_host_address from dual;
2.查看登陆oracle机器的IP:
select sys_context(‘userenv‘,‘ip_address‘) from dual;
3.查看oracle数据库的SID:
select instance_name from v$instance;