永发信息网

如何查执行SQL语句的IP地址

答案:2  悬赏:70  手机版
解决时间 2021-01-30 05:43
  • 提问者网友:骑士
  • 2021-01-29 07:38
如何查执行SQL语句的IP地址
最佳答案
  • 五星知识达人网友:孤独入客枕
  • 2021-01-29 08:30
可以得到对应IP的 , 如果是10G的话可以使用,10G之前的不知道有没有这个函数.
declare
v_machi varchar2(100);
v_ip varchar2(100);
cursor c1 is select machine from v$session where machine not like 'W%';
begin
open c1;
loop
fetch c1 into v_machi;
exit when c1%notfound;
全部回答
  • 1楼网友:摆渡翁
  • 2021-01-29 09:31
select startip,endip,location from t_base_ipaddressinfo where cint(replace(ip,".",""))>= cint(replace(startip,".","")) and cint(repalce(ip,".","") <= cint(replace(endip,".",""))
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯