数据库

位置:IT落伍者 >> 数据库 >> 浏览文章

查看Oracle的redo日志切换频率


发布日期:2023年06月04日
 
查看Oracle的redo日志切换频率

两个sql原理是一样的第二个用到了统计函数

时间单位分钟

select * from v$log

where aTHREAD# =

select bSEQUENCE# bFIRST_TIME

aSEQUENCE# aFIRST_TIME

round(((aFIRST_TIMEbFIRST_TIME)*)*)

from v$log_history a v$log_history b

where aSEQUENCE# = bSEQUENCE#+

and bTHREAD#=

order by aSEQUENCE# desc

select sequence#first_timenexttimeround(((first_timenexttime)*)*) diff

from (

select sequence#first_time lag(first_time) over(order by sequence#) nexttime

from v$log_history

where thread#=

) order by sequence# desc

上一篇:使用Expect和命名管状远程控制SQL*Plus

下一篇:都是防火墙惹的祸--Oracle连接总是断