ORACLE SCN-Headroom检查
Posted 二零一七
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ORACLE SCN-Headroom检查相关的知识,希望对你有一定的参考价值。
SELECT tim, gscn, round(rate), round((chk16kscn - gscn)/24/3600/32/1024,90) "Headroom" FROM ( select tim, gscn, rate, (( ((to_number(to_char(tim,‘YYYY‘))-1988)*12*31*24*60*60) + ((to_number(to_char(tim,‘MM‘))-1)*31*24*60*60) + (((to_number(to_char(tim,‘DD‘))-1))*24*60*60) + (to_number(to_char(tim,‘HH24‘))*60*60) + (to_number(to_char(tim,‘MI‘))*60) + (to_number(to_char(tim,‘SS‘))) ) * (16*1024)) chk16kscn from ( select FIRST_TIME tim , FIRST_CHANGE# gscn, ((NEXT_CHANGE#-FIRST_CHANGE#)/ ((NEXT_TIME-FIRST_TIME)*24*60*60)) rate from (select first_time, lead(first_time, 1) over (order by first_time) as next_time, FIRST_CHANGE#, NEXT_CHANGE# from v$log_history where thread#=1) where (next_time > first_time) ) )where tim > sysdate - 3 order by tim desc;
以上是关于ORACLE SCN-Headroom检查的主要内容,如果未能解决你的问题,请参考以下文章