Content:
1. Enabling the real time apply
2. Create test table in Primary
3. check the file users01.dbf for any corruption.
4. Corrupt the Block using the following command.
5. Check the block corruption using rman backup.
6. Check the Block corruption with the following view.
7. Check of alert log on PRIMARY database
8. Check for corrupt blocks using dbv
9. Check the Corruption in database level.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit
Production
With the Partitioning, OLAP, Data Mining and Real Application
Testing options
SQL> alter database recover managed standby database cancel;
SQL> alter database open read only;
SQL> alter database recover managed standby database using current
logfile disconnect;
SQL> exit;
a. Confirm that standby database is open
SQL> select file_name from dba_data_files;
FILE_NAME
FILE_NAME
/u01/app/oracle/oradata/teststby/users01.dbf
/u01/app/oracle/oradata/teststby/undotbs01.dbf
/u01/app/oracle/oradata/teststby/sysaux01.dbf
/u01/app/oracle/oradata/teststby/system01.dbf
SQL> select open_mode from v$database;
OPEN_MODE
READ ONLY WITH APPLY
SQL>
Note: While the standby database is open in READ ONLY mode, media
recovery is still in progress.
Check the file users01.dbf for any corruption
cd /u01/app/oracle/oradata/testdb
[oracle@testdb datafile]$ dbv file=users01.dbf
DBVERIFY: Release 11.2.0.4.0 - Production on Wed Apr 1 12:40:52 2015
Copyright (c) 1982, 2011, Oracle and/or its affiliates.
reserved.
DBVERIFY - Verification starting : FILE =
/u01/app/oracle/oradata/testdb/users01.dbf
DBVERIFY - Verification complete
Total
Total
Total
Total
Total
Total
Total
Total
Total
Pages
Pages
Pages
Pages
Pages
Pages
Pages
Pages
Pages
Examined
Processed
Failing
Processed
Failing
Processed
Processed
Failing
Empty
:
(Data) :
(Data) :
(Index):
(Index):
(Other):
(Seg) :
(Seg) :
:
640000
190021
0
444769
0
5209
0
0
1
All rights
All rights
Reread of blocknum=140,
file=/u01/app/oracle/oradata/testdb/users01.dbf. found same corrupt
data
Hex dump of (file 5, block 139) in trace file
/u01/app/oracle/diag/rdbms/testdb/testdb/trace/testdb_ora_19540.trc
Corrupt block relative dba: 0x0140008b (file 5, block 139)
Completely zero block found during multiblock buffer read
Reading datafile /u01/app/oracle/oradata/testdb/users01.dbf for
corruption at rdba: 0x0140008b (file 5, block 139)
Reread (file 5, block 139) found same corrupt data
Starting background process ABMR
Thu Dec 24 11:17:55 2009
ABMR started with pid=36, OS id=19550
Auto BMR service is active.
Requesting Auto BMR for (file# 5, block# 139)
Hex dump of (file 5, block 140) in trace file
/u01/app/oracle/diag/rdbms/testdb/testdb/trace/testdb_ora_19540.trc
Corrupt block relative dba: 0x0140008c (file 5, block 140)
Completely zero block found during multiblock buffer read
Reading datafile /u01/app/oracle/oradata/testdb/users01.dbf for
corruption at rdba: 0x0140008c (file 5, block 140)
Reread (file 5, block 140) found same corrupt data
Requesting Auto BMR for (file# 5, block# 140)
Waiting Auto BMR response for (file# 5, block# 139)
Auto BMR successful
Waiting Auto BMR response for (file# 5, block# 140)
Auto BMR response already received
Auto BMR successful