---查询历史连接主机信息

select distinct a.machine,a.program,a.module
from dba_hist_active_sess_history a
where a.SAMPLE_TIME BETWEEN
TO_DATE('2019-06-04 12:00:00', 'YYYY-MM-DD HH24:MI:SS') AND
TO_DATE('2019-06-04 13:00:00', 'YYYY-MM-DD HH24:MI:SS')

select distinct d.program,d.module,d.machine
from v$active_session_history D
WHERE d.SAMPLE_TIME BETWEEN
TO_DATE('2019-06-04 12:00:00', 'YYYY-MM-DD HH24:MI:SS') AND
TO_DATE('2019-06-04 13:00:00', 'YYYY-MM-DD HH24:MI:SS')

 

select distinct a.machine,a.program
from v$session a
where status = 'INACTIVE'

相关文章:

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