--查询日志的切换频率
select  t1.RECID as srecid
       ,t2.RECID as erecid
       ,t1.FIRST_TIME as stime
       ,t2.FIRST_TIME as etime
       ,round((t2.FIRST_TIME-t1.FIRST_TIME)*1440,2) as minutes
from v$log_history t1,v$log_history t2
where t1.RECID+1=t2.RECID and /*选择时间段*/t1.FIRST_TIME between trunc(sysdate)/*起始*/ and sysdate/*终止*/
order by t1.RECID desc

相关文章:

  • 2021-06-24
  • 2022-01-04
  • 2021-10-02
  • 2022-02-12
  • 2021-10-07
  • 2022-02-23
  • 2022-12-23
  • 2021-12-31
猜你喜欢
  • 2021-12-25
  • 2022-01-02
  • 2022-02-06
  • 2022-01-17
  • 2021-07-01
  • 2022-01-17
  • 2021-10-27
相关资源
相似解决方案