zoukankan      html  css  js  c++  java
  • abmr:块恢复特性测试自己主动

    abmr:块恢复特性测试自己主动

    参考原始:
    ABMR: How to test Automatic Block Recover Feature (Doc ID 1266059.1)

    可适用:
    Oracle Server - Enterprise Edition - Version: 11.2.0.1.0 and later   [Release: 11.2 and later ]
    Information in this document applies to any platform.


    目标:
    本文先是在datafile中制造了一个坏块然后触发了abmr 特性。
    作为測试的预先要求,须要配置 dg的主库和备库,并正常同步。

    解决方式:
    1. 确认table中的block 含有数据。


    你能够使用以下的查询语句来把 rowid 翻译成file# 和block#

    select rowid, dbms_rowid.rowid_block_number(rowid) blockno, dbms_rowid.rowid_relative_fno(rowid) fno
    from test.test
    where rownum < 100
    /

    2.Using the block from the datafile identified file# using DD utility at OS level.
      上面一句咋翻译?不之所云啊。
      dd if=/dev/zero of=/oradata/orcl/users.dbf count=1 seek=164 bs=8192 conv=notrunc

    3. 检查块是否损坏。
    dbv file=/oradata/orcl/users.dbf blocksize=8192

    4. 在主库上flush buffer cache,以强制从disk 上再读取一次数根据记忆。
    5.再次查询该表。不会显示任何错误,而检查出数据是否有效。
    select * from test.test
    where dbms_rowid.rowid_block_number(rowid)=164
    and dbms_rowid.rowid_relative_fno(rowid)=9
    /

  • 相关阅读:
    (二)扩展原理:【2】BeanDefinitionRegistryPostProcessor
    寒假学习日报3
    寒假学习日报6
    寒假学习日报8
    寒假学习日报9
    寒假学习日报7
    寒假学习日报1
    寒假学习日报4
    构建之法阅读笔记1
    寒假学习日报2
  • 原文地址:https://www.cnblogs.com/gcczhongduan/p/4866232.html
Copyright © 2011-2022 走看看