Abmr: test the automatic block Recovery feature

Source: Internet
Author: User

Abmr: test the automatic block Recovery feature

Reference Original:
Abmr: how to test automatic block recover feature (Doc ID 1266059.1)

Applicable:
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.


Objectives:
This article first creates a bad block in datafile and then triggers the abmr feature.
As a pre-requirement for testing, you need to configure the master and slave databases of the DG and synchronize them normally.

Solution:
1. confirm that the block in the table contains data.
You can use the following query statement to translate rowid into file # And 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.
What is the above sentence? No cloud.
Dd If =/dev/Zero of =/oradata/orcl/users. dbf count = 1 seek = 164 BS = 8192 Conv = notrunc

3. Check whether the block is damaged.
DBV file =/oradata/orcl/users. DBF blocksize = 8192

4. Flush buffer cache on the master database to force data to be read again from the disk to the memory.
5. query the table again. No error is displayed and the queried data is valid.
Select * from Test. Test
Where dbms_rowid.rowid_block_number (rowid) = 164
And dbms_rowid.rowid_relative_fno (rowid) = 9
/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.