<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>DBAToolZ &#187; corruption</title>
	<atom:link href="http://www.dbatoolz.com/t/tag/corruption/feed" rel="self" type="application/rss+xml" />
	<link>http://www.dbatoolz.com</link>
	<description>Lightweight Oracle DBA Tools</description>
	<lastBuildDate>Tue, 16 Feb 2010 01:17:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Formatting Corrupted Block Not Part of Any Segment</title>
		<link>http://www.dbatoolz.com/t/formatting-corrupted-block-not-part-of-any-segment.html</link>
		<comments>http://www.dbatoolz.com/t/formatting-corrupted-block-not-part-of-any-segment.html#comments</comments>
		<pubDate>Thu, 07 May 2009 01:19:16 +0000</pubDate>
		<dc:creator>MVE</dc:creator>
				<category><![CDATA[Operations]]></category>
		<category><![CDATA[corruption]]></category>
		<category><![CDATA[ORA-19566]]></category>
		<category><![CDATA[RMAN]]></category>

		<guid isPermaLink="false">http://www.dbatoolz.com/?p=310</guid>
		<description><![CDATA[It&#8217;s been a while since my last post &#8230; but this issue I ran into last night is worth mentioning.  Here&#8217;s what happened &#8212; 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 [...]


Related posts:<ol><li><a href='http://www.dbatoolz.com/t/oracle-rman-tspitr-restore-which-i-didnt-do.html' rel='bookmark' title='Permanent Link: Anotomy of an RMAN TSPITR restore which I didn&#8217;t do'>Anotomy of an RMAN TSPITR restore which I didn&#8217;t do</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a while since my last post &#8230; but this issue I ran into last night is worth mentioning.  Here&#8217;s what happened &#8212; one of my RMAN backups failed with:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">   RMAN-00571: ===========================================================
   RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
   RMAN-00571: ===========================================================
   RMAN-03002: failure of backup plus archivelog <span style="color: #7a0874; font-weight: bold;">command</span> at 05<span style="color: #000000; font-weight: bold;">/</span>05<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2009</span> <span style="color: #000000;">23</span>:<span style="color: #000000;">16</span>:<span style="color: #000000;">15</span>
   ORA-<span style="color: #000000;">19566</span>: exceeded limit of <span style="color: #000000;">0</span> corrupt blocks <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #000000; font-weight: bold;">/</span>u01<span style="color: #000000; font-weight: bold;">/</span>app<span style="color: #000000; font-weight: bold;">/</span>czgddata<span style="color: #000000; font-weight: bold;">/</span>a_txn_data02.dbf</pre></td></tr></table></div>

<p>The corrupt block was being reported as part of a segment &#8212; a table:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
</pre></td><td class="code"><pre class="oracle11" style="font-family:monospace;">   SQL<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">CONNECT</span> <span style="color: #66cc66;">/</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">AS</span> sysdba
   Connected.
   SQL<span style="color: #66cc66;">&gt;</span>
   SQL<span style="color: #66cc66;">&gt;</span>
   SQL<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> owner<span style="color: #66cc66;">,</span> segment_name<span style="color: #66cc66;">,</span> segment_type
   <span style="color: #993333; font-weight: bold; text-transform: uppercase;">FROM</span>   dba_extents
   <span style="color: #993333; font-weight: bold; text-transform: uppercase;">WHERE</span>  file_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">401</span>
   <span style="color: #993333; font-weight: bold; text-transform: uppercase;">AND</span>    <span style="color: #cc66cc;">257532</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">BETWEEN</span> block_id <span style="color: #993333; font-weight: bold; text-transform: uppercase;">AND</span> block_id <span style="color: #66cc66;">+</span> blocks <span style="color: #66cc66;">-</span> <span style="color: #cc66cc;">1</span>;
&nbsp;
     <span style="color: #cc66cc;">2</span>    <span style="color: #cc66cc;">3</span>    <span style="color: #cc66cc;">4</span>
&nbsp;
   OWNER
   <span style="color: #808080; font-style: italic;">------------------------------</span>
   SEGMENT_NAME
   <span style="color: #808080; font-style: italic;">--------------------------------------------------------------------------------</span>
   SEGMENT_TYPE
   <span style="color: #808080; font-style: italic;">------------------</span>
   CZ
   CZ_DEVL_PROJECTS
   <span style="color: #993333; font-weight: bold; text-transform: uppercase;">TABLE</span></pre></td></tr></table></div>

<p>But the data was still readable and I was able to move the table to &#8220;map the corrupt block&#8221; outside of the segment boundaries:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="oracle11" style="font-family:monospace;">   SQL<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">ALTER</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">TABLE</span> CZ.CZ_DEVL_PROJECTS move;
&nbsp;
   <span style="color: #993333; font-weight: bold; text-transform: uppercase;">TABLE</span> altered.
&nbsp;
   SQL<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">COUNT</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">*</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">FROM</span> CZ.CZ_DEVL_PROJECTS;
&nbsp;
     <span style="color: #993333; font-weight: bold; text-transform: uppercase;">COUNT</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">*</span><span style="color: #66cc66;">&#41;</span>
   <span style="color: #808080; font-style: italic;">----------</span>
          <span style="color: #cc66cc;">312</span></pre></td></tr></table></div>

<p>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 &#8211;> <a href="http://kb.dbatoolz.com/tp/3620.rman_-_ora-19566_exceeded_limit_of_0_corrupt_blocks_for_file.html">How to Format Corrupted Block Not Part of Any Segment</a>.</p>


<p>Related posts:<ol><li><a href='http://www.dbatoolz.com/t/oracle-rman-tspitr-restore-which-i-didnt-do.html' rel='bookmark' title='Permanent Link: Anotomy of an RMAN TSPITR restore which I didn&#8217;t do'>Anotomy of an RMAN TSPITR restore which I didn&#8217;t do</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.dbatoolz.com/t/formatting-corrupted-block-not-part-of-any-segment.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
