11g DataGuard通過ABMR自動修復主庫壞塊 - Automatic Block Media Repair
在11g Active DataGuard中,如果我們使用real time的功能,我們就可以使用Automatic Block Media Repair的特性來修復主庫的壞塊. 因為當你使用了real time的功能後,你對主庫的更新會迅速傳到備庫,此時主庫出現壞塊,我們可以相反的從備庫上把已經applying的block在傳回給主庫。
1、open real time Feature
alter database recover managed standby database cancel;
alter database open read only;
alter database recover managed standby database using current logfile disconnect;
2、Identify the blocks allocated to a table that contains containing data.
You may use the following query to translate the rowid to a 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
3. Using the block from the datafile identified file# using DD utility at OS level.
dd if=/dev/zero f=/oradata/orcl/users.dbf count=1 seek=164 bs=8192 conv=notrunc
4. Check the datafile for corruption :
dbv file=/oradata/orcl/users.dbf blocksize=8192
5. Flush the buffer cache on primary database to force a re-read the data from disk
alter system flush buffer_cache;
6. Attempt to select from the table. No error should occur and the data should return as valid
select * from test.test where dbms_rowid.rowid_block_number(rowid)=164
and dbms_rowid.rowid_relative_fno(rowid)=9
此時我們可以看到資料能夠查詢出來,那麼看一下我們的後臺alert日誌,記錄了下列內容:
ALTER SYSTEM: Flushing buffer cache
Wed Jul 07 17:35:09 2012
Hex dump of (file 9, block 164) in trace file /oracle/app/oracle/diag/rdbms/dg1/dg1/trace/dg1_ora_4391.trc
Corrupt block relative dba: 0x010000ab (file 9, block 164)
Completely zero block found during multiblock buffer read
Reading datafile '/oradata/orcl/users.dbf ' for corruption at rdba: 0x010000ab (file 9, block 164)
Reread (file 9, block 164) found same corrupt data
Starting background process ABMR
Wed Jul 07 17:35:09 2012
ABMR started with pid=55, OS id=4364
Auto BMR service is active.
Requesting Auto BMR for (file 9, block 164)
Waiting Auto BMR response for (file 9, block 164)
Auto BMR successful
轉自: http://blog.csdn.net/linghao00/article/details/7944706
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/35489/viewspace-1073396/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle 11g ADG Automatic Block Repair(ABMR自動塊修復)功能測試OracleBloCAI
- dataguard主庫壞塊的修復
- DBMS_REPAIR修復壞塊AI
- 使用dbms_repair修復塊損壞AI
- Oracle 11G 新特性 Automatic block repairOracleBloCAI
- Oracle 11g DG新特性--Automatic block repairOracleBloCAI
- 11g Active Standby Database Automatic Block Corruption RepairDatabaseBloCAI
- abmr:塊恢復特性測試自己主動
- Oracle資料庫壞塊修復Oracle資料庫
- RMAN修復壞塊
- 修復資料庫壞塊之五資料庫
- 修復資料庫壞塊之四資料庫
- 修復資料庫壞塊之三資料庫
- 修復資料庫壞塊之二資料庫
- 修復資料庫壞塊之一資料庫
- 驗證ADG的壞塊檢測和自動修復
- PostgreSQL 恢復大法 - 恢復部分資料庫、跳過壞塊、修復無法啟動的資料庫SQL資料庫
- MySQL錯誤修復:Table xx is marked as crashed and last (automatic?) repair failedMySqlASTAI
- 【DATAGUARD】Oracle Dataguard nologging 塊修復Oracle
- oracle壞塊修復例項Oracle
- 使用DBMS_REPAIR確定和跳過壞塊AI
- ORACLE 11G DataGuard Failover後如何修復standby庫OracleAI
- Oracle日常問題-壞塊修復Oracle
- 修復損壞的資料塊
- 【譯】Facebook如何通過工具學習自動修復Bug ?
- oracle壞塊Block CorruptionsOracleBloC
- oracle壞塊的rowid方式修復Oracle
- ORACLE中修復資料塊損壞Oracle
- Oracle壞塊修復處理實驗Oracle
- ORACLE 11G通過SCN做增量備份修復standby庫詳細過程Oracle
- dataguard備庫出現GAP修復
- DATAGUARD監控,保護和自動修復最佳實踐
- MongoDB 資料檔案損壞修復救命repair與致命危險MongoDBAI
- 通過 v$database_block_corruption 查詢資料檔案中的壞塊DatabaseBloC
- 行動硬碟壞道修復硬碟
- 資料庫壞塊Corrupt block的處理方法資料庫BloC
- pg 檔案塊損壞的修復措施。
- redo損壞修復啟動資料庫辦法資料庫