- Fri Jun 29 20:18:10 2012
- Started recovery at
- Thread 1: logseq 526723, block 735397, scn 0.0
- Fri Jun 29 20:18:10 2012
- Recovery of Online Redo Log: Thread 1 Group 1 Seq 526723 Reading mem 0
- Mem# 0 errs 0: /dev/vgocrm05/rredo01
- Fri Jun 29 20:18:22 2012
- Recovery of Online Redo Log: Thread 1 Group 2 Seq 526724 Reading mem 0
- Mem# 0 errs 0: /dev/vgocrm04/rredo02
- Fri Jun 29 20:18:36 2012
- Completed redo application
- Fri Jun 29 20:18:37 2012
- Ended recovery at
- Thread 1: logseq 526724, block 383606, scn 2853.3698983521
- 126266 data blocks read, 126255 data blocks written, 672206 redo blocks read
- Fri Jun 29 20:18:50 2012
- Crash recovery completed successfully
- Fri Jun 29 20:18:50 2012
- Thread 1 advanced to log sequence 526725
- Thread 1 opened at log sequence 526725
- Current log# 4 seq# 526725 mem# 0: /dev/vgocrm02/rredo_03
- Successful open of redo thread 1
- Fri Jun 29 20:18:50 2012
- SMON: enabling cache recovery
- Fri Jun 29 20:18:51 2012
先说怎么算的
2853代表wrap(16位) 3698983521代表base(32位) 十进制转换二进制 2853=101100100101 3698983521=11011100011110100000001001100001 然后把两个合起来 wrap.base 10110010010111011100011110100000001001100001二进制转换十进制
10110010010111011100011110100000001001100001=1225724067900912257240679009这个号就是系统的scn啦~
这是算出来的,我们也可以通过视图查看
在alter日志中我们可以定位log sequence号526725
在视图v$log_history中查看
- SQL> select recid,sequence#,first_change#,next_change# from v$log_history where sequence#=526725;
- RECID SEQUENCE# FIRST_CHANGE# NEXT_CHANGE#
- ---------- ---------- ----------------------- -----------------
- 526725 526725 12257240679010 12257383088787
frist_change#中的值比算出来的小1,这里有一个问题不知是不是切换一次日志就加一。如果是的话那么完成Ended recovery的时间点只需要SCN-1即可
不过我得仔细研究一下什么叫wrap和base了