ss-33

 

--查询对应的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

 

分类:

技术点:

相关文章:

  • 2022-01-16
  • 2021-07-10
  • 2022-02-08
  • 2021-04-30
  • 2021-09-10
  • 2021-09-06
  • 2022-12-23
  • 2022-02-20
猜你喜欢
  • 2021-08-17
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
  • 2021-12-18
  • 2022-02-12
相关资源
相似解决方案