ITPub博客

首页 > 数据库 > Oracle > redo_log_switch_date

redo_log_switch_date

原创 Oracle 作者:lucyne 时间:2015-09-07 10:47:23 0 删除 编辑


select sequence#,
       to_char(first_time, 'yyyy-mm-dd hh24:mi') || ' ' ||
       to_char(nexttime, 'hh24:mi'),
       round(((first_time - nexttime) * 24) * 60, 2) diff
  from (select sequence#,
               first_time,
               lag(first_time) over(order by sequence#) nexttime
          from v$log_history
         where thread# = 1
           and trunc(first_time) >= sysdate - 8)
where round(((first_time - nexttime) * 24) * 60, 2) > 0
order by sequence# desc;

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26390465/viewspace-1793115/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 手机监控平台
请登录后发表评论 登录
全部评论
. . 一个 DBA. . .

注册时间:2012-01-06

  • 博文量
    84
  • 访问量
    783162