zoukankan      html  css  js  c++  java
  • oracle 查询 主机名和对应的IP地址

    --查询对应的IP地址

    select count(1), machine, a.CLIENT_INFO   from v$session a  group by machine, CLIENT_INFO;

    --查询对应的主机名、IP地址

    select distinct w.machine, a.CLIENT_INFO   from DBA_HIST_ACTIVE_SESS_HISTORY w, v$session a  where w.sql_exec_start >= sysdate - 30   

    --and w.machine not in ('db2','db1')   

    and a.MACHINE = w.machine

    ---或者    select distinct w.machine, a.CLIENT_INFO   from v$active_session_history w, v$session a  where w.sql_exec_start >= sysdate - 30   

    --and w.machine not in ('db2','db1')   

    and a.MACHINE = w.machine

  • 相关阅读:
    实验报告2
    实验三 网络欺骗技术
    实验3
    心理魔术
    实验报告
    实验4
    实验5
    实验四恶意代码
    网络对抗技术 实验一
    实验二
  • 原文地址:https://www.cnblogs.com/ss-33/p/8986837.html
Copyright © 2011-2022 走看看