<?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>惜分飞 &#187; 数据库恢复</title>
	<atom:link href="https://www.xifenfei.com/tag/%e6%95%b0%e6%8d%ae%e5%ba%93%e6%81%a2%e5%a4%8d/feed" rel="self" type="application/rss+xml" />
	<link>https://www.xifenfei.com</link>
	<description>提供7*24专业数据库(Oracle,SQL Server,MySQL,PostgreSQL等)恢复和技术支持@Tel:17813235971</description>
	<lastBuildDate>Sun, 22 Nov 2026 15:21:14 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>最新版Oracle dul支持Oracle 7.2.3</title>
		<link>https://www.xifenfei.com/2015/11/dul-support-oracle-7.html</link>
		<comments>https://www.xifenfei.com/2015/11/dul-support-oracle-7.html#comments</comments>
		<pubDate>Tue, 24 Nov 2015 14:47:59 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[非常规恢复]]></category>
		<category><![CDATA[dul]]></category>
		<category><![CDATA[oracle 7.2.3]]></category>
		<category><![CDATA[oracle 7.2恢复]]></category>
		<category><![CDATA[recover database]]></category>
		<category><![CDATA[数据库恢复]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=6169</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2015/11/dul-support-oracle-7.html">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div id="xifenfeicopyright">
<p>联系：<a href="https://www.xifenfei.com/about_xifenfei" target="_blank">手机/微信(+86 17813235971)   QQ(107644445)</a><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&#038;uin=107644445&#038;site=qq&#038;menu=yes"><img src="https://www.xifenfei.com/wp-content/themes/img/site_qq.jpg" alt="QQ咨询惜分飞" title="QQ咨询惜分飞"/></a></p>
<p>标题：<a href="https://www.xifenfei.com/2015/11/dul-support-oracle-7.html" target="_blank">最新版Oracle dul支持Oracle 7.2.3</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>网上有朋友发过来了oracle 7.2.3的数据文件说dul新版本无法支持,我进行测试,可以正常使用dul挖oracle 7.2.3版本oracle.再次实测刷新dul对于oracle老版本支持记录(以前实测dul支持oracle 8.0:<a href="//www.xifenfei.com/2014/02/dul10%e7%9b%b4%e6%8e%a5%e6%94%af%e6%8c%81oracle-8.html" title="DUL10直接支持ORACLE 8.0" target="_blank">DUL10直接支持ORACLE 8.0</a>,<a href="//www.xifenfei.com/2012/07/dul%e6%8c%96oracle-8-0%e6%95%b0%e6%8d%ae%e5%ba%93.html" title="DUL挖ORACLE 8.0数据库" target="_blank">DUL挖ORACLE 8.0数据库</a>).根据dul官方说法从oracle 6 及其以后版本都支持<br />
<strong>最新版dul(10.2.0.6.11)支持oracle 7.2.3</strong></p>
<pre class="brush: bash; title: ; notranslate">
H:\temp\recover\dul10&gt;dul.exe

Data UnLoader: 10.2.0.6.11 - Internal Only - on Sun Nov 08 22:45:26 2015
with 64-bit io functions

Copyright (c) 1994 2015 Bernard van Duijnen All rights reserved.

 Strictly Oracle Internal Use Only


DUL: Warning: Recreating file &quot;dul.log&quot;
Found db_id = 1190425910
Found db_name = ORA7
DUL&gt; show datafiles;
ts# rf# start   blocks offs open  err file name
UNK   1     0   524289    0    0    0 H:\temp\recover\headof\headof\home\systora7.dbf
UNK   2     0   524289    0    1    0 H:\temp\recover\headof\headof\home1\rbsora7.dbf
UNK   3     0   524289    0    0    0 H:\temp\recover\headof\headof\home\tempora7.dbf
UNK   4     0    15361    0    0    0 H:\temp\recover\headof\headof\home\toolora7.dbf
UNK   5     0      513    0    1    0 H:\temp\recover\headof\headof\home\usrora7.dbf
UNK   6     0   524289    0    0    0 H:\temp\recover\headof\headof\home\BSYS_DISK1.dbf
UNK   7     0   524289    0    1    0 H:\temp\recover\headof\headof\home1\BSYS_DISK2.dbf
UNK   8     0   512001    0    1    0 H:\temp\recover\headof\headof\home1\BALANCE_DATA01.dbf
UNK   9     0   262145    0    0    0 H:\temp\recover\headof\headof\home\BALANCE_IDX01.dbf
UNK  10     0   524289    0    0    0 H:\temp\recover\headof\headof\home\CARD.dbf
UNK  11     0   524289    0    0    0 H:\temp\recover\headof\headof\home\LARGE_TRANS.dbf
UNK  12     0   524289    0    0    0 H:\temp\recover\headof\headof\home\tool01.dbf
UNK  13     0   524289    0    0    0 H:\temp\recover\headof\headof\home\system1.dbf
UNK  14     0   524289    0    0    0 H:\temp\recover\headof\headof\home\balance_data02.dbf
UNK  15     0   524289    0    0    0 H:\temp\recover\headof\headof\home\BSYS_DISK3.dbf
UNK  16     0   524289    0    0    0 H:\temp\recover\headof\headof\home\BSYS_DISK4.dbf
UNK  17     0   524289    0    0    0 H:\temp\recover\headof\headof\home\BSYS_DISK5.dbf
UNK  18     0   524289    0    0    0 H:\temp\recover\headof\headof\home\BSYS_DISK6.dbf
UNK  19     0   524289    0    0    0 H:\temp\recover\headof\headof\home\system2.dbf
UNK  20     0   524289    0    0    0 H:\temp\recover\headof\headof\home\card1.dbf
DUL&gt; bootstrap;
Probing file = 1, block = 377
  database version 7 bootstrap$ at file 1, block 302
. unloading table                BOOTSTRAP$
DUL: Warning: block number is non zero but marked deferred trying to process it anyhow
      45 rows unloaded
DUL: Warning: Dictionary cache DC_BOOTSTRAP is empty
Reading BOOTSTRAP.dat 45 entries loaded
Parsing Bootstrap$ contents
DUL: Warning: Recreating file &quot;dict.ddl&quot;
Generating dict.ddl for version 7
 OBJ$: segobjno 17, file 1 block 162
 TAB$: segobjno 1, tabno 1, file 1  block 52
 COL$: segobjno 1, tabno 5, file 1  block 52
 USER$: segobjno 9, tabno 1, file 1  block 142
Running generated file &quot;@dict.ddl&quot; to unload the dictionary tables
. unloading table                      OBJ$    6076 rows unloaded
. unloading table                      TAB$    1067 rows unloaded
. unloading table                      COL$   18105 rows unloaded
. unloading table                     USER$      56 rows unloaded
Reading USER.dat 56 entries loaded
Reading OBJ.dat 6076 entries loaded and sorted 6076 entries
Reading SCANNEDLOBPAGE.dat 0 entries loaded and sorted 0 entries
Reading TAB.dat 1067 entries loaded
Reading COL.dat 18105 entries loaded and sorted 18105 entries
Reading SEG.dat 0 entries loaded
Reading EXT.dat 0 entries loaded and sorted 0 entries
Reading COMPATSEG.dat 0 entries loaded
Reading BOOTSTRAP.dat 45 entries loaded

DUL: Warning: Recreating file &quot;dict.ddl&quot;
Generating dict.ddl for version 7
 OBJ$: segobjno 17, file 1 block 162
 TAB$: segobjno 1, tabno 1, file 1  block 52
 COL$: segobjno 1, tabno 5, file 1  block 52
 USER$: segobjno 9, tabno 1, file 1  block 142
Running generated file &quot;@dict.ddl&quot; to unload the dictionary tables
. unloading table                      OBJ$
DUL: Warning: Recreating file &quot;OBJ.ctl&quot;
    6076 rows unloaded
. unloading table                      TAB$
DUL: Warning: Recreating file &quot;TAB.ctl&quot;
    1067 rows unloaded
. unloading table                      COL$
DUL: Warning: Recreating file &quot;COL.ctl&quot;
   18105 rows unloaded
. unloading table                     USER$
DUL: Warning: Recreating file &quot;USER.ctl&quot;
      56 rows unloaded
Reading USER.dat 56 entries loaded
Reading OBJ.dat 6076 entries loaded and sorted 6076 entries
Reading SCANNEDLOBPAGE.dat 0 entries loaded and sorted 0 entries
Reading TAB.dat 1067 entries loaded
Reading COL.dat 18105 entries loaded and sorted 18105 entries
Reading SEG.dat 0 entries loaded
Reading EXT.dat 0 entries loaded and sorted 0 entries
Reading COMPATSEG.dat 0 entries loaded
Reading BOOTSTRAP.dat 45 entries loaded
DUL&gt; unload table user$;
. unloading table                     USER$
DUL: Warning: Recreating file &quot;USER.ctl&quot;
      56 rows unloaded
DUL&gt;
</pre>
<p><strong>数据库版本截图</strong><br />
<img src="//www.xifenfei.com/wp-content/uploads/2015/11/oracle-7.2.3-1.jpg" alt="oracle 7.2.3" width="564" height="189" class="size-full wp-image-6176" /></p>
<hr />
<img src="//www.xifenfei.com/wp-content/uploads/2015/11/oracle-7.2.3.jpg" alt="oracle-7.2.3" width="931" height="534" class="alignleft size-full wp-image-6170" /></p>
<hr />
<strong>dul执行结果截图</strong><br />
<img src="//www.xifenfei.com/wp-content/uploads/2015/11/dul-oracle-7.2.3.jpg" alt="dul-oracle-7.2.3" width="767" height="645" class="alignleft size-full wp-image-6171" /></p>
<hr />
<strong>通过内部命令直接读取数据文件版本信息</strong><br />
<img src="//www.xifenfei.com/wp-content/uploads/2015/11/dump-oracle-7.jpg" alt="dump-oracle-7" width="588" height="341" class="alignleft size-full wp-image-6174" /></p>
<hr />
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2025/08/oracle-dul-2025.html" rel="bookmark" class="crp_title">Oracle dul 最新版(12.2.0.2.10)</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2023/07/dul-support-arm-oracle.html" rel="bookmark" class="crp_title">dul支持arm版本Oracle数据库恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2020/11/dul-12-2-support-oracle-19c.html" rel="bookmark" class="crp_title">dul 12.2完美支持Oracle 19c恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/06/%e4%bd%bf%e7%94%a8-dul-%e6%8c%96%e6%95%b0%e6%8d%ae%e6%96%87%e4%bb%b6%e5%88%9d%e8%af%95.html" rel="bookmark" class="crp_title">使用 dul 挖数据文件初试</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2023/03/oracle-dul-202302.html" rel="bookmark" class="crp_title">最新版oracle dul工具</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2014/02/dul10%e7%9b%b4%e6%8e%a5%e6%94%af%e6%8c%81oracle-8.html" rel="bookmark" class="crp_title">DUL10直接支持ORACLE 8.0</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2021/08/oracle-dul-support-21c.html" rel="bookmark" class="crp_title">Oracle dul 依旧支持Oracle 21c</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2019/03/dul-support-19c.html" rel="bookmark" class="crp_title">dul支持Oracle 19C</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2017/02/oracle-dul-support-12-2.html" rel="bookmark" class="crp_title">Oracle dul支持Oracle 12.2(12c)</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/08/dul-10%e6%94%af%e6%8c%81oracle-11g-r2.html" rel="bookmark" class="crp_title">dul 10支持oracle 11g r2</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2018/06/oracle-dul-support-18c.html" rel="bookmark" class="crp_title">Oracle dul支持18c</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2020/02/oracle-dul-12-released.html" rel="bookmark" class="crp_title">oracle dul 12 正式发布</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2015/11/dul-support-oracle-7.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Oracle 12C的第一次异常恢复&#8212;文件头坏块</title>
		<link>https://www.xifenfei.com/2014/11/oracle-12c%e7%9a%84%e7%ac%ac%e4%b8%80%e6%ac%a1%e5%bc%82%e5%b8%b8%e6%81%a2%e5%a4%8d-%e6%96%87%e4%bb%b6%e5%a4%b4%e5%9d%8f%e5%9d%97.html</link>
		<comments>https://www.xifenfei.com/2014/11/oracle-12c%e7%9a%84%e7%ac%ac%e4%b8%80%e6%ac%a1%e5%bc%82%e5%b8%b8%e6%81%a2%e5%a4%8d-%e6%96%87%e4%bb%b6%e5%a4%b4%e5%9d%8f%e5%9d%97.html#comments</comments>
		<pubDate>Mon, 03 Nov 2014 05:50:49 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[非常规恢复]]></category>
		<category><![CDATA[ORA-00283]]></category>
		<category><![CDATA[ORA-19909]]></category>
		<category><![CDATA[ORA-600 2662]]></category>
		<category><![CDATA[ORA=600 4194]]></category>
		<category><![CDATA[Oracle 12C 恢复]]></category>
		<category><![CDATA[Oracle 恢复]]></category>
		<category><![CDATA[数据库恢复]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=5597</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2014/11/oracle-12c%e7%9a%84%e7%ac%ac%e4%b8%80%e6%ac%a1%e5%bc%82%e5%b8%b8%e6%81%a2%e5%a4%8d-%e6%96%87%e4%bb%b6%e5%a4%b4%e5%9d%8f%e5%9d%97.html">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div id="xifenfeicopyright">
<p>联系：<a href="https://www.xifenfei.com/about_xifenfei" target="_blank">手机/微信(+86 17813235971)   QQ(107644445)</a><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&#038;uin=107644445&#038;site=qq&#038;menu=yes"><img src="https://www.xifenfei.com/wp-content/themes/img/site_qq.jpg" alt="QQ咨询惜分飞" title="QQ咨询惜分飞"/></a></p>
<p>标题：<a href="https://www.xifenfei.com/2014/11/oracle-12c%e7%9a%84%e7%ac%ac%e4%b8%80%e6%ac%a1%e5%bc%82%e5%b8%b8%e6%81%a2%e5%a4%8d-%e6%96%87%e4%bb%b6%e5%a4%b4%e5%9d%8f%e5%9d%97.html" target="_blank">Oracle 12C的第一次异常恢复&#8212;文件头坏块</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>接到第一个使用Oracle 12C作为生产库的恢复救援.有两个业务数据文件报文件头损坏,其他数据文件全部是9月份的一次备份,在当前的条件下,希望我们能够帮他们恢复出来业务文件中的数据<br />
<strong>数据库版本信息</strong></p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt; select * from v$version;

BANNER                                                                               CON_ID
-------------------------------------------------------------------------------- ----------
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production              0
PL/SQL Release 12.1.0.1.0 - Production                                                    0
CORE    12.1.0.1.0      Production                                                        0
TNS for Linux: Version 12.1.0.1.0 - Production                                            0
NLSRTL Version 12.1.0.1.0 - Production                                                    0
</pre>
<p><strong>数据库故障</strong><br />
具体脚本请参考:<a href="//www.xifenfei.com/oracle_recovery_check" title="数据库恢复检查脚本(Oracle Database Recovery Check)" target="_blank">数据库恢复检查脚本(Oracle Database Recovery Check)</a><br />
控制文件信息<br />
<img src="//www.xifenfei.com/wp-content/uploads/2014/11/1.jpg" alt="1" width="1417" height="135" class="alignleft size-full wp-image-5598" /><br />
控制文件中关于数据文件信息<br />
<img src="//www.xifenfei.com/wp-content/uploads/2014/11/2.jpg" alt="2" width="1408" height="250" class="alignleft size-full wp-image-5599" /><br />
数据文件头信息<br />
<img src="//www.xifenfei.com/wp-content/uploads/2014/11/3.jpg" alt="3" width="1407" height="242" class="alignleft size-full wp-image-5600" /><br />
<strong>alert日志报错</strong></p>
<pre class="brush: bash; title: ; notranslate">
Reading datafile '/app/oracle/oradata/freetouch/sales.dbf' for corruption at rdba: 0x00000001 (file 4, block 1)
Reread (file 4, block 1) found same corrupt data (no logical check)
Hex dump of (file 5, block 1) in trace file /app/oracle/diag/rdbms/valuenet/valuenet/trace/valuenet_ora_12384.trc

Corrupt block relative dba: 0x00000001 (file 5, block 1)
Fractured block found during kcvxfh v8
Data in bad block:
 type: 0 format: 2 rdba: 0x00000001
 last change scn: 0x0000.00000000 seq: 0x1 flg: 0x05
 spare1: 0x0 spare2: 0x0 spare3: 0x0
 consistency value in tail: 0x00000001
 check value in block header: 0xa701
 computed block checksum: 0x0

Reading datafile '/app/oracle/oradata/freetouch/drp_200200' for corruption at rdba: 0x00000001 (file 5, block 1)
Reread (file 5, block 1) found same corrupt data (no logical check)
Hex dump of (file 4, block 1) in trace file /app/oracle/diag/rdbms/valuenet/valuenet/trace/valuenet_ora_12384.trc

Corrupt block relative dba: 0x00000001 (file 4, block 1)
Fractured block found during kcvxfh v8
Data in bad block:
 type: 0 format: 2 rdba: 0x00000001
 last change scn: 0x0000.00000000 seq: 0x1 flg: 0x05
 spare1: 0x0 spare2: 0x0 spare3: 0x0
 consistency value in tail: 0x00000001
 check value in block header: 0xa701
 computed block checksum: 0x0
</pre>
<p><strong>odu无法识别异常文件</strong></p>
<pre class="brush: bash; title: ; notranslate">
[oracle@db odu]$ ./odu

Oracle Data Unloader trial version 4.1.3

Copyright (c) 2008,2009,2010,2011 XiongJun. All rights reserved.


loading default config.......

byte_order little
block_size  8192
db_timezone -7
Invalid db timezone:-7
client_timezone 8
Invalid client timezone:8
asmfile_extract_path /home/oracle/hongye/odu/data
data_path  /home/oracle/hongye/odu/data
lob_path  /home/oracle/hongye/odu/data
charset_name ZHS16GBK
ncharset_name AL16UTF16
output_form  dmp
error at line 10.
lob_storage infile
clob_byte_order big
trace_level 1
delimiter |
unload_deleted yes
file_header_offset 0
is_tru64 no
record_row_addr no
convert_clob_charset yes

load config file 'config.txt' successful
loading default asm disk file ......

can not open file 'asmdisk.txt', error message:No such file or directory.
loading default control file ......

unknown file format '/app/oracle/oradata/freetouch/sales.dbf'
unknown file format '/app/oracle/oradata/freetouch/drp_200200'

 ts#   fn  rfn bsize   blocks bf offset filename
---- ---- ---- ----- -------- -- ------ --------------------------------------------
   1    1    1  8192   194560 N       0 /app/oracle/oradata/freetouch/system01.dbf
   6    2   10  8192    45840 N       0 /app/oracle/oradata/freetouch/example01.dbf
   1    3    3  8192   907520 N       0 /app/oracle/oradata/freetouch/sysaux01.dbf
   4 1024   10  8192        0 N       0 /app/oracle/oradata/freetouch/sales.dbf
   5 1024    9  8192        0 N       0 /app/oracle/oradata/freetouch/drp_200200
   4    6    6  8192   128320 N       0 /app/oracle/oradata/freetouch/users01.dbf
   7    7    7  8192   780288 N       0 /app/oracle/oradata/freetouch/undotbs03.dbf
  11    8    8  8192    25600 N       0 /app/oracle/oradata/freetouch/indx01.dbf
load control file 'control.txt' successful
loading dictionary data......done

loading scanned data......done
</pre>
<p><strong>dul无法识别异常文件</strong></p>
<pre class="brush: bash; title: ; notranslate">
[oracle@db dul]$ ./dul

Data UnLoader: 10.2.0.5.32 - Internal Only - on Sun Nov  2 23:34:42 2014
with 64-bit io functions

Copyright (c) 1994 2014 Bernard van Duijnen All rights reserved.

 Strictly Oracle Internal Use Only


DUL: Warning: ulimit process stack size is only 33554432
Found db_id = 270587870
Found db_name = VALUENET

DUL: Warning: Cannot verify file number for /app/oracle/oradata/freetouch/sales.dbf
DUL: Warning: First four bytes(76 162 0 0) of block 2 are not the start of a proper data block header
DUL: Warning: Block corruption or configuration error
DUL: Warning: Check db_block_size and/or osd_file_leader_size and/or file offset
DUL: Error: File Number can only be zero for Single Tablespace Datafiles

DUL: Warning: Cannot verify file number for /app/oracle/oradata/freetouch/drp_200200
DUL: Warning: First four bytes(76 162 0 0) of block 2 are not the start of a proper data block header
DUL: Warning: Block corruption or configuration error
DUL: Warning: Check db_block_size and/or osd_file_leader_size and/or file offset
DUL: Error: File Number can only be zero for Single Tablespace Datafiles
DUL&gt; show datafiles;
ts# rf# start   blocks offs open  err file name
  0   1     0   194561    0    1    0 /app/oracle/oradata/freetouch/system01.dbf
  1   3     0   907521    0    1    0 /app/oracle/oradata/freetouch/sysaux01.dbf
  4   6     0   128321    0    1    0 /app/oracle/oradata/freetouch/users01.dbf
  7   7     0   780289    0    1    0 /app/oracle/oradata/freetouch/undotbs03.dbf
 11   8     0    25601    0    1    0 /app/oracle/oradata/freetouch/indx01.dbf
  6  10     0    45841    0    1    0 /app/oracle/oradata/freetouch/example01.dbf
</pre>
<p>该异常文件使用dul/odu均无法正常识别.证明文件头确实已经损坏<br />
<br />
<strong>dbv 检测</strong></p>
<pre class="brush: bash; title: ; notranslate">
[oracle@db trace]$ dbv file=/app/oracle/oradata/freetouch/drp_200200

DBVERIFY: Release 12.1.0.1.0 - Production on Sun Nov 2 14:08:34 2014

Copyright (c) 1982, 2013, Oracle and/or its affiliates.  All rights reserved.

DBVERIFY - Verification starting : FILE = /app/oracle/oradata/freetouch/drp_200200


DBVERIFY - Verification complete

Total Pages Examined         : 194560
Total Pages Processed (Data) : 114596
Total Pages Failing   (Data) : 0
Total Pages Processed (Index): 26198
Total Pages Failing   (Index): 0
Total Pages Processed (Other): 37787
Total Pages Processed (Seg)  : 1
Total Pages Failing   (Seg)  : 0
Total Pages Empty            : 15979
Total Pages Marked Corrupt   : 0
Total Pages Influx           : 0
Total Pages Encrypted        : 0
Highest block SCN            : 129603862 (0.129603862)

[oracle@db ~]$ dbv file=/app/oracle/oradata/freetouch/sales.dbf

DBVERIFY: Release 12.1.0.1.0 - Production on Sun Nov 2 23:12:05 2014

Copyright (c) 1982, 2013, Oracle and/or its affiliates.  All rights reserved.

DBVERIFY - Verification starting : FILE = /app/oracle/oradata/freetouch/sales.dbf


DBVERIFY - Verification complete

Total Pages Examined         : 655360
Total Pages Processed (Data) : 294938
Total Pages Failing   (Data) : 0
Total Pages Processed (Index): 233404
Total Pages Failing   (Index): 0
Total Pages Processed (Lob)  : 38
Total Pages Failing   (Lob)  : 0
Total Pages Processed (Other): 23252
Total Pages Processed (Seg)  : 0
Total Pages Failing   (Seg)  : 0
Total Pages Empty            : 103728
Total Pages Marked Corrupt   : 0
Total Pages Influx           : 0
Total Pages Encrypted        : 0
Highest block SCN            : 134665298 (0.134665298)
</pre>
<p>dbv检测结果无坏块,但是v$datafile_header和alert日志中报坏块,初步判断是由于该文件是bigfile,dbv未检测到文件头坏块,实际该该数据文件头损坏，其他block正常.所幸的是该库有9月份的rman备份(中间归档丢失),因此使用rman还原出来9月份的数据文件,然后使用dd拷贝两个 block(block 0和block 1)到异常文件.</p>
<pre class="brush: bash; title: ; notranslate">
[root@db freetouch]# dd if=/app1/oracle/oradata/freetouch/sales.dbf bs=8192 count=2 of=/tmp/odu/sales.2
2+0 records in
2+0 records out
16384 bytes (16 kB) copied, 0.0176368 s, 929 kB/s
[root@db freetouch]# dd if=/tmp/odu/sales.2 of=/app/oracle/oradata/freetouch/sales.dbf bs=8192 count=2 conv=notrunc 
2+0 records in
2+0 records out
16384 bytes (16 kB) copied, 6.4281e-05 s, 255 MB/s
[root@db freetouch]# dd if=/app1/oracle/oradata/freetouch/drp_200200 bs=8192 count=2 of=/tmp/odu/drp_200200.2
2+0 records in
2+0 records out
16384 bytes (16 kB) copied, 0.0185934 s, 881 kB/s
[root@db freetouch]# dd if=/tmp/odu/drp_200200.2 of=/app/oracle/oradata/freetouch/drp_200200 bs=8192 count=2 conv=notrunc 
2+0 records in
2+0 records out
16384 bytes (16 kB) copied, 6.4419e-05 s, 254 MB/s
</pre>
<p><strong>尝试恢复数据库</strong></p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt; recover database;
ORA-00283: recovery session canceled due to errors
ORA-01610: recovery using the BACKUP CONTROLFILE option must be done


SQL&gt; recover database using backup controlfile;
ORA-00283: recovery session canceled due to errors
ORA-19909: datafile 4 belongs to an orphan incarnation
ORA-01110: data file 4: '/app/oracle/oradata/freetouch/sales.dbf'
</pre>
<p><strong>使用bbed修改相关文件头,然后继续恢复</strong><br />
具体见：<a href="//www.xifenfei.com/2666.html" title="bbed解决ORA-01190" target="_blank">bbed解决ORA-01190</a>类似方法处理</p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt; recover database using backup controlfile;
ORA-00279: change 129603904 generated at 11/02/2014 19:19:54 needed for thread
1
ORA-00289: suggestion :
/app/oracle/recovery_area/VALUENET/archivelog/2014_11_02/o1_mf_1_1_%u_.arc
ORA-00280: change 129603904 for thread 1 is in sequence #1


Specify log: {&lt;RET&gt;=suggested | filename | AUTO | CANCEL}
cancel;
ORA-00308: cannot open archived log 'cancel;'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3


Specify log: {&lt;RET&gt;=suggested | filename | AUTO | CANCEL}
cancel
Media recovery cancelled.
SQL&gt; alter database open resetlogs;
alter database open resetlogs
*
ERROR at line 1:
ORA-01092: ORACLE instance terminated. Disconnection forced
ORA-00600: internal error code, arguments: [2662], [0], [129603911], [0],
[129603913], [29360256], [], [], [], [], [], []
Process ID: 19881
Session ID: 1 Serial number: 3
</pre>
<p><strong>出现ORA-600[2662]错误,因为scn相差比较小，重启数据库机器,出现ORA-600[4194]错误</strong></p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt; startup pfile='/tmp/pfile.txt' mount
ORACLE instance started.

Total System Global Area 2505338880 bytes
Fixed Size                  2291472 bytes
Variable Size             973080816 bytes
Database Buffers         1526726656 bytes
Redo Buffers                3239936 bytes
Database mounted.
SQL&gt; alter database open;
alter database open
*
ERROR at line 1:
ORA-01113: file 1 needs media recovery
ORA-01110: data file 1: '/app/oracle/oradata/freetouch/system01.dbf'


SQL&gt; recover database ;
ORA-00283: recovery session canceled due to errors
ORA-16433: The database or pluggable database must be opened in read/write
mode.
</pre>
<p><strong>重建控制文件后继续恢复</strong></p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt; alter database open resetlogs;    
alter database open resetlogs
*
ERROR at line 1:
ORA-01092: ORACLE instance terminated. Disconnection forced
ORA-00600: internal error code, arguments: [4194], [46], [19], [], [], [], [],
[], [], [], [], []
Process ID: 20351
Session ID: 1 Serial number: 3
</pre>
<p><strong>设置undo_management=MANUAL然后继续恢复</strong></p>
<pre class="brush: sql; title: ; notranslate">
[oracle@db tmp]$ sqlplus / as sysdba

SQL*Plus: Release 12.1.0.1.0 Production on Sun Nov 2 19:29:45 2014

Copyright (c) 1982, 2013, Oracle.  All rights reserved.

Connected to an idle instance.

SQL&gt; startup pfile='/tmp/pfile.txt'
ORACLE instance started.

Total System Global Area 2505338880 bytes
Fixed Size                  2291472 bytes
Variable Size             973080816 bytes
Database Buffers         1526726656 bytes
Redo Buffers                3239936 bytes
Database mounted.
Database opened.
</pre>
<p>这次的恢复也证明Oracle 12C确实有着越来越多的用户在使用.</p>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/09/%e5%81%87%e5%9d%8f%e5%9d%97%e5%bc%95%e8%b5%b7%e6%81%90%e6%85%8c.html" rel="bookmark" class="crp_title">假坏块引起恐慌</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2026/07/dbv-controlfile.html" rel="bookmark" class="crp_title">需要注意:dbv 检测controlfile可能不准</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2013/02/rman%e5%88%b6%e9%80%a0%e5%9d%8f%e5%9d%97bbed%e4%bf%ae%e5%a4%8d%e5%9d%8f%e5%9d%97.html" rel="bookmark" class="crp_title">rman制造坏块,bbed修复坏块</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/09/dul%e6%8a%bd%e5%8f%96%e5%bc%82%e5%b8%b8asm%e6%96%87%e4%bb%b6.html" rel="bookmark" class="crp_title">密码保护：dul抽取异常asm文件</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2025/06/ora-00756-ora-10567-0-lost-recovery.html" rel="bookmark" class="crp_title">ORA-00756 ORA-10567故障数据0丢失恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2013/01/%e9%87%8d%e5%bb%ba%e6%8e%a7%e5%88%b6%e6%96%87%e4%bb%b6%e5%bc%95%e5%8f%91ora-00218%e6%95%85%e9%9a%9c.html" rel="bookmark" class="crp_title">重建控制文件引发ORA-00218故障</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/08/ora-01578%e5%9d%8f%e5%9d%97%e8%a7%a3%e5%86%b31.html" rel="bookmark" class="crp_title">ORA-01578坏块解决(1)</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2022/04/segment-header-ora-1578.html" rel="bookmark" class="crp_title">segment header异常对象删除处理</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2026/09/obet-repair-oracle-block.html" rel="bookmark" class="crp_title">obet快速修复oracle 位图损坏块</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2020/06/os-error-oracle-recovery.html" rel="bookmark" class="crp_title">系统故障oracle数据库恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/06/undo%e5%9d%8f%e5%9d%97%e5%af%bc%e8%87%b4%e6%95%b0%e6%8d%ae%e5%ba%93%e5%bc%82%e5%b8%b8%e7%bb%88%e6%ad%a2%e6%a1%88%e4%be%8b.html" rel="bookmark" class="crp_title">undo坏块导致数据库异常终止案例</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/08/ora-01578%e5%9d%8f%e5%9d%97%e8%a7%a3%e5%86%b32.html" rel="bookmark" class="crp_title">ORA-01578坏块解决(2)</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2014/11/oracle-12c%e7%9a%84%e7%ac%ac%e4%b8%80%e6%ac%a1%e5%bc%82%e5%b8%b8%e6%81%a2%e5%a4%8d-%e6%96%87%e4%bb%b6%e5%a4%b4%e5%9d%8f%e5%9d%97.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>数据库恢复历史再次刷新到Oracle 7.3.2版本&#8212;redo异常恢复</title>
		<link>https://www.xifenfei.com/2014/06/%e6%95%b0%e6%8d%ae%e5%ba%93%e6%81%a2%e5%a4%8d%e5%8e%86%e5%8f%b2%e5%86%8d%e6%ac%a1%e5%88%b7%e6%96%b0%e5%88%b0oracle-7-3-2%e7%89%88%e6%9c%ac-redo%e5%bc%82%e5%b8%b8%e6%81%a2%e5%a4%8d.html</link>
		<comments>https://www.xifenfei.com/2014/06/%e6%95%b0%e6%8d%ae%e5%ba%93%e6%81%a2%e5%a4%8d%e5%8e%86%e5%8f%b2%e5%86%8d%e6%ac%a1%e5%88%b7%e6%96%b0%e5%88%b0oracle-7-3-2%e7%89%88%e6%9c%ac-redo%e5%bc%82%e5%b8%b8%e6%81%a2%e5%a4%8d.html#comments</comments>
		<pubDate>Tue, 17 Jun 2014 02:24:15 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[非常规恢复]]></category>
		<category><![CDATA[ORA-600 3600]]></category>
		<category><![CDATA[ORA-600 4306]]></category>
		<category><![CDATA[Oracle 7.3]]></category>
		<category><![CDATA[ORACLE恢复]]></category>
		<category><![CDATA[数据库恢复]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=5378</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2014/06/%e6%95%b0%e6%8d%ae%e5%ba%93%e6%81%a2%e5%a4%8d%e5%8e%86%e5%8f%b2%e5%86%8d%e6%ac%a1%e5%88%b7%e6%96%b0%e5%88%b0oracle-7-3-2%e7%89%88%e6%9c%ac-redo%e5%bc%82%e5%b8%b8%e6%81%a2%e5%a4%8d.html">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div id="xifenfeicopyright">
<p>联系：<a href="https://www.xifenfei.com/about_xifenfei" target="_blank">手机/微信(+86 17813235971)   QQ(107644445)</a><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&#038;uin=107644445&#038;site=qq&#038;menu=yes"><img src="https://www.xifenfei.com/wp-content/themes/img/site_qq.jpg" alt="QQ咨询惜分飞" title="QQ咨询惜分飞"/></a></p>
<p>标题：<a href="https://www.xifenfei.com/2014/06/%e6%95%b0%e6%8d%ae%e5%ba%93%e6%81%a2%e5%a4%8d%e5%8e%86%e5%8f%b2%e5%86%8d%e6%ac%a1%e5%88%b7%e6%96%b0%e5%88%b0oracle-7-3-2%e7%89%88%e6%9c%ac-redo%e5%bc%82%e5%b8%b8%e6%81%a2%e5%a4%8d.html" target="_blank">数据库恢复历史再次刷新到Oracle 7.3.2版本&#8212;redo异常恢复</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>有网友在QQ上找我,说Oracle 7.3的数据库,因为redo异常咨询我是否可以恢复<br />
<img src="//www.xifenfei.com/wp-content/uploads/2014/06/qq1.jpg" alt="qq咨询" width="390" height="74" class="alignleft size-full wp-image-5379" /></p>
<hr />
检查数据库得到以下信息</p>
<pre class="brush: sql; title: ; notranslate">
SVRMGR&gt; select * from v$version;
BANNER
----------------------------------------------------------------
Oracle7 Workgroup Server Release 7.3.2.2.1 - Production Release
PL/SQL Release 2.3.2.2.0 - Production
CORE Version 3.5.2.0.0 - Production
TNS for 32-bit Windows: Version 2.3.2.1.0 - Production
NLSRTL Version 3.2.2.0.0 - Production
已选择 5 行
</pre>
<p>数据文件信息<br />
<img src="//www.xifenfei.com/wp-content/uploads/2014/06/qq.png" alt="qq" width="322" height="485" class="alignleft size-full wp-image-5381" /><br />
<img src="//www.xifenfei.com/wp-content/uploads/2014/06/qq2.png" alt="qq2" width="533" height="340" class="alignleft size-full wp-image-5382" /></p>
<hr />
redo信息<br />
<img src="//www.xifenfei.com/wp-content/uploads/2014/06/qq3.png" alt="qq3" width="478" height="88" class="alignleft size-full wp-image-5380" /></p>
<hr />
跳过redo进行恢复,在resetlogs过程中报rbs表空间坏块,然后通过dul工具获得回滚段名称,然后使用隐含参数屏蔽掉</p>
<pre class="brush: bash; title: ; notranslate">
License high water mark = 2
Starting up ORACLE RDBMS Version: 7.3.2.2.1.
System parameters with non-default values:
  processes                = 800
  shared_pool_size         = 540000000
  control_files            = D:\ORANT\DATABASE\ctl1orcl.ora, D:\ORANT\DATABASE\ctl2orcl.ora
  compatible               = 7.3.0.0.0
  log_buffer               = 327680
  log_checkpoint_interval  = 1000000
  db_files                 = 40
  db_file_simultaneous_writes= 1280
  max_rollback_segments    = 12800
  _offline_rollback_segments= RB13, RB14, RB15, RB16, RB20
  _corrupted_rollback_segments= RB13, RB14, RB15, RB16, RB20
  sequence_cache_entries   = 100
  sequence_cache_hash_buckets= 100
  remote_login_passwordfile= SHARED
  mts_servers              = 0
  mts_max_servers          = 0
  mts_max_dispatchers      = 0
  audit_trail              = NONE
  sort_area_retained_size  = 65536
  sort_direct_writes       = AUTO
  db_name                  = oracle
  open_cursors             = 800
  text_enable              = TRUE
  snapshot_refresh_processes= 1
  background_dump_dest     = %RDBMS73%\trace
  user_dump_dest           = %RDBMS73%\trace

Mon Jun 16 16:46:57 2014

PMON started
Mon Jun 16 16:46:57 2014

DBWR started
Mon Jun 16 16:46:57 2014

LGWR started
Mon Jun 16 16:46:57 2014

RECO started
Mon Jun 16 16:46:57 2014

SNP0 started
Mon Jun 16 16:46:57 2014
alter database  mount exclusive
Mon Jun 16 16:46:58 2014
Successful mount of redo thread 1.
Mon Jun 16 16:46:58 2014
Completed: alter database  mount exclusive
Mon Jun 16 16:48:15 2014
alter database open
Mon Jun 16 16:48:16 2014
Beginning crash recovery of 1 threads
Crash recovery completed successfully
Mon Jun 16 16:48:17 2014
Thread 1 advanced to log sequence 9
  Current log# 1 seq# 9 mem# 0: D:\ORANT\DATABASE\LOG2ORCL.ORA
Thread 1 opened at log sequence 9
  Current log# 1 seq# 9 mem# 0: D:\ORANT\DATABASE\LOG2ORCL.ORA
Successful open of redo thread 1.
Mon Jun 16 16:48:18 2014
SMON: enabling cache recovery
Mon Jun 16 16:48:19 2014
Completed: alter database open
Mon Jun 16 16:48:20 2014
SMON: enabling tx recovery
SMON: about to recover undo segment 14
SMON: mark undo segment 14 as needs recovery
SMON: about to recover undo segment 15
SMON: mark undo segment 15 as needs recovery
SMON: about to recover undo segment 16
SMON: mark undo segment 16 as needs recovery
SMON: about to recover undo segment 17
SMON: mark undo segment 17 as needs recovery
SMON: about to recover undo segment 18
SMON: mark undo segment 18 as needs recovery
Mon Jun 16 16:48:20 2014
Errors in file D:\ORANT\RDBMS73\trace\orclSMON.TRC:
ORA-00600: internal error code, arguments: [4306], [21], [2], [], [], [], [], []
</pre>
<p>数据库在启动过程中出现ORA-00600[4306]，导致smon异常。该错误是因为在数据库open过程中smon会清理临时段从而出现该错误,通过设置event跳过，数据库算整体打开，不过在恢复过程中还遇到了</p>
<pre class="brush: bash; title: ; notranslate">
Mon Jun 16 17:53:10 2014
Errors in file D:\ORANT\RDBMS73\trace\orclDBWR.TRC:
ORA-00600: internal error code, arguments: [3600], [3], [14], [], [], [], [], []


Mon Jun 16 18:05:12 2014
Errors in file D:\ORANT\RDBMS73\trace\ORA06880.TRC:
ORA-01578: ORACLE数据块有错(文件号12, 块号46644)
ORA-01110: 文件'12'没有联机
ORA-00600: 内部错误码, 变元: [4194], [18], [5], [], [], []
ORA-00600: 内部错误码, 变元: [4194], [18], [5], [], [], []
</pre>
<p>ORA-00600[3600]是因为在offline 回滚段所在表空间锁出现的问题<br />
ORA-00600[4194]是因为回滚段所在的表空间数据文件出现坏块所导致</p>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2014/08/oracle-8-1-7-%e6%95%b0%e6%8d%ae%e5%ba%93ora-600-4000%e6%95%85%e9%9a%9c%e6%81%a2%e5%a4%8d.html" rel="bookmark" class="crp_title">ORACLE 8.1.7 数据库ORA-600 4000故障恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/08/undo%e5%bc%82%e5%b8%b8%e5%a4%84%e7%90%86%e6%ad%a5%e9%aa%a4%ef%bc%889i%ef%bc%89.html" rel="bookmark" class="crp_title">undo异常处理步骤（9i）</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2014/08/%e8%ae%b0%e5%bd%95%e4%b8%80%e6%ac%a1system%e5%9d%8f%e5%9d%97%e6%95%b0%e6%8d%ae%e5%ba%93%e6%81%a2%e5%a4%8d.html" rel="bookmark" class="crp_title">记录一次system表空间坏块(ORA-01578)数据库恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2014/07/817%e6%95%b0%e6%8d%ae%e5%ba%93ora-600-4194%e6%95%85%e9%9a%9c%e6%81%a2%e5%a4%8d.html" rel="bookmark" class="crp_title">ORACLE 8.1.7 数据库ORA-600 4194故障恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2014/10/%e9%80%9a%e8%bf%87%e5%a4%9a%e6%ac%a1%e8%a7%84%e9%81%bf%e7%b1%bb%e4%bc%bcora-01248-file-n-was-created-in-the-future-of-incomplete-recovery%e9%94%99%e8%af%af.html" rel="bookmark" class="crp_title">通过多次resetlogs规避类似ORA-01248: file N was created in the future of incomplete recovery错误</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2014/10/ora-27069-skgfdisp-%e5%b0%9d%e8%af%95%e5%9c%a8%e6%96%87%e4%bb%b6%e8%8c%83%e5%9b%b4%e5%a4%96%e6%89%a7%e8%a1%8c-io.html" rel="bookmark" class="crp_title">ORA-27069: skgfdisp: 尝试在文件范围外执行 I/O</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2014/03/ora-00600kcrf_resilver_log_1%e5%bc%82%e5%b8%b8%e6%81%a2%e5%a4%8d.html" rel="bookmark" class="crp_title">ORA-00600[kcrf_resilver_log_1]异常恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/05/ora-00600kcratr1_lostwrtora-006003020%e9%94%99%e8%af%af%e6%81%a2%e5%a4%8d.html" rel="bookmark" class="crp_title">ORA-00600[kcratr1_lostwrt]/ORA-00600[3020]错误恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2014/07/%e6%9f%90%e9%9b%86%e5%9b%a2ebs%e6%95%b0%e6%8d%ae%e5%ba%93redo-undo%e4%b8%a2%e5%a4%b1%e5%af%bc%e8%87%b4%e6%82%b2%e5%89%a7.html" rel="bookmark" class="crp_title">某集团ebs数据库redo undo丢失导致悲剧</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2014/06/oracle%e5%ae%89%e5%85%a8%e8%ad%a6%e7%a4%ba%e5%bd%95%e5%8a%a0%e9%94%99%e8%a3%b8%e8%ae%be%e5%a4%87%e5%af%bc%e8%87%b4redo%e5%bc%82%e5%b8%b8.html" rel="bookmark" class="crp_title">Oracle安全警示录:加错裸设备导致redo异常</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2014/07/%e8%ae%b0%e5%bd%95%e4%b8%80%e6%ac%a1ora-600-3004-%e6%81%a2%e5%a4%8d%e8%bf%87%e7%a8%8b%e5%92%8c%e5%a4%84%e7%90%86%e6%80%9d%e8%b7%af.html" rel="bookmark" class="crp_title">记录一次ORA-600 3004 恢复过程和处理思路</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2024/03/ora-600-ktsiseginfo1.html" rel="bookmark" class="crp_title">ORA-600 ktsiseginfo1故障</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2014/06/%e6%95%b0%e6%8d%ae%e5%ba%93%e6%81%a2%e5%a4%8d%e5%8e%86%e5%8f%b2%e5%86%8d%e6%ac%a1%e5%88%b7%e6%96%b0%e5%88%b0oracle-7-3-2%e7%89%88%e6%9c%ac-redo%e5%bc%82%e5%b8%b8%e6%81%a2%e5%a4%8d.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>深入分析一次ORA-00314错误</title>
		<link>https://www.xifenfei.com/2014/05/%e6%b7%b1%e5%85%a5%e5%88%86%e6%9e%90%e4%b8%80%e6%ac%a1ora-00314%e9%94%99%e8%af%af.html</link>
		<comments>https://www.xifenfei.com/2014/05/%e6%b7%b1%e5%85%a5%e5%88%86%e6%9e%90%e4%b8%80%e6%ac%a1ora-00314%e9%94%99%e8%af%af.html#comments</comments>
		<pubDate>Sat, 17 May 2014 12:44:33 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[Oracle备份恢复]]></category>
		<category><![CDATA[ORA-00314]]></category>
		<category><![CDATA[redo异常]]></category>
		<category><![CDATA[数据库恢复]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=5323</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2014/05/%e6%b7%b1%e5%85%a5%e5%88%86%e6%9e%90%e4%b8%80%e6%ac%a1ora-00314%e9%94%99%e8%af%af.html">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div id="xifenfeicopyright">
<p>联系：<a href="https://www.xifenfei.com/about_xifenfei" target="_blank">手机/微信(+86 17813235971)   QQ(107644445)</a><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&#038;uin=107644445&#038;site=qq&#038;menu=yes"><img src="https://www.xifenfei.com/wp-content/themes/img/site_qq.jpg" alt="QQ咨询惜分飞" title="QQ咨询惜分飞"/></a></p>
<p>标题：<a href="https://www.xifenfei.com/2014/05/%e6%b7%b1%e5%85%a5%e5%88%86%e6%9e%90%e4%b8%80%e6%ac%a1ora-00314%e9%94%99%e8%af%af.html" target="_blank">深入分析一次ORA-00314错误</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>运行在win平台上的oracle 10G数据库,因为主机蓝屏,使用pe拷贝出来相关数据库文件,redo文件,控制文件,在恢复数据库过中遇到ORA-00314错误,而无法继续下去<br />
<br />
<strong>恢复报错</strong></p>
<pre class="brush: sql; title: ; notranslate">SQL&gt; recover database
ORA-00283: 恢复会话因错误而取消
ORA-00314: 日志 3 (用于线程 1) 要求的序号 1366 与 1363 不匹配
ORA-00312: 联机日志 3 线程 1:
'DC:\ORADATA\INTERLIB\REDO03.LOG'

00314, 00000, &quot;log %s of thread %s, expected sequence# %s doesn't match %s&quot;
// *Cause:  The online log is corrupted or is an old version.
// *Action: Find and install correct version of log or reset logs.
</pre>
<p>这里提示可以大概看出来,数据库进行恢复的时候,需要sequence 为1366的日志,但是与现在的1363不匹配。通过上面的解释我们很可能知道是redo文件异常或者弄错了redo文件<br />
<br />
<strong>分析<a href="//www.xifenfei.com/5056.html" title="数据库恢复检查脚本(Oracle Database Recovery Check)" target="_blank">Oracle Database Recovery Check</a>结果</strong><br />
控制文件scn相关信息,从这里可以看到数据库的控制文件scn为47714860,checkpoint scn为47711411<br />
<img src="//www.xifenfei.com/wp-content/uploads/2014/05/r1.jpg" alt="r1" width="1239" height="109" class="alignleft size-full wp-image-5327" /><br />
控制文件中关于数据库文件是scn为47711411,而且stop_scn为null<br />
<img src="//www.xifenfei.com/wp-content/uploads/2014/05/r2.jpg" alt="r2" width="1205" height="129" class="alignleft size-full wp-image-5326" /><br />
数据文件头scn是47711411,而且fuzzy为yes<br />
<img src="//www.xifenfei.com/wp-content/uploads/2014/05/r3.jpg" alt="r3" width="1210" height="135" class="alignleft size-full wp-image-5325" /><br />
redo的相关信息,这里我们可以看出当前redo的sequence为1366,first_scn为47711411,redo的写入顺序是redo01->redo02->redo03->redo01<br />
<img src="//www.xifenfei.com/wp-content/uploads/2014/05/r4.jpg" alt="r4" width="1202" height="90" class="alignleft size-full wp-image-5324" /><br />
通过这里整体分析,我们可以知道,数据库为非正常关闭,恢复应该从redo03(sequence 1366)开始进行恢复,但是为什么出现ORA-00314呢？通过dump redo header继续分析<br />
<br />
<strong>dump redo header 分析</strong><br />
这个里面我们可以看到redo01的sequence 为16进制554等于10进制的1364,scn的范围为:0x000002d6e4ab-0x000002d7455b<br />
<img src="//www.xifenfei.com/wp-content/uploads/2014/05/redo1.jpg" alt="redo1" width="807" height="460" class="alignleft size-full wp-image-5330" /></p>
<hr />
这个里面我们可以看到redo02的sequence 为16进制555等于10进制的1365,scn的范围为:0x000002d7455b-0x000002d804b3<br />
<img src="//www.xifenfei.com/wp-content/uploads/2014/05/redo2.jpg" alt="redo2" width="767" height="439" class="alignleft size-full wp-image-5329" /></p>
<hr />
这个属于异常redo,注意第一个seq: 0&#215;00000556等于十进制的1366(也就是表示该redo的sequence为1366),&#8221;Seq# 0000001363,SCN 0x000002d5e1c6-0x000002d6e4ab&#8221;表示在redo的文件头有部分信息记录的为sequence为1633,另外这里表示该文件最大scn为0x000002d6e4ab,和redo01的最小scn(0x000002d6e4ab-0x000002d7455b)/redo01的&#8221;Prev scn: 0&#215;0000.02d5e1c6&#8243;与现在看到的redo03中的最小scn匹配.<br />
<img src="//www.xifenfei.com/wp-content/uploads/2014/05/redo3.jpg" alt="redo3" width="836" height="469" class="alignleft size-full wp-image-5328" /></p>
<hr />
通过这里可以明白,在主机蓝屏的时候由于某种异常,导致redo03中的部分信息修改为了sequence为1366,但是部分信息依然保留它上次的sequence为1363的信息,导致数据库在重新恢复的时候无法正常成功.<br />
<br />
<strong>处理方法</strong><br />
该故障是由于current redo异常导致,根据经验(具体参考:<a href="//www.xifenfei.com/5135.html" title="ORACLE REDO各种异常恢复" target="_blank">ORACLE REDO各种异常恢复</a>),一般使用隐含参数屏蔽前滚,然后强制拉库,绝大部分情况能够拉库成功,如果人品不好可能需要使用其他隐含参数甚至bbed等方式处理</p>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2016/01/vmware-vsphere6-0-%e5%88%9d%e8%af%95.html" rel="bookmark" class="crp_title">VMware vSphere6.0 初试</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2013/04/oracle-7-3-4-%e6%88%aa%e5%9b%be%e6%ac%a3%e8%b5%8f.html" rel="bookmark" class="crp_title">ORACLE 7.3.4 截图欣赏</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/11/oracle-8i%e5%ae%89%e8%a3%85%e6%88%aa%e5%9b%be.html" rel="bookmark" class="crp_title">Oracle 8i安装过程截图</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2025/10/linux7-8-single-user.html" rel="bookmark" class="crp_title">redhat系列7/8进入单用户模式</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2018/11/file-system-corruption-oracle-recovery.html" rel="bookmark" class="crp_title">文件系统损坏导致数据文件异常恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/05/oracle-8-0-5-%e5%ae%89%e8%a3%85%e8%bf%87%e7%a8%8b%e6%88%aa%e5%9b%be.html" rel="bookmark" class="crp_title">Oracle 8.0.5 安装过程截图</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2015/11/windows-listener-log-4g.html" rel="bookmark" class="crp_title">windows平台listener.log超过4G导致监听异常</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2018/04/enq-hw-contention.html" rel="bookmark" class="crp_title">数据文件自扩展引起&#8212;enq: HW &#8211; contention</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2015/04/%e9%80%9a%e8%bf%87administration-assistant-for-windows%e9%85%8d%e7%bd%aewin%e6%9c%8d%e5%8a%a1%e5%92%8c%e5%ae%9e%e4%be%8b%e5%85%b3%e8%81%94%e6%80%a7.html" rel="bookmark" class="crp_title">通过Administration Assistant for Windows配置win服务和实例关联性</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2025/01/ar8mswin1256.html" rel="bookmark" class="crp_title">中文环境显示AR8MSWIN1256（阿拉伯语字符集）</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2025/12/sql-bak-0-lost-data.html" rel="bookmark" class="crp_title">模拟sql server故障备份完成恢复实现数据0丢失</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2026/01/dd-asm-recovery.html" rel="bookmark" class="crp_title">在生产环境错误执行dd命令破坏asm磁盘故障恢复</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2014/05/%e6%b7%b1%e5%85%a5%e5%88%86%e6%9e%90%e4%b8%80%e6%ac%a1ora-00314%e9%94%99%e8%af%af.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ORACLE DUL汇总</title>
		<link>https://www.xifenfei.com/2013/12/oracle-dul%e6%b1%87%e6%80%bb.html</link>
		<comments>https://www.xifenfei.com/2013/12/oracle-dul%e6%b1%87%e6%80%bb.html#comments</comments>
		<pubDate>Tue, 31 Dec 2013 10:24:19 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[专题索引]]></category>
		<category><![CDATA[dul]]></category>
		<category><![CDATA[Oracle 恢复]]></category>
		<category><![CDATA[ORACLE恢复]]></category>
		<category><![CDATA[ORACLE数据库恢复]]></category>
		<category><![CDATA[数据库恢复]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=5038</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2013/12/oracle-dul%e6%b1%87%e6%80%bb.html">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div id="xifenfeicopyright">
<p>联系：<a href="https://www.xifenfei.com/about_xifenfei" target="_blank">手机/微信(+86 17813235971)   QQ(107644445)</a><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&#038;uin=107644445&#038;site=qq&#038;menu=yes"><img src="https://www.xifenfei.com/wp-content/themes/img/site_qq.jpg" alt="QQ咨询惜分飞" title="QQ咨询惜分飞"/></a></p>
<p>标题：<a href="https://www.xifenfei.com/2013/12/oracle-dul%e6%b1%87%e6%80%bb.html" target="_blank">ORACLE DUL汇总</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>oracle数据库恢复三板斧,最大限度减少因为ORACLE不能open导致的数据损失<br />
<strong>第一板：HIDE PARAMETER AND EVENT<br />
第二板：BBED<br />
第三板：DUL</strong><br />
当我们使用第一和第二板斧头无法解决问题之时，我们就需要考虑使用ORACLE数据库恢复终极工具DUL,这里对于dul的相关测试进行总结,便于查询<br />
<a href="//www.xifenfei.com/4149.html" title="dul处理分区表" target="_blank">dul处理分区表</a><br />
<a href="//www.xifenfei.com/2018/06/oracle-dul-support-18c.html" title="Oracle dul支持18c" target="_blank">Oracle dul支持18c</a><br />
<a href="//www.xifenfei.com/?p=5082" title="关于dul有效期描述" target="_blank">关于dul有效期描述</a><br />
<a href="//www.xifenfei.com/4136.html" title="dul恢复drop表测试" target="_blank">dul恢复drop表测试</a><br />
<a href="//www.xifenfei.com/3883.html" title="dul抽取异常asm文件" target="_blank">dul抽取异常asm文件</a><br />
<a href="//www.xifenfei.com/2016/06/oracle-dul-11-released.html" title="oracle dul 11 正式发布" target="_blank">oracle dul 11 正式发布</a><br />
<a href="//www.xifenfei.com/3601.html" title="dul 10支持oracle 11g r2" target="_blank">dul 10支持oracle 11g r2</a><br />
<a href="//www.xifenfei.com/3388.html" title="使用dul恢复asm中数据" target="_blank">使用dul恢复asm中数据</a><br />
<a href="//www.xifenfei.com/4133.html" title="dul恢复truncate表测试" target="_blank">dul恢复truncate表测试</a><br />
<a href="//www.xifenfei.com/3377.html" title="使用 dul 挖数据文件初试" target="_blank">使用 dul 挖数据文件初试</a><br />
<a href="//www.xifenfei.com/3540.html" title="DUL挖ORACLE 8.0数据库" target="_blank">DUL挖ORACLE 8.0数据库</a><br />
<a href="//www.xifenfei.com/3868.html" title="dul实现对数据文件内容更新" target="_blank">dul实现对数据文件内容更新</a><br />
<a href="//www.xifenfei.com/?p=5102" title="DUL10直接支持ORACLE 8.0" target="_blank">DUL10直接支持ORACLE 8.0</a><br />
<a href="//www.xifenfei.com/2017/02/oracle-dul-support-12-2.html" title="Oracle dul支持Oracle 12.2(12c)" target="_blank">Oracle dul支持Oracle 12.2(12c)</a><br />
<a href="//www.xifenfei.com/2015/11/dul-support-oracle-7.html" title="最新版Oracle dul支持Oracle 7.2.3" target="_blank">最新版Oracle dul支持Oracle 7.2.3</a><br />
<a href="//www.xifenfei.com/3457.html" title="dul 10 export_mode=true功能增强" target="_blank">dul 10 export_mode=true功能增强</a><br />
<a href="//www.xifenfei.com/3742.html" title="dul实现exp dump文件转换sqlldr格式" target="_blank">dul实现exp dump文件转换sqlldr格式</a><br />
<a href="//www.xifenfei.com/4522.html" title="dul支持ORACLE 12C CDB数据库恢复" target="_blank">dul支持ORACLE 12C CDB数据库恢复</a><br />
<a href="//www.xifenfei.com/3818.html" title="dul实现expdp dump文件转换sqlldr格式" target="_blank">dul实现expdp dump文件转换sqlldr格式</a><br />
<a href="//www.xifenfei.com/5077.html" title="使用DUL挖数据文件恢复非数据外对象方法" target="_blank">使用DUL挖数据文件恢复非数据外对象方法</a><br />
<a href="//www.xifenfei.com/2016/09/dul-bootstrap-error-unload-table.html" title="dul无法加载bootstrap实现unload table/user恢复" target="_blank">dul无法加载bootstrap实现unload table/user恢复</a><br />
为推进国内DUL的发展，欢迎在DUL使用过程中的问题探讨.如果在数据库恢复中需要使用dul,或者你们使用dul无法解决问题,欢迎联系我们(<a href="//www.xifenfei.com/oracle_recover" title="专业Oracle数据库恢复技术支持" target="_blank">专业Oracle数据库恢复技术支持</a>)协助你解决问题</p>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/09/bbed-%e6%96%87%e7%ab%a0%e6%b1%87%e6%80%bb.html" rel="bookmark" class="crp_title">bbed 文章汇总</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2016/07/asm-list.html" rel="bookmark" class="crp_title">oracle asm系列文章汇总</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/09/ora-600%e5%92%8cora-7445%e9%94%99%e8%af%af%e7%9b%ae%e5%bd%95.html" rel="bookmark" class="crp_title">ORA-600和ORA-7445错误文章汇总</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2025/05/oracle-recovery-tools-202505.html" rel="bookmark" class="crp_title">Oracle Recovery Tools恢复案例总结&#8212;202505</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2021/03/rm-recovery-fragmentation-recovery.html" rel="bookmark" class="crp_title">rm -rf 删除数据文件恢复方法&#8212;文件系统反删除+oracle碎片重组</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2024/01/ora-600-16703-ora-702.html" rel="bookmark" class="crp_title">近期又遇到ORA-600 16703和ORA-702故障</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2024/03/ora-600-16703-202403.html" rel="bookmark" class="crp_title">最近遇到几起ORA-600 16703故障(tab$被清空),请引起重视</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2023/06/asm-add-vg.html" rel="bookmark" class="crp_title">asm磁盘加入vg恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2023/04/orarecovery-202304.html" rel="bookmark" class="crp_title">Oracle Recovery Tools更新&#8212;202304</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2018/10/restore-mis-operation-recovery.html" rel="bookmark" class="crp_title">restore database误操作恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2014/11/oracle-%e5%bc%82%e5%b8%b8%e6%81%a2%e5%a4%8d%e6%a1%88%e4%be%8b%e6%b1%87%e6%80%bb.html" rel="bookmark" class="crp_title">Oracle 异常恢复案例汇总</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2024/09/mysql-init-recovery.html" rel="bookmark" class="crp_title">应用连接错误,初始化mysql数据库恢复</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2013/12/oracle-dul%e6%b1%87%e6%80%bb.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
