DBAToolZ

Lightweight Oracle DBA Tools

 

Formatting Corrupted Block Not Part of Any Segment

It’s been a while since my last post … but this issue I ran into last night is worth mentioning. Here’s what happened — one of my RMAN backups failed with:

1
2
3
4
5
   RMAN-00571: ===========================================================
   RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
   RMAN-00571: ===========================================================
   RMAN-03002: failure of backup plus archivelog command at 05/05/2009 23:16:15
   ORA-19566: exceeded limit of 0 corrupt blocks for file /u01/app/czgddata/a_txn_data02.dbf

The corrupt block was being reported as part of a segment — a table:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
   SQL> CONNECT / AS sysdba
   Connected.
   SQL>
   SQL>
   SQL> SELECT owner, segment_name, segment_type
   FROM   dba_extents
   WHERE  file_id = 401
   AND    257532 BETWEEN block_id AND block_id + blocks - 1;
 
     2    3    4
 
   OWNER
   ------------------------------
   SEGMENT_NAME
   --------------------------------------------------------------------------------
   SEGMENT_TYPE
   ------------------
   CZ
   CZ_DEVL_PROJECTS
   TABLE

But the data was still readable and I was able to move the table to “map the corrupt block” outside of the segment boundaries:

1
2
3
4
5
6
7
8
9
   SQL> ALTER TABLE CZ.CZ_DEVL_PROJECTS move;
 
   TABLE altered.
 
   SQL> SELECT COUNT(*) FROM CZ.CZ_DEVL_PROJECTS;
 
     COUNT(*)
   ----------
          312

Still, even after the move the block was still reported corrupt by the dbv and I had to deploy a procedure from the ML-Note: 336133.1. Which I fully documented in here –> How to Format Corrupted Block Not Part of Any Segment.

Related posts:

  1. Anotomy of an RMAN TSPITR restore which I didn’t do

Leave a Reply


My name is Vitaliy Mogilevskiy -- I started working with ORACLE Products in 1996 (Oracle v7, 7.3.4 was pretty good).

What you will find here is what works for me day in day out - 24x7x365 - simple ORACLE DBA Tools written using components that are available on every Unix platform with an ORACLE database -- sqlplus and KSH.

Do you have DBA questions? Head over to Ask DBA.

RSS DBA Forums


Recent Comments

  • dinu: i am getting this error error “ORA-12154: TNS:could not resolve the connect identifier specified”. i set...
  • dinu: i installed oracle insta client i added tnsnames.ora file but i cannot find sqlnet.ora file
  • Chaudhry M: Hi Thank You so mush. Now, it is clear to me. Thanks MMC
  • Anu: Hi Vitaliy, Thanks for your response.Based on your comment and reading isqlplus&sqlplus topic in 10g...
  • MVE: @Anu Great — I am glad you found the problem and solved it. RE isqlplus: I don’t use isqlplus, but...

Categories

Blogroll


Archives