block address相关基础知识

2014-11-24 16:41:47 · 作者: · 浏览: 0
block address相关基础知识
  一、block address(ondisk rba 在9.2 后作废)
  1.uba=Undofile BA
  1 BA=dbfile 文件号、块号、行号 rdba=tablespace Relative Database BA
  2 BA=logfile 序列号,logfile 块号,偏移长度
  二、low cache rba与low rba
  1.low cache rba =检查点位置 =就是CKPT记录的DBWR写的进度 =low cache rba 以前的更前的已经写入数据文件
  2. 当前redo logfile 的low scn(first_change#)
  SQL> select sequence#,status,first_change# from v$log; SEQUENCE# STATUS FIRST_CHANGE#

5 INACTIVE

566751

6 CURRENT

589819

4 INACTIVE

531541

  first_change#表示当前redo log 的low scn, 实例恢复只会用到当前redo log file(原因:日志切换时触发CKPT写了脏块)
  3.补充知识:
  next_change#表示当前redo log 的high scn
  select sequence#,first_change# from v$log; select sequence#,first_change from v$log_history; Redo log 会顺序纪录 数据库的各个变化。一组redo log 文件写满后,会自动切
  换到下一组redo log文件。则上一组redo log的high scn就是下一组redo log的low scn。