<?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; oracle异常恢复</title>
	<atom:link href="https://www.xifenfei.com/tag/oracle%e5%bc%82%e5%b8%b8%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, 06 Dec 2026 04:31:12 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>Oracle断电故障处理</title>
		<link>https://www.xifenfei.com/2022/05/oracle-power-outage-recovery.html</link>
		<comments>https://www.xifenfei.com/2022/05/oracle-power-outage-recovery.html#comments</comments>
		<pubDate>Tue, 31 May 2022 03:52:02 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[Oracle备份恢复]]></category>
		<category><![CDATA[krsi_al_hdr_update.15]]></category>
		<category><![CDATA[ORA-00742]]></category>
		<category><![CDATA[ORA-600 2662]]></category>
		<category><![CDATA[ORA-600 4194]]></category>
		<category><![CDATA[oracle异常恢复]]></category>
		<category><![CDATA[oracle断电恢复]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=9734</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2022/05/oracle-power-outage-recovery.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/2022/05/oracle-power-outage-recovery.html" target="_blank">Oracle断电故障处理</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>异常断电导致数据库异常恢复文件报ORA-00283 ORA-00742 ORA-00312</p>
<pre class="brush: sql; title: ; notranslate"> 
D:\check_db&gt;sqlplus / as sysdba

SQL*Plus: Release 11.2.0.4.0 Production on 星期二 5月 31 00:38:42 2022

Copyright (c) 1982, 2013, Oracle.  All rights reserved.


连接到:
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&gt; recover datafile 1;
ORA-00283: 恢复会话因错误而取消
ORA-00742: 日志读取在线程 %d 序列 %d 块 %d 中检测到写入丢失情况
ORA-00312: 联机日志 3 线程 1:
'D:\APP\ADMINISTRATOR\FAST_RECOVERY_AREA\ORCL\ONLINELOG\O1_MF_3_HJ32KJD5_.LOG'
</pre>
<p>这个错误比较明显是由于异常断电引起的写丢失导致.而且这种故障在没有备份的情况下，没有什么好处理方法,只能屏蔽一致性强制拉库,尝试强制拉库报错如下</p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt; startup mount pfile='d:/pfile.txt'
ORACLE 例程已经启动。

Total System Global Area 2.0310E+10 bytes
Fixed Size                  2290000 bytes
Variable Size            3690991280 bytes
Database Buffers         1.6576E+10 bytes
Redo Buffers               40837120 bytes
数据库装载完毕。
SQL&gt; recover database until cancel;
ORA-00279: 更改 18755939194213 (在  生成) 对于线程 1 是必需的


指定日志: {&lt;RET&gt;=suggested | filename | AUTO | CANCEL}
D:\APP\ADMINISTRATOR\FAST_RECOVERY_AREA\ORCL\ONLINELOG\O1_MF_3_HJ32KJD5_.LOG
ORA-00600: internal error code, arguments: [3020], [2], [78824], [8467432], [],
[], [], [], [], [], [], []
ORA-10567: Redo is inconsistent with data block (file# 2, block# 78824, file
offset is 645726208 bytes)
ORA-10564: tablespace SYSAUX
ORA-01110: data file 2: 'D:\ORADATA\ORCL\SYSAUX01.DBF'
ORA-10561: block type 'TRANSACTION MANAGED INDEX BLOCK', data object# 80834


ORA-01112: 未启动介质恢复


SQL&gt; alter database open resetlogs;
alter database open resetlogs
*
第 1 行出现错误:
ORA-00600: 内部错误代码, 参数: [krsi_al_hdr_update.15], [4294967295], [], [],[], [], [], [], [], [], [], []
</pre>
<p>ORA-600 krsi_al_hdr_update.15错误,主要是由于redo异常导致无法resetlogs成功,具体参考：Alter Database Open Resetlogs returns error ORA-00600: [krsi_al_hdr_update.15], (Doc ID 2026541.1)描述,处理这个问题之后,再次resetlogs库，报ORA-600 2662错误</p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt; alter database open resetlogs;
alter database open resetlogs
*
第 1 行出现错误:
ORA-00603: ORACLE server session terminated by fatal error
ORA-00600: internal error code, arguments: [2662], [4366], [4112122046],
[4366], [4112228996], [12583040], [], [], [], [], [], []
ORA-00600: internal error code, arguments: [2662], [4366], [4112122045],
[4366], [4112228996], [12583040], [], [], [], [], [], []
ORA-01092: ORACLE instance terminated. Disconnection forced
ORA-00600: internal error code, arguments: [2662], [4366], [4112122040],
[4366], [4112228996], [12583040], [], [], [], [], [], []
进程 ID: 4644
会话 ID: 1701 序列号: 3
</pre>
<p>这个问题比较简单,通过修改scn即可绕过去,之后数据库open报ORA-600 4194等错误</p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt; alter database open ;
alter database open 
*
第 1 行出现错误:
ORA-00600: 内部错误代码, 参数: [4194], [
</pre>
<pre class="brush: bash; title: ; notranslate">SMON: enabling tx recovery
Database Characterset is ZHS16GBK
Errors in file D:\APP\ADMINISTRATOR\diag\rdbms\orcl\orcl\trace\orcl_smon_5112.trc  (incident=322982):
ORA-00600: internal error code, arguments: [4137], [10.33.3070116], [0], [0], [], [], [], [], [], [], [], []
Incident details in: D:\APP\ADMINISTRATOR\diag\rdbms\orcl\orcl\incident\incdir_322982\orcl_smon_5112_i322982.trc
Use ADRCI or Support Workbench to package the incident.
See Note 411.1 at My Oracle Support for error and packaging details.
ARC3: Archival started
ARC0: STARTING ARCH PROCESSES COMPLETE
replication_dependency_tracking turned off (no async multimaster replication found)
LOGSTDBY: Validating controlfile with logical metadata
LOGSTDBY: Validation complete
Errors in file D:\APP\ADMINISTRATOR\diag\rdbms\orcl\orcl\trace\orcl_ora_3340.trc  (incident=323030):
ORA-00600: 内部错误代码, 参数: [4194], [
Incident details in: D:\APP\ADMINISTRATOR\diag\rdbms\orcl\orcl\incident\incdir_323030\orcl_ora_3340_i323030.trc
Use ADRCI or Support Workbench to package the incident.
See Note 411.1 at My Oracle Support for error and packaging details.
Tue May 31 09:05:04 2022
Sweep [inc][322982]: completed
ORACLE Instance orcl (pid = 13) - Error 600 encountered while recovering transaction (10, 33).
Errors in file D:\APP\ADMINISTRATOR\diag\rdbms\orcl\orcl\trace\orcl_smon_5112.trc:
ORA-00600: internal error code, arguments: [4137], [10.33.3070116], [0], [0], [], [], [], [], [], [], [], []
Checker run found 1 new persistent data failures
Tue May 31 09:05:05 2022
Sweep [inc][323030]: completed
Sweep [inc2][322982]: completed
Tue May 31 09:05:14 2022
Errors in file D:\APP\ADMINISTRATOR\diag\rdbms\orcl\orcl\trace\orcl_smon_5112.trc  (incident=322983):
ORA-00600: internal error code, arguments: [4193], [10.33.3070116], [0], [], [], [], [], [], [], [], [], []
Incident details in: D:\APP\ADMINISTRATOR\diag\rdbms\orcl\orcl\incident\incdir_322983\orcl_smon_5112_i322983.trc
Use ADRCI or Support Workbench to package the incident.
See Note 411.1 at My Oracle Support for error and packaging details.
Tue May 31 09:05:14 2022
ORA-600 signalled during: alter database open...
Block recovery stopped at EOT rba 2.61.16
Block recovery completed at rba 2.61.16, scn 4366.4112429058
Block recovery from logseq 2, block 60 to scn 18755939643393
Recovery of Online Redo Log: Thread 1 Group 2 Seq 2 Reading mem 0
  Mem# 0: D:\APP\ADMINISTRATOR\FAST_RECOVERY_AREA\ORCL\ONLINELOG\O1_MF_2_K9BSVC11_.LOG
Block recovery completed at rba 2.61.16, scn 4366.4112429058
Dumping diagnostic data in directory=[cdmp_2022053],requested by(instance=1,osid=5112(SMON)),summary=[incident=322983].
Errors in file D:\APP\ADMINISTRATOR\diag\rdbms\orcl\orcl\trace\orcl_smon_5112.trc:
ORA-01595: error freeing extent (3) of rollback segment (1))
ORA-00600: internal error code, arguments: [4193], [10.33.3070116], [3], [], [], [], [], [], [], [], [], []
</pre>
<p>对异常undo进行处理,数据库正常open成功</p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt; shutdown immediate;
ORA-00600: 内部错误代码, 参数: [4193], [


SQL&gt; shutdown abort;
ORACLE 例程已经关闭。
SQL&gt; startup mount
ORACLE 例程已经启动。

Total System Global Area 2.0310E+10 bytes
Fixed Size                  2290000 bytes
Variable Size            3690991280 bytes
Database Buffers         1.6576E+10 bytes
Redo Buffers               40837120 bytes
数据库装载完毕。
SQL&gt; alter database open;

数据库已更改。
</pre>
<p>hcheck检测有一些字典不一致,建议客户逻辑导出,然后导入到新库中</p>
<pre class="brush: bash; title: ; notranslate">
HCheck Version 07MAY18 on 31-5月 -2022 09:12:22
----------------------------------------------
Catalog Version 11.2.0.4.0 (1102000400)
db_name: ORCL

                                   Catalog       Fixed
Procedure Name                     Version    Vs Release    Timestamp      Resul
t
------------------------------ ... ---------- -- ---------- -------------- -----
-
.- LobNotInObj                 ... 1102000400 &lt;=  *All Rel* 05/31 09:12:22 PASS
.- MissingOIDOnObjCol          ... 1102000400 &lt;=  *All Rel* 05/31 09:12:22 PASS
.- SourceNotInObj              ... 1102000400 &lt;=  *All Rel* 05/31 09:12:22 PASS
.- OversizedFiles              ... 1102000400 &lt;=  *All Rel* 05/31 09:12:22 PASS
.- PoorDefaultStorage          ... 1102000400 &lt;=  *All Rel* 05/31 09:12:22 PASS
.- PoorStorage                 ... 1102000400 &lt;=  *All Rel* 05/31 09:12:22 PASS
.- TabPartCountMismatch        ... 1102000400 &lt;=  *All Rel* 05/31 09:12:22 PASS
.- OrphanedTabComPart          ... 1102000400 &lt;=  *All Rel* 05/31 09:12:22 PASS
.- MissingSum$                 ... 1102000400 &lt;=  *All Rel* 05/31 09:12:22 PASS
.- MissingDir$                 ... 1102000400 &lt;=  *All Rel* 05/31 09:12:22 PASS
.- DuplicateDataobj            ... 1102000400 &lt;=  *All Rel* 05/31 09:12:22 PASS
.- ObjSynMissing               ... 1102000400 &lt;=  *All Rel* 05/31 09:12:23 PASS
.- ObjSeqMissing               ... 1102000400 &lt;=  *All Rel* 05/31 09:12:23 PASS
.- OrphanedUndo                ... 1102000400 &lt;=  *All Rel* 05/31 09:12:23 PASS
.- OrphanedIndex               ... 1102000400 &lt;=  *All Rel* 05/31 09:12:23 PASS
.- OrphanedIndexPartition      ... 1102000400 &lt;=  *All Rel* 05/31 09:12:23 PASS
.- OrphanedIndexSubPartition   ... 1102000400 &lt;=  *All Rel* 05/31 09:12:23 PASS
.- OrphanedTable               ... 1102000400 &lt;=  *All Rel* 05/31 09:12:23 PASS
.- OrphanedTablePartition      ... 1102000400 &lt;=  *All Rel* 05/31 09:12:23 PASS
.- OrphanedTableSubPartition   ... 1102000400 &lt;=  *All Rel* 05/31 09:12:23 PASS
.- MissingPartCol              ... 1102000400 &lt;=  *All Rel* 05/31 09:12:23 PASS
.- OrphanedSeg$                ... 1102000400 &lt;=  *All Rel* 05/31 09:12:23 PASS
.- OrphanedIndPartObj#         ... 1102000400 &lt;=  *All Rel* 05/31 09:12:23 FAIL

HCKE-0024: Orphaned Index Partition Obj# (no OBJ$) (Doc ID 1360935.1)
ORPHAN INDPART$: OBJ#=149167 BO#=6378 - no OBJ$ row
ORPHAN INDPART$: OBJ#=149168 BO#=6378 - no OBJ$ row

.- DuplicateBlockUse           ... 1102000400 &lt;=  *All Rel* 05/31 09:12:23 PASS
.- FetUet                      ... 1102000400 &lt;=  *All Rel* 05/31 09:12:23 PASS
.- Uet0Check                   ... 1102000400 &lt;=  *All Rel* 05/31 09:12:23 PASS
.- SeglessUET                  ... 1102000400 &lt;=  *All Rel* 05/31 09:12:23 PASS
.- BadInd$                     ... 1102000400 &lt;=  *All Rel* 05/31 09:12:23 FAIL

HCKE-0030: OBJ$ INDEX entry has no IND$ or INDPART$/INDSUBPART$ entry (Doc ID 13
60528.1)
OBJ$ INDEX PARTITION has no INDPART$ entry: Obj#=148278 SYS Name=WRH$_FILESTATXS
_PK PARTITION=WRH$_FILEST_1572571104_16462
OBJ$ INDEX PARTITION has no INDPART$ entry: Obj#=148920 SYS Name=WRH$_FILESTATXS
_PK PARTITION=WRH$_FILEST_1572571104_16678

.- BadTab$                     ... 1102000400 &lt;=  *All Rel* 05/31 09:12:23 PASS
.- BadIcolDepCnt               ... 1102000400 &lt;=  *All Rel* 05/31 09:12:23 PASS
.- ObjIndDobj                  ... 1102000400 &lt;=  *All Rel* 05/31 09:12:23 PASS
.- TrgAfterUpgrade             ... 1102000400 &lt;=  *All Rel* 05/31 09:12:23 PASS
.- ObjType0                    ... 1102000400 &lt;=  *All Rel* 05/31 09:12:23 PASS
.- BadOwner                    ... 1102000400 &lt;=  *All Rel* 05/31 09:12:23 PASS
.- StmtAuditOnCommit           ... 1102000400 &lt;=  *All Rel* 05/31 09:12:23 PASS
.- BadPublicObjects            ... 1102000400 &lt;=  *All Rel* 05/31 09:12:23 PASS
.- BadSegFreelist              ... 1102000400 &lt;=  *All Rel* 05/31 09:12:23 PASS
.- BadDepends                  ... 1102000400 &lt;=  *All Rel* 05/31 09:12:23 WARN

HCKW-0016: Dependency$ p_timestamp mismatch for VALID objects (Doc ID 1361045.1)

[E] - P_OBJ#=6376 D_OBJ#=6765

.- CheckDual                   ... 1102000400 &lt;=  *All Rel* 05/31 09:12:23 PASS
.- ObjectNames                 ... 1102000400 &lt;=  *All Rel* 05/31 09:12:23 PASS
.- BadCboHiLo                  ... 1102000400 &lt;=  *All Rel* 05/31 09:12:24 PASS
.- ChkIotTs                    ... 1102000400 &lt;=  *All Rel* 05/31 09:12:24 PASS
.- NoSegmentIndex              ... 1102000400 &lt;=  *All Rel* 05/31 09:12:24 PASS
.- BadNextObject               ... 1102000400 &lt;=  *All Rel* 05/31 09:12:24 PASS
.- DroppedROTS                 ... 1102000400 &lt;=  *All Rel* 05/31 09:12:24 PASS
.- FilBlkZero                  ... 1102000400 &lt;=  *All Rel* 05/31 09:12:24 PASS
.- DbmsSchemaCopy              ... 1102000400 &lt;=  *All Rel* 05/31 09:12:24 PASS
.- OrphanedObjError            ... 1102000400 &gt;  1102000000 05/31 09:12:24 PASS
.- ObjNotLob                   ... 1102000400 &lt;=  *All Rel* 05/31 09:12:24 PASS
.- MaxControlfSeq              ... 1102000400 &lt;=  *All Rel* 05/31 09:12:24 PASS
.- SegNotInDeferredStg         ... 1102000400 &gt;  1102000000 05/31 09:12:24 PASS
.- SystemNotRfile1             ... 1102000400 &gt;   902000000 05/31 09:12:24 PASS
.- DictOwnNonDefaultSYSTEM     ... 1102000400 &lt;=  *All Rel* 05/31 09:12:24 PASS
.- OrphanTrigger               ... 1102000400 &lt;=  *All Rel* 05/31 09:12:24 PASS
.- ObjNotTrigger               ... 1102000400 &lt;=  *All Rel* 05/31 09:12:24 PASS
---------------------------------------
31-5月 -2022 09:12:24  Elapsed: 2 secs
---------------------------------------
Found 4 potential problem(s) and 1 warning(s)
Contact Oracle Support with the output and trace file
to check if the above needs attention or not

PL/SQL 过程已成功完成。
</pre>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2022/10/ora-00316-ora-00312.html" rel="bookmark" class="crp_title">ORA-00316  ORA-00312故障处理</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2025/10/ora-600-2662-202510.html" rel="bookmark" class="crp_title">ORA-600 2662错误处理-202510</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2026/10/oracle-power-off-ora-600-3005-troubleshooting.html" rel="bookmark" class="crp_title">断电引起ORA-600 3005故障处理</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2021/02/ora-01114-ora-27070-ora-600-2662.html" rel="bookmark" class="crp_title">硬件故障导致ORA-600 2662错误处理</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2022/07/ora-00333-ora-01595.html" rel="bookmark" class="crp_title">ORA-00333  ORA-01595 恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2022/04/ora-600-ktbsdp2.html" rel="bookmark" class="crp_title">ORA-600 ktbsdp2 处理</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2023/12/recovery-ora-01555.html" rel="bookmark" class="crp_title">resetlogs失败故障恢复-ORA-01555</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2022/11/ora-600-3417-ora-600-3005.html" rel="bookmark" class="crp_title">ORA-600 3417和ORA-600 3005故障处理</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2024/08/ora-600-krhpfh_03-1210.html" rel="bookmark" class="crp_title">ORA-600 krhpfh_03-1210故障处理</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2023/09/ora-07445-kdxlin.html" rel="bookmark" class="crp_title">ORA-07445: exception encountered: core dump [kdxlin()+4088]处理</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2023/12/ora-600-3020-ora-600-2662.html" rel="bookmark" class="crp_title">ORA-600 3020/ORA-600 2662故障</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2022/10/patch-scn-ora-600-2662.html" rel="bookmark" class="crp_title">Patch SCN工具快速解决ORA-600 2662问题</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2022/05/oracle-power-outage-recovery.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ORA-600 kccpb_sanity_check_2故障恢复</title>
		<link>https://www.xifenfei.com/2015/07/ora-600-kccpb_sanity_check_2%e6%95%85%e9%9a%9c%e6%81%a2%e5%a4%8d.html</link>
		<comments>https://www.xifenfei.com/2015/07/ora-600-kccpb_sanity_check_2%e6%95%85%e9%9a%9c%e6%81%a2%e5%a4%8d.html#comments</comments>
		<pubDate>Wed, 29 Jul 2015 14:28:33 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[ORA-xxxxx]]></category>
		<category><![CDATA[Oracle备份恢复]]></category>
		<category><![CDATA[kccpb_sanity_check_2]]></category>
		<category><![CDATA[kccsga_update_ckpt_4]]></category>
		<category><![CDATA[ORA-600 kccpb_sanity_check_2]]></category>
		<category><![CDATA[ORA-600 kccsga_update_ckpt_4]]></category>
		<category><![CDATA[oracle异常恢复]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=6001</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2015/07/ora-600-kccpb_sanity_check_2%e6%95%85%e9%9a%9c%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/2015/07/ora-600-kccpb_sanity_check_2%e6%95%85%e9%9a%9c%e6%81%a2%e5%a4%8d.html" target="_blank">ORA-600 kccpb_sanity_check_2故障恢复</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>今天是有人在淘宝旺旺上找我，需要oracle数据库恢复支持<br />
<img src="//www.xifenfei.com/wp-content/uploads/2015/07/wangwang.png" alt="wangwang" width="377" height="204" class="alignleft size-full wp-image-6002" /><br />
<hr />
<strong>远程登录上去一看发现数据库mount的时候报ORA-600[kccpb_sanity_check_2]错误</strong></p>
<pre class="brush: sql; title: ; notranslate">
C:\Documents and Settings\Administrator&gt;sqlplus / as sysdba

SQL*Plus: Release 10.2.0.3.0 - Production on Wed Jul 29 16:23:18 2015

Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.


Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL&gt; alter database mount;
alter database mount
*
ERROR at line 1:
ORA-00600: internal error code, arguments: [kccpb_sanity_check_2], [14169],
[14160], [0x0], [], [], [], []
</pre>
<p><strong>尝试重建控制文件</strong></p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt; shutdown immediate;
ORA-01507: database not mounted


ORACLE instance shut down.
SQL&gt; startup pfile='D:\database\m104\pfile\init.ora' nomount
ORACLE instance started.

Total System Global Area  444596224 bytes
Fixed Size                  1291072 bytes
Variable Size             155192512 bytes
Database Buffers          281018368 bytes
Redo Buffers                7094272 bytes

SQL&gt; SHOW PARAMETER CONT;

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
control_file_record_keep_time        integer     7
control_files                        string      D:\DATABASE\M104\CTRL\CONTROL0
                                                 2.CTL
global_context_pool_size             string
SQL&gt; ALTER DATABASE MOUNT;
ALTER DATABASE MOUNT
*
ERROR at line 1:
ORA-00600: internal error code, arguments: [kccpb_sanity_check_2], [14169],
[14160], [0x0], [], [], [], []


SQL&gt;
SQL&gt; CREATE CONTROLFILE REUSE DATABASE &quot;m104_db&quot; NORESETLOGS  FORCE LOGGING NOAR
CHIVELOG
  2      MAXLOGFILES 16
  3      MAXLOGMEMBERS 3
  4      MAXDATAFILES 100
  5      MAXINSTANCES 8
  6      MAXLOGHISTORY 2921
  7  LOGFILE
  8    GROUP 1 'D:\database\m104\log\redo01.log'  SIZE 51200K,
  9    GROUP 2 'D:\database\m104\log\redo02.log'  SIZE 51200K,
 10    GROUP 3 'D:\database\m104\log\redo03.log'  SIZE 51200K
 11  DATAFILE
 12    'd:\database\m104\data\system01.dbf',
 13    'd:\database\m104\data\sysaux01.dbf',
 14    'd:\database\m104\data\USERS01.DBF',
 15    'd:\database\m104\data\UNDOTBS01.DBF',
 16    'd:\database\m104\data\INDX01.DBF'
 17  CHARACTER SET WE8ISO8859P1
 18  ;
CREATE CONTROLFILE REUSE DATABASE &quot;m104_db&quot; NORESETLOGS  FORCE LOGGING NOARCHIVE
LOG
*
ERROR at line 1:
ORA-01503: CREATE CONTROLFILE failed
ORA-00600: internal error code, arguments: [kccsga_update_ckpt_4], [1], [8],
[], [], [], [], []

SQL&gt;
SQL&gt; CREATE CONTROLFILE REUSE DATABASE &quot;m104_db&quot; RESETLOGS  FORCE LOGGING NOARCH
IVELOG
  2      MAXLOGFILES 16
  3      MAXLOGMEMBERS 3
  4      MAXDATAFILES 100
  5      MAXINSTANCES 8
  6      MAXLOGHISTORY 2921
  7  LOGFILE
  8    GROUP 1 'D:\database\m104\log\redo01.log'  SIZE 51200K,
  9    GROUP 2 'D:\database\m104\log\redo02.log'  SIZE 51200K,
 10    GROUP 3 'D:\database\m104\log\redo03.log'  SIZE 51200K
 11  DATAFILE
 12    'd:\database\m104\data\system01.dbf',
 13    'd:\database\m104\data\sysaux01.dbf',
 14    'd:\database\m104\data\USERS01.DBF',
 15    'd:\database\m104\data\UNDOTBS01.DBF',
 16    'd:\database\m104\data\INDX01.DBF'
 17  CHARACTER SET WE8ISO8859P1
 18  ;
CREATE CONTROLFILE REUSE DATABASE &quot;m104_db&quot; RESETLOGS  FORCE LOGGING NOARCHIVELO
G
*
ERROR at line 1:
ORA-01503: CREATE CONTROLFILE failed
ORA-00600: internal error code, arguments: [kccsga_update_ckpt_4], [1], [8],
[], [], [], [], []
</pre>
<p>无论是使用noresetlogs还是resetlogs，重建控制文件都报ORA-600[kccsga_update_ckpt_4]错误.比较奇怪，无解指定控制文件新名称重建试试看<br />
<br />
<strong>修改控制文件路径</strong></p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt; SHUTDOWN ABORT
ORACLE instance shut down.
SQL&gt; startup pfile='D:\database\m104\pfile\init.ora' nomount
ORACLE instance started.

Total System Global Area  444596224 bytes
Fixed Size                  1291072 bytes
Variable Size             155192512 bytes
Database Buffers          281018368 bytes
Redo Buffers                7094272 bytes
SQL&gt; SHOW PARAMETER CONT;

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
control_file_record_keep_time        integer     7
control_files                        string      D:\DATABASE\M104\CTRL\CONTROL0
                                                 4.CTL
global_context_pool_size             string
SQL&gt; CREATE CONTROLFILE REUSE DATABASE &quot;m104_db&quot; RESETLOGS  FORCE LOGGING NOARCH
IVELOG
  2      MAXLOGFILES 16
  3      MAXLOGMEMBERS 3
  4      MAXDATAFILES 100
  5      MAXINSTANCES 8
  6      MAXLOGHISTORY 2921
  7  LOGFILE
  8    GROUP 1 'D:\database\m104\log\redo01.log'  SIZE 51200K,
  9    GROUP 2 'D:\database\m104\log\redo02.log'  SIZE 51200K,
 10    GROUP 3 'D:\database\m104\log\redo03.log'  SIZE 51200K
 11  DATAFILE
 12    'd:\database\m104\data\system01.dbf',
 13    'd:\database\m104\data\sysaux01.dbf',
 14    'd:\database\m104\data\USERS01.DBF',
 15    'd:\database\m104\data\UNDOTBS01.DBF',
 16    'd:\database\m104\data\INDX01.DBF'
 17  CHARACTER SET WE8ISO8859P1
 18  ;

Control file created.
</pre>
<p>使用新的控制文件位置，这次终于数据库重建控制文件成功<br />
<strong>尝试指定redo进行恢复，数据库正常打开</strong></p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt; RECOVER DATABASE USING BACKUP CONTROLFILE UNTIL CANCEL;
ORA-00279: change 3643108240801 generated at 07/26/2015 20:15:22 needed for
thread 1
ORA-00289: suggestion :
D:\ORACLE\PRODUCT\10.2.0\DB_1\RDBMS\ARC00567_0866390669.001
ORA-00280: change 3643108240801 for thread 1 is in sequence #567


Specify log: {&lt;RET&gt;=suggested | filename | AUTO | CANCEL}
D:\database\m104\log\redo01.log
ORA-00310: archived log contains sequence 566; sequence 567 required
ORA-00334: archived log: 'D:\DATABASE\M104\LOG\REDO01.LOG'


ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: 'D:\DATABASE\M104\DATA\SYSTEM01.DBF'


SQL&gt; RECOVER DATABASE USING BACKUP CONTROLFILE UNTIL CANCEL;
ORA-00279: change 3643108240801 generated at 07/26/2015 20:15:22 needed for
thread 1
ORA-00289: suggestion :
D:\ORACLE\PRODUCT\10.2.0\DB_1\RDBMS\ARC00567_0866390669.001
ORA-00280: change 3643108240801 for thread 1 is in sequence #567


Specify log: {&lt;RET&gt;=suggested | filename | AUTO | CANCEL}
D:\database\m104\log\redo02.log
Log applied.
Media recovery complete.
SQL&gt; ALTER DATABASE OPEN RESETLOGS;

Database altered.
</pre>
<p>数据库恢复完成。整个数据库恢复比较简单，但是注意这里的ORA-600[kccsga_update_ckpt_4]通过修改控制文件路径规避，具体原因待查。<br />
<br />
<strong>知识点补充：ORA-600 [kccpb_sanity_check_2] [a] [b] {c}</strong></p>
<pre class="brush: bash; title: ; notranslate">
VERSIONS:
  Versions 10.2 to 11.2

DESCRIPTION:

  This internal error is raised when the sequence number (seq#) of the
  current block of the controlfile is greater than the seq# in the controlfile header.

  The header value should always be equal to, or greater than the value
  held in the control file block(s).

  This extra check was introduced in Oracle 10gR2 to detect lost writes
  or stale reads to the header.

ARGUMENTS:
  Arg [a] seq# in control block header.
  Arg [b] seq# in the control file header.
  Arg {c} 
</pre>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2014/09/%e5%88%9b%e5%bb%ba%e6%8e%a7%e5%88%b6%e6%96%87%e4%bb%b6%e5%87%ba%e7%8e%b0ora-01565-ora-27041-osd-04002.html" rel="bookmark" class="crp_title">创建控制文件出现ORA-01565 ORA-27041 OSD-04002</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2014/05/%e6%95%b0%e6%8d%ae%e5%ba%93%e6%81%a2%e5%a4%8d%e9%81%ad%e9%81%87ora-006003705.html" rel="bookmark" class="crp_title">数据库恢复遭遇ORA-00600[3705]</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2014/02/oracle-8-0-5-ora-01207%e6%95%85%e9%9a%9c%e6%81%a2%e5%a4%8d.html" rel="bookmark" class="crp_title">ORACLE 8.0.5 ORA-01207故障恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2023/03/oracle-recovery-after-power-failure.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/07/%e8%ae%b0%e5%bd%958-0-5%e6%95%b0%e6%8d%ae%e5%ba%93%e6%81%a2%e5%a4%8d%e8%bf%87%e7%a8%8b.html" rel="bookmark" class="crp_title">记录8.0.5数据库恢复过程</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2013/02/%e5%88%9b%e5%bb%ba%e6%8e%a7%e5%88%b6%e6%96%87%e4%bb%b6%e9%81%ad%e9%81%87ora-600-kccscf_1.html" rel="bookmark" class="crp_title">创建控制文件遭遇ORA-600 kccscf_1</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/06/ora-01207ora-00338%e6%81%a2%e5%a4%8d.html" rel="bookmark" class="crp_title">ORA-01207/ORA-00338恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/09/ora-00600kccpb_sanity_check_2.html" rel="bookmark" class="crp_title">ORA-00600[kccpb_sanity_check_2]</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/04/%e6%81%a2%e5%a4%8d%e5%a4%87%e4%bb%bd%e6%8e%a7%e5%88%b6%e6%96%87%e4%bb%b6%e9%81%bf%e5%85%8dresetlogs%e6%96%b9%e5%bc%8f%e6%89%93%e5%bc%80%e6%95%b0%e6%8d%ae%e5%ba%93.html" rel="bookmark" class="crp_title">恢复备份控制文件避免resetlogs方式打开数据库</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2022/11/ora-600-kccpb_sanity_check_2.html" rel="bookmark" class="crp_title">ora-600 kccpb_sanity_check_2故障处理</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/%e5%bd%93%e5%89%8d%e8%81%94%e6%9c%ba%e6%97%a5%e5%bf%97%e6%8d%9f%e5%9d%8f%e6%81%a2%e5%a4%8d.html" rel="bookmark" class="crp_title">当前联机日志损坏恢复</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2015/07/ora-600-kccpb_sanity_check_2%e6%95%85%e9%9a%9c%e6%81%a2%e5%a4%8d.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle异常恢复前备份保护现场建议&#8212;ASM环境</title>
		<link>https://www.xifenfei.com/2015/05/oracle%e5%bc%82%e5%b8%b8%e6%81%a2%e5%a4%8d%e5%89%8d%e5%a4%87%e4%bb%bd%e4%bf%9d%e6%8a%a4%e7%8e%b0%e5%9c%ba%e5%bb%ba%e8%ae%ae-asm%e7%8e%af%e5%a2%83.html</link>
		<comments>https://www.xifenfei.com/2015/05/oracle%e5%bc%82%e5%b8%b8%e6%81%a2%e5%a4%8d%e5%89%8d%e5%a4%87%e4%bb%bd%e4%bf%9d%e6%8a%a4%e7%8e%b0%e5%9c%ba%e5%bb%ba%e8%ae%ae-asm%e7%8e%af%e5%a2%83.html#comments</comments>
		<pubDate>Fri, 15 May 2015 03:13:59 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[Oracle备份恢复]]></category>
		<category><![CDATA[oracle异常恢复]]></category>
		<category><![CDATA[oracle现场保护]]></category>
		<category><![CDATA[异常恢复备份]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=5888</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2015/05/oracle%e5%bc%82%e5%b8%b8%e6%81%a2%e5%a4%8d%e5%89%8d%e5%a4%87%e4%bb%bd%e4%bf%9d%e6%8a%a4%e7%8e%b0%e5%9c%ba%e5%bb%ba%e8%ae%ae-asm%e7%8e%af%e5%a2%83.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/05/oracle%e5%bc%82%e5%b8%b8%e6%81%a2%e5%a4%8d%e5%89%8d%e5%a4%87%e4%bb%bd%e4%bf%9d%e6%8a%a4%e7%8e%b0%e5%9c%ba%e5%bb%ba%e8%ae%ae-asm%e7%8e%af%e5%a2%83.html" target="_blank">Oracle异常恢复前备份保护现场建议&#8212;ASM环境</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>在上一篇中写道了文件系统的库,在进行异常恢复前的备份方法（<a href="//www.xifenfei.com/5879.html" title="Oracle异常恢复前备份保护现场建议—FileSystem环境" target="_blank">Oracle异常恢复前备份保护现场建议—FileSystem环境</a>）,对于asm库,因为asm 里面的数据文件无法直接dd文件头,因此备份方式也有所改变.对于asm是mount,但是数据库不能打开,使用rman或者asm的cp命令全部备份数据文件也来不及或者空间不足,这样的情况下,你可以考虑使用rman或者cp命令备份控制文件和system表空间文件,cp命令备份redo,dd命令备份文件头,来完成asm情况下数据库异常恢复前备份<br />
<br />
<strong>控制文件备份</strong><br />
11.2及其以后版本使用asmcmd cp命令处理</p>
<pre class="brush: sql; title: ; notranslate">
select 'asmcmd cp '||name||' &amp;&amp;backup_dir/' from v$datafile where ts#=0
union all
select 'asmcmd cp '||name||' &amp;&amp;backup_dir/crontrofile_'||rownum||'.ctl' from v$controlfile
union all
select 'asmcmd cp '||member||' &amp;&amp;backup_dir/'||thread#||'_'||a.group#||'_'||sequence#||'_'||substr(member,
instr(member,'/',-1)+1)  FROM v$log a, v$logfile b WHERE a.group# = B.GROUP#;
</pre>
<p>其他版本使用rman命令处理</p>
<pre class="brush: bash; title: ; notranslate">
--rman备份控制文件(/tmp目录自己修改)
copy current controlfile to '/tmp/ctl.ctl';

--rman备份system表空间
select 'copy datafile '||file#||' to ''&amp;backup_dir/system_'||file#||'.dbf'';' 
from v$datafile where ts#=0;

--redo无法直接备份
</pre>
<p><strong>备份文件头</strong></p>
<pre class="brush: sql; title: ; notranslate">
[grid@xifenfei ~]$ ss

SQL*Plus: Release 11.2.0.4.0 Production on Fri May 1 04:15:18 2015

Copyright (c) 1982, 2013, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Automatic Storage Management option

SQL&gt; set lines 150
SQL&gt; select 'dd if='||c.PATH_KFDSK||' of=&amp;&amp;backup_path/'||a.GROUP_KFFXP||'_'||a.disk_kffxp||'_'||
  2  b.NUMBER_KFFIL||'.asm count=1 bs='|| d.AUSIZE_KFGRP||' skip='||a.au_kffxp backup_dd_cmd
  3   FROM x$kffxp a, X$KFFIL  b,X$KFDSK c,X$KFGRP d  WHERE
  4  a.GROUP_KFFXP=b.GROUP_KFFIL
  5  and a.NUMBER_KFFXP=b.NUMBER_KFFIL
  6  and b.FTYPE_KFFIL in(2,12)
  7  and b.NUMBER_KFFIL&gt;255
  8  and a.xnum_kffxp=0
  9  and a.GROUP_KFFXP=c.GRPNUM_KFDSK
 10  and a.disk_kffxp=c.NUMBER_KFDSK
 11  and a.GROUP_KFFXP=d.NUMBER_KFGRP;
Enter value for backup_path: /tmp
old   1: select 'dd if='||c.PATH_KFDSK||' of=&amp;&amp;backup_path/'||a.GROUP_KFFXP||'_'||a.disk_kffxp||'_'||
new   1: select 'dd if='||c.PATH_KFDSK||' of=/tmp/'||a.GROUP_KFFXP||'_'||a.disk_kffxp||'_'||

BACKUP_DD_CMD
------------------------------------------------------------------------------------------------------------------
dd if=/dev/asm-disk1 of=/tmp/1_0_256.asm count=1 bs=1048576 skip=29
dd if=/dev/asm-disk2 of=/tmp/1_1_257.asm count=1 bs=1048576 skip=404
dd if=/dev/asm-disk2 of=/tmp/1_1_258.asm count=1 bs=1048576 skip=641
dd if=/dev/asm-disk1 of=/tmp/1_0_259.asm count=1 bs=1048576 skip=648
dd if=/dev/asm-disk3 of=/tmp/2_0_256.asm count=1 bs=1048576 skip=51
</pre>
<p><strong>还原文件头</strong></p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt; set lines 150
SQL&gt; select 'dd of='||c.PATH_KFDSK||' if=&amp;&amp;backup_path/'||a.GROUP_KFFXP||'_'||a.disk_kffxp||
  2  '_'||b.NUMBER_KFFIL||'.asm count=1 conv=notrunc bs='|| d.AUSIZE_KFGRP||' seek='||a.au_kffxp restore_dd_cmd 
  3   FROM x$kffxp a, X$KFFIL  b,X$KFDSK c,X$KFGRP d  WHERE
  4  a.GROUP_KFFXP=b.GROUP_KFFIL
  5  and a.NUMBER_KFFXP=b.NUMBER_KFFIL
  6  and b.FTYPE_KFFIL in(2,12)
  7  and b.NUMBER_KFFIL&gt;255
  8  and a.xnum_kffxp=0
  9  and a.GROUP_KFFXP=c.GRPNUM_KFDSK
 10  and a.disk_kffxp=c.NUMBER_KFDSK
 11  and a.GROUP_KFFXP=d.NUMBER_KFGRP;
old   1: select 'dd of='||c.PATH_KFDSK||' if=&amp;&amp;backup_path/'||a.GROUP_KFFXP||'_'||a.disk_kffxp||
new   1: select 'dd of='||c.PATH_KFDSK||' if=/tmp/'||a.GROUP_KFFXP||'_'||a.disk_kffxp||

RESTORE_DD_CMD
-----------------------------------------------------------------------------------------------------------------
dd of=/dev/asm-disk1 if=/tmp/1_0_256.asm count=1 conv=notrunc bs=1048576 seek=29
dd of=/dev/asm-disk2 if=/tmp/1_1_257.asm count=1 conv=notrunc bs=1048576 seek=404
dd of=/dev/asm-disk2 if=/tmp/1_1_258.asm count=1 conv=notrunc bs=1048576 seek=641
dd of=/dev/asm-disk1 if=/tmp/1_0_259.asm count=1 conv=notrunc bs=1048576 seek=648
dd of=/dev/asm-disk3 if=/tmp/2_0_256.asm count=1 conv=notrunc bs=1048576 seek=51

SQL&gt; 
</pre>
<p><strong>备份还原文件头测试</strong>&#8211;通过测试证明该方法备份文件头是ok的<br />
关闭数据库,使用dd备份文件头</p>
<pre class="brush: sql; title: ; notranslate">
[oracle@xifenfei ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.4.0 Production on Fri May 1 04:21:49 2015

Copyright (c) 1982, 2013, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options

SQL&gt; shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
</pre>
<p>dul查看当前dbname值为XIFENFEI</p>
<pre class="brush: bash; title: ; notranslate">
[oracle@xifenfei dul]$ ./dul

Data UnLoader: 10.2.0.6.5 - Internal Only - on Fri May  1 04:37:43 2015
with 64-bit io functions

Copyright (c) 1994 2015 Bernard van Duijnen All rights reserved.

 Strictly Oracle Internal Use Only


Disk group DATA, dul group_cid 0
Discovered disk /dev/asm-disk1 as diskgroup DATA, disk number 0 size 3922 Mb File1 starts at 2, dul_disk_cid 0
Discovered disk /dev/asm-disk2 as diskgroup DATA, disk number 1 size 3922 Mb without File1 meta data, dul_disk_cid 1
Disk group XIFENFEI, dul group_cid 1
Discovered disk /dev/asm-disk3 as diskgroup XIFENFEI, disk number 0 size 4439 Mb File1 starts at 2, dul_disk_cid 2

DUL: Warning: Dictionary cache DC_ASM_EXTENTS is empty
Probing for attributes in File9, the attribute directory, for disk group DATA
attribute name &quot;_extent_sizes&quot;, value &quot;1 4 16&quot;
attribute name &quot;_extent_counts&quot;, value &quot;20000 20000 2147483647&quot;
Oracle data file size 775954432 bytes, block size 8192
Found db_id = 1495013434
Found db_name = XIFENFEI   &lt;-----db name
DUL: Error: Filedir block not allocated, file does not exist
DUL: Error: Could not load asm meta data for group XIFENFEI file 9
Probing for filenames in File6, the alias directory, for disk group XIFENFEI
+XIFENFEI/XIFENFEI/DATAFILE/XIFENFEI.256.878397315
Probing for database datafiles in File1, the file directory,  for disk group XIFENFEI
File 256 datafile size 104865792, block size 8192
Disk group XIFENFEI has one file of type datafile
</pre>
<p>使用dd备份1文件头</p>
<pre class="brush: bash; title: ; notranslate">
[oracle@xifenfei tmp]$ dd if=/dev/asm-disk1 of=/tmp/1_0_256.asm count=1 bs=1048576 skip=29
1+0 records in
1+0 records out
1048576 bytes (1.0 MB) copied, 0.0168209 seconds, 62.3 MB/s
</pre>
<p>尝试把dbname从XIFENFEI修改为ORCL</p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt; select dump('XIFENFEI',16) from dual;

DUMP('XIFENFEI',16)
-------------------------------------
Typ=96 Len=8: 58,49,46,45,4e,46,45,49

SQL&gt; SELECT DUMP('ORCL',16) FROM DUAL; 

DUMP('ORCL',16)
-------------------------
Typ=96 Len=4: 4f,52,43,4c

SQL&gt; 
</pre>
<p>bbed修改XIFENFEI为ORCL</p>
<pre class="brush: bash; title: ; notranslate">
[oracle@xifenfei tmp]$ bbed filename='/tmp/1_0_256.asm' mode=edit 
Password: 

BBED: Release 2.0.0.0.0 - Limited Production on Fri May 1 04:24:06 2015

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

************* !!! For Oracle Internal Use only !!! ***************

BBED&gt; set blocksize 8192
        BLOCKSIZE       8192

BBED&gt; set block 1
        BLOCK#          1

BBED&gt; map
 File: /tmp/1_0_256.asm (0)
 Block: 1                                     Dba:0x00000000
------------------------------------------------------------
 Data File Header

 struct kcvfh, 860 bytes                    @0       

 ub4 tailchk                                @8188    

BBED&gt; p kcvfhhdr
struct kcvfhhdr, 76 bytes                   @20      
   ub4 kccfhswv                             @20       0x00000000
   ub4 kccfhcvn                             @24       0x0b200400
   ub4 kccfhdbi                             @28       0x591c183a
   text kccfhdbn[0]                         @32      X
   text kccfhdbn[1]                         @33      I
   text kccfhdbn[2]                         @34      F
   text kccfhdbn[3]                         @35      E
   text kccfhdbn[4]                         @36      N
   text kccfhdbn[5]                         @37      F
   text kccfhdbn[6]                         @38      E
   text kccfhdbn[7]                         @39      I

BBED&gt; d seek 32
 File: /tmp/1_0_256.asm (0)
 Block: 1                seeks:   32 to   63           Dba:0x00000000
------------------------------------------------------------------------
 58494645 4e464549 12040000 00720100 00200000 01000300 00000000 00000000 

 &lt;32 bytes per line&gt;
</pre>
<p>dd把修改的block还原到asm中</p>
<pre class="brush: bash; title: ; notranslate">
[oracle@xifenfei dul]$ dd of=/dev/asm-disk1 if=/tmp/1_0_256.asm count=1 conv=notrunc bs=1048576 seek=29
1+0 records in
1+0 records out
1048576 bytes (1.0 MB) copied, 0.00253244 seconds, 414 MB/s
</pre>
<p>dul验证dbname 修改为ORCL成功</p>
<pre class="brush: bash; title: ; notranslate">
[oracle@xifenfei dul]$ ./dul

Data UnLoader: 10.2.0.6.5 - Internal Only - on Fri May  1 04:41:33 2015
with 64-bit io functions

Copyright (c) 1994 2015 Bernard van Duijnen All rights reserved.

 Strictly Oracle Internal Use Only


Disk group DATA, dul group_cid 0
Discovered disk /dev/asm-disk1 as diskgroup DATA, disk number 0 size 3922 Mb File1 starts at 2, dul_disk_cid 0
Discovered disk /dev/asm-disk2 as diskgroup DATA, disk number 1 size 3922 Mb without File1 meta data, dul_disk_cid 1
Disk group XIFENFEI, dul group_cid 1
Discovered disk /dev/asm-disk3 as diskgroup XIFENFEI, disk number 0 size 4439 Mb File1 starts at 2, dul_disk_cid 2

DUL: Warning: Dictionary cache DC_ASM_EXTENTS is empty
Probing for attributes in File9, the attribute directory, for disk group DATA
attribute name &quot;_extent_sizes&quot;, value &quot;1 4 16&quot;
attribute name &quot;_extent_counts&quot;, value &quot;20000 20000 2147483647&quot;
Oracle data file size 775954432 bytes, block size 8192
Found db_id = 1495013434
Found db_name = ORCL   &lt;----修改后的dbname
DUL: Error: Filedir block not allocated, file does not exist
DUL: Error: Could not load asm meta data for group XIFENFEI file 9
Probing for filenames in File6, the alias directory, for disk group XIFENFEI
+XIFENFEI/XIFENFEI/DATAFILE/XIFENFEI.256.878397315
Probing for database datafiles in File1, the file directory,  for disk group XIFENFEI
File 256 datafile size 104865792, block size 8192
Disk group XIFENFEI has one file of type datafile
</pre>
<p><strong>对于asm无法mount情况下备份asm disk header</strong><br />
asm磁盘的备份主要是备份磁盘头100M空间,使用dd命令直接备份</p>
<pre class="brush: sql; title: ; notranslate">
set lines 150
set pages 1000
select 'dd if='||path||' of=&amp;asmbackup_dir/'||group_number||'_'||disk_number||'.asm bs=1048576 
count=100' from v$asm_disk;
</pre>
<pre class="brush: sql; title: ; notranslate">
set lines 150
set pages 1000
select 'dd of='||path||' if=&amp;asmbackup_dir/'||group_number||'_'||disk_number||'.asm bs=1048576 
count=100 conv=notrunc' from v$asm_disk;
</pre>
<p>asmlib需要注意把ORCL:替换为/dev/oracleasm/disks/对应目录.</p>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/04/%e4%bd%bf%e7%94%a8dd%e5%a4%8d%e5%88%b6asm%e4%b8%ad%e6%96%87%e4%bb%b6.html" rel="bookmark" class="crp_title">使用dd复制asm中文件</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2015/05/oracle%e5%bc%82%e5%b8%b8%e6%81%a2%e5%a4%8d%e5%89%8d%e5%a4%87%e4%bb%bd%e4%bf%9d%e6%8a%a4%e7%8e%b0%e5%9c%ba%e5%bb%ba%e8%ae%ae.html" rel="bookmark" class="crp_title">Oracle异常恢复前备份保护现场建议&#8212;FileSystem环境</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2015/05/kfed%e6%81%a2%e5%a4%8d%e8%af%af%e5%88%a0%e9%99%a4%e7%a3%81%e7%9b%98%e7%bb%84.html" rel="bookmark" class="crp_title">kfed恢复误删除磁盘组</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/04/bbed%e4%bf%ae%e6%94%b9asm%e4%b8%ad%e6%95%b0%e6%8d%ae.html" rel="bookmark" class="crp_title">bbed修改ASM中数据</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/2012/06/%e4%bd%bf%e7%94%a8dul%e6%81%a2%e5%a4%8dasm%e4%b8%ad%e6%95%b0%e6%8d%ae.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/2012/05/asm%e5%a4%87%e4%bb%bd%e5%85%83%e6%95%b0%e6%8d%ae%e4%b9%8bmd_backup%e5%92%8cmd_restore.html" rel="bookmark" class="crp_title">asm备份元数据之md_backup和md_restore</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/06/%e4%bd%bf%e7%94%a8asm-disk-header-%e8%87%aa%e5%8a%a8%e5%a4%87%e4%bb%bd%e4%bf%a1%e6%81%af%e6%81%a2%e5%a4%8d.html" rel="bookmark" class="crp_title">使用asm disk header 自动备份信息恢复异常asm disk header</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2013/06/dul-%e6%94%af%e6%8c%81oracle-12c-cdb%e6%95%b0%e6%8d%ae%e5%ba%93%e6%81%a2%e5%a4%8d.html" rel="bookmark" class="crp_title">dul支持ORACLE 12C CDB数据库恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/01/dd%e6%93%8d%e4%bd%9c%e6%95%b0%e6%8d%ae%e6%96%87%e4%bb%b6.html" rel="bookmark" class="crp_title">dd操作数据文件</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2014/04/asm-disk-header-%e5%bd%bb%e5%ba%95%e6%8d%9f%e5%9d%8f%e6%81%a2%e5%a4%8d.html" rel="bookmark" class="crp_title">asm disk header 彻底损坏恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/05/%e7%b3%bb%e7%bb%9f%e4%b8%ad%e6%95%b0%e6%8d%ae%e6%96%87%e4%bb%b6%e7%ac%ac%e4%b8%80%e4%b8%aa%e6%95%b0%e6%8d%ae%e5%9d%97%e5%92%8coracle-%e4%b8%ad%e7%ac%ac%e4%b8%80%e4%b8%aa%e6%95%b0%e6%8d%ae%e5%9d%97.html" rel="bookmark" class="crp_title">系统中数据文件第一个数据块和oracle 中第一个数据块关系</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2015/05/oracle%e5%bc%82%e5%b8%b8%e6%81%a2%e5%a4%8d%e5%89%8d%e5%a4%87%e4%bb%bd%e4%bf%9d%e6%8a%a4%e7%8e%b0%e5%9c%ba%e5%bb%ba%e8%ae%ae-asm%e7%8e%af%e5%a2%83.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle异常恢复前备份保护现场建议&#8212;FileSystem环境</title>
		<link>https://www.xifenfei.com/2015/05/oracle%e5%bc%82%e5%b8%b8%e6%81%a2%e5%a4%8d%e5%89%8d%e5%a4%87%e4%bb%bd%e4%bf%9d%e6%8a%a4%e7%8e%b0%e5%9c%ba%e5%bb%ba%e8%ae%ae.html</link>
		<comments>https://www.xifenfei.com/2015/05/oracle%e5%bc%82%e5%b8%b8%e6%81%a2%e5%a4%8d%e5%89%8d%e5%a4%87%e4%bb%bd%e4%bf%9d%e6%8a%a4%e7%8e%b0%e5%9c%ba%e5%bb%ba%e8%ae%ae.html#comments</comments>
		<pubDate>Mon, 11 May 2015 15:45:20 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[Oracle备份恢复]]></category>
		<category><![CDATA[oracle异常恢复]]></category>
		<category><![CDATA[oracle现场保护]]></category>
		<category><![CDATA[异常恢复备份]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=5879</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2015/05/oracle%e5%bc%82%e5%b8%b8%e6%81%a2%e5%a4%8d%e5%89%8d%e5%a4%87%e4%bb%bd%e4%bf%9d%e6%8a%a4%e7%8e%b0%e5%9c%ba%e5%bb%ba%e8%ae%ae.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/05/oracle%e5%bc%82%e5%b8%b8%e6%81%a2%e5%a4%8d%e5%89%8d%e5%a4%87%e4%bb%bd%e4%bf%9d%e6%8a%a4%e7%8e%b0%e5%9c%ba%e5%bb%ba%e8%ae%ae.html" target="_blank">Oracle异常恢复前备份保护现场建议&#8212;FileSystem环境</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>无论是在各种会议上,还是在朋友/网友私下请教Oracle数据库恢复的问题之时,我都强调,如果你没有十足的把握,请你对您的现场进行备份,确保别对现场进行二次损坏。你不能恢复数据库,但绝对不能再次破坏数据库,给二次恢复增加难度.这里对恢复前备份提供一些指导思想和简单脚本,希望对大家有帮助.<br />
<br />
<strong>哪些文件需要备份</strong><br />
熟悉数据库恢复的朋友可能都情况,Oracle在异常恢复的过程中主要修改的是system表空间里面数据,其他数据文件,redo数据,控制文件(当然由于redo,undo导致其他数据文件内部的block也可能发生改变)。在备份时间,备份空间允许的情况下,是对这些文件全部备份为好<br />
<br />
<strong>完整备份文件</strong></p>
<pre class="brush: sql; title: ; notranslate">
set lines 150
set pages 10000
select name from v$datafile
union all
select name from v$controlfile
union all
select member from v$logfile;
</pre>
<p>有些情况下:比如如果全部备份时间过长,备份空间不足等情况下,我们该如何备份,尽量减少因为异常恢复导致对原环境的损坏.备份最核心的system表空间,数据文件头,redo file,control file等数据,由于这个不是简单的拷贝操作,因此在生成备份语句同时,也生成还原语句,切不可生成了备份语句后,无恢复语句,导致后面还原故障现场难度增大.<br />
<br />
<strong>无法全备情况下linux/unix数据库恢复前备份</strong></p>
<pre class="brush: sql; title: ; notranslate">
set lines 150
set pages 10000
select 'dd if='||name||' of=&amp;&amp;back_dir/'||ts#||'_'||file#||'.dbf bs=1048576 count=10' 
from v$datafile where ts#&lt;&gt;0
union all
select 'dd if='||name||' of=&amp;&amp;back_dir/'||ts#||'_'||file#||'.dbf' from v$datafile where ts#=0
union all
select 'dd if='||name||' of=&amp;&amp;back_dir/control0'||rownum||'.ctl' from v$controlfile 
union all
select 'dd if='||member||' of=&amp;&amp;back_dir/'||thread#||'_'||a.group#||'_'||sequence#||'_'||substr(member,
instr(member,'/',-1)+1)  FROM v$log a, v$logfile b WHERE a.group# = B.GROUP#;
</pre>
<p><strong>无法全备情况下linux/unix使用备份还原</strong></p>
<pre class="brush: sql; title: ; notranslate">
set lines 150
set pages 1000
select 'dd of='||name||' if=&amp;&amp;back_dir/'||ts#||'_'||file#||'.dbf bs=1048576 count=10 conv=notrunc' 
from v$datafile where ts#&lt;&gt;0
union all
select 'dd if='||name||' if=&amp;&amp;back_dir/'||ts#||'_'||file#||'.dbf' from v$datafile where ts#=0
union all
select 'dd of='||name||' if=&amp;&amp;back_dir/control0'||rownum||'.ctl' from v$controlfile 
union all
select 'dd of='||member||' if=&amp;&amp;back_dir/'||thread#||'_'||a.group#||'_'||sequence#||'_'||substr(member,
instr(member,'/',-1)+1)    FROM v$log a, v$logfile b WHERE a.group# = B.GROUP#;
</pre>
<p><strong>由于win路径斜杠不一样(/和\的区别),因此在无法全备情况下win备份语句</strong></p>
<pre class="brush: sql; title: ; notranslate">
set lines 150
set pages 10000
select 'dd if='||name||' of=&amp;&amp;back_dir\'||ts#||'_'||file#||'.dbf bs=1048576 count=10' 
from v$datafile where ts#&lt;&gt;0
union all
select 'dd if='||name||' of=&amp;&amp;back_dir\'||ts#||'_'||file#||'.dbf' from v$datafile where ts#=0
union all
select 'dd if='||name||' of=&amp;&amp;back_dir\control0'||rownum||'.ctl' from v$controlfile 
union all
select 'dd if='||member||' of=&amp;&amp;back_dir\'||thread#||'_'||a.group#||'_'||sequence#||'_'||substr(member,
instr(member,'\',-1)+1)   FROM v$log a, v$logfile b WHERE a.group# = B.GROUP#;
</pre>
<p><strong>在无法全备情况下win还原语句</strong></p>
<pre class="brush: sql; title: ; notranslate">
set lines 150
set pages 1000
select 'dd of='||name||' if=&amp;&amp;back_dir\'||ts#||'_'||file#||'.dbf bs=1048576 count=10 conv=notrunc' 
from v$datafile where ts#&lt;&gt;0
union all
select 'dd if='||name||' if=&amp;&amp;back_dir\'||ts#||'_'||file#||'.dbf' from v$datafile where ts#=0
union all
select 'dd of='||name||' if=&amp;&amp;back_dir\control0'||rownum||'.ctl' from v$controlfile 
union all
select 'dd of='||member||' if=&amp;&amp;back_dir\'||thread#||'_'||a.group#||'_'||sequence#||'_'||substr(member,
instr(member,'\',-1)+1)    FROM v$log a, v$logfile b WHERE a.group# = B.GROUP#;
</pre>
<p>这里提供win环境下dd命令程序<a href="//www.xifenfei.com/wp-content/uploads/2015/05/dd.rar">win环境dd命令工具</a><br />
<br />
备注:对于asm情况异常情况恢复,备份情况请不要参考该文章,具体请见后续文章,具体见<a href="//www.xifenfei.com/5888.html" title="Oracle异常恢复前备份保护现场建议—ASM环境" target="_blank">Oracle异常恢复前备份保护现场建议—ASM环境</a></p>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2015/05/oracle%e5%bc%82%e5%b8%b8%e6%81%a2%e5%a4%8d%e5%89%8d%e5%a4%87%e4%bb%bd%e4%bf%9d%e6%8a%a4%e7%8e%b0%e5%9c%ba%e5%bb%ba%e8%ae%ae-asm%e7%8e%af%e5%a2%83.html" rel="bookmark" class="crp_title">Oracle异常恢复前备份保护现场建议&#8212;ASM环境</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/08/%e6%99%ae%e9%80%9a%e5%ba%93%e8%bf%81%e7%a7%bb%e8%87%b3asm%e5%ad%98%e5%82%a8.html" rel="bookmark" class="crp_title">普通库迁移至ASM存储</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/08/ora-00313%e5%92%8cora-00313%e5%a4%84%e7%90%86.html" rel="bookmark" class="crp_title">数据库open状态下日志异常处理</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2010/08/oracle%e4%b9%8bredo-file.html" rel="bookmark" class="crp_title">oracle之redo file</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/08/%e5%bd%93%e5%89%8d%e8%81%94%e6%9c%ba%e6%97%a5%e5%bf%97%e6%8d%9f%e5%9d%8f%e6%81%a2%e5%a4%8d.html" rel="bookmark" class="crp_title">当前联机日志损坏恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2013/08/oracle-12c-dbms_utility-expand_sql_text-%e6%9f%a5%e7%9c%8bsql%e8%a7%86%e5%9b%be%e5%9f%ba%e8%a1%a8.html" rel="bookmark" class="crp_title">ORACLE 12C dbms_utility.expand_sql_text 查看SQL视图基表</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/12/oracle-12c%e5%8f%af%e4%bb%a5%e9%80%9a%e8%bf%87expdp%e5%af%bc%e5%87%baview%e6%95%b0%e6%8d%ae.html" rel="bookmark" class="crp_title">ORACLE 12C可以通过expdp导出view数据</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/2013/04/%e4%bd%bf%e7%94%a8oradebug-hang%e4%bd%8f%e6%9f%90%e4%b8%aa%e8%bf%9b%e7%a8%8b.html" rel="bookmark" class="crp_title">使用oradebug hang住某个进程</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2018/11/ogg-vlogfile-frequent-query.html" rel="bookmark" class="crp_title">ogg导致v$logfile查询频繁</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2013/05/%e9%80%9a%e8%bf%87%e8%84%9a%e6%9c%ac%e8%8e%b7%e5%be%97%e5%88%9b%e5%bb%ba%e7%94%a8%e6%88%b7%e8%84%9a%e6%9c%ac.html" rel="bookmark" class="crp_title">通过脚本获得创建用户语句</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2010/08/oracle%e4%b9%8b%e7%94%a8%e6%88%b7%e7%ae%a1%e7%90%86%e5%a4%87%e4%bb%bd.html" rel="bookmark" class="crp_title">oracle之用户管理备份</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2015/05/oracle%e5%bc%82%e5%b8%b8%e6%81%a2%e5%a4%8d%e5%89%8d%e5%a4%87%e4%bb%bd%e4%bf%9d%e6%8a%a4%e7%8e%b0%e5%9c%ba%e5%bb%ba%e8%ae%ae.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle 异常恢复案例汇总</title>
		<link>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</link>
		<comments>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#comments</comments>
		<pubDate>Mon, 10 Nov 2014 14:07:15 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[专题索引]]></category>
		<category><![CDATA[oracle异常恢复]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=5625</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <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">继续阅读 <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-%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" target="_blank">Oracle 异常恢复案例汇总</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>在2014年11月11日来临之际,我整理Blog中和异常恢复案例相关的部分文章,供大家参考:<br />
<a href="//www.xifenfei.com/4149.html" title="dul处理分区表" target="_blank">dul处理分区表</a><br />
<a href="//www.xifenfei.com/2652.html" title="误删除dual表恢复" target="_blank">误删除dual表恢复</a><br />
<a href="//www.xifenfei.com/4136.html" title="dul恢复drop表测试" target="_blank">dul恢复drop表测试</a><br />
<a href="//www.xifenfei.com/2395.html" title="跳过obj$坏块方法" target="_blank">跳过obj$坏块方法</a><br />
<a href="//www.xifenfei.com/2666.html" title="bbed解决ORA-01190" target="_blank">bbed解决ORA-01190</a><br />
<a href="//www.xifenfei.com/5269.html" title="exp dmp文件损坏恢复" target="_blank">exp dmp文件损坏恢复</a><br />
<a href="//www.xifenfei.com/1482.html" title="当前联机日志损坏恢复" target="_blank">当前联机日志损坏恢复</a><br />
<a href="//www.xifenfei.com/1406.html" title="ORA-01578坏块解决(1)" target="_blank">ORA-01578坏块解决(1)</a><br />
<a href="//www.xifenfei.com/1408.html" title="ORA-01578坏块解决(2)" target="_blank">ORA-01578坏块解决(2)</a><br />
<a href="//www.xifenfei.com/1496.html" title="undo异常处理步骤（9i）" target="_blank">undo异常处理步骤（9i）</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/1488.html" title="undo异常处理步骤（10g）" target="_blank">undo异常处理步骤（10g）</a><br />
<a href="//www.xifenfei.com/5512.html" title="ORA-600 2663 故障恢复" target="_blank">ORA-600 2663 故障恢复</a><br />
<a href="//www.xifenfei.com/4133.html" title="dul恢复truncate表测试" target="_blank">dul恢复truncate表测试</a><br />
<a href="//www.xifenfei.com/4380.html" title="bbed处理ORA-01200故障" target="_blank">bbed处理ORA-01200故障</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/3377.html" title="使用 dul 挖数据文件初试" target="_blank">使用 dul 挖数据文件初试</a><br />
<a href="//www.xifenfei.com/2186.html" title="sysaux数据文件异常恢复" target="_blank">sysaux数据文件异常恢复</a><br />
<a href="//www.xifenfei.com/1502.html" title="ORA-01244/ORA-01110解决" target="_blank">ORA-01244/ORA-01110解决</a><br />
<a href="//www.xifenfei.com/2289.html" title="恢复被rm意外删除数据文件" target="_blank">恢复被rm意外删除数据文件</a><br />
<a href="//www.xifenfei.com/2111.html" title="ORA-00600[4194]故障解决" target="_blank">ORA-00600[4194]故障解决</a><br />
<a href="//www.xifenfei.com/1112.html" title="ORA-01207/ORA-00338恢复" target="_blank">ORA-01207/ORA-00338恢复</a><br />
<a href="//www.xifenfei.com/5102.html" title="DUL10直接支持ORACLE 8.0" target="_blank">DUL10直接支持ORACLE 8.0</a><br />
<a href="//www.xifenfei.com/3555.html" title="bbed修改undo$(回滚段)状态" target="_blank">bbed修改undo$(回滚段)状态</a><br />
<a href="//www.xifenfei.com/3559.html" title="记录8.0.5数据库恢复过程" target="_blank">记录8.0.5数据库恢复过程</a><br />
<a href="//www.xifenfei.com/2516.html" title="ORA-600[4194]/[4193]解决" target="_blank">ORA-600[4194]/[4193]解决</a><br />
<a href="//www.xifenfei.com/1861.html" title="使用rman找回被误删除表空间" target="_blank">使用rman找回被误删除表空间</a><br />
<a href="//www.xifenfei.com/5333.html" title="记录一次系统回滚段坏块恢复" target="_blank">记录一次系统回滚段坏块恢复</a><br />
<a href="//www.xifenfei.com/2249.html" title="使用bbed解决ORA-00600[2662]" target="_blank">使用bbed解决ORA-00600[2662]</a><br />
<a href="//www.xifenfei.com/3992.html" title="ORA-00600[kcfrbd_3]故障解决" target="_blank">ORA-00600[kcfrbd_3]故障解决</a><br />
<a href="//www.xifenfei.com/5427.html" title="数据库启动ORA-08103故障恢复" target="_blank">数据库启动ORA-08103故障恢复</a><br />
<a href="//www.xifenfei.com/5249.html" title="asm disk header 彻底损坏恢复" target="_blank">asm disk header 彻底损坏恢复</a><br />
<a href="//www.xifenfei.com/5338.html" title="数据库恢复遭遇ORA-00600[3705]" target="_blank">数据库恢复遭遇ORA-00600[3705]</a><br />
<a href="//www.xifenfei.com/3392.html" title="Oracle 11g丢失access$恢复方法" target="_blank">Oracle 11g丢失access$恢复方法</a><br />
<a href="//www.xifenfei.com/3439.html" title="undo segment header坏块异常恢复" target="_blank">undo segment header坏块异常恢复</a><br />
<a href="//www.xifenfei.com/4162.html" title="ORA-600 kghstack_free2异常恢复" target="_blank">ORA-600 kghstack_free2异常恢复</a><br />
<a href="//www.xifenfei.com/3881.html" title="ORA-00600[kccpb_sanity_check_2]" target="_blank">ORA-00600[kccpb_sanity_check_2]</a><br />
<a href="//www.xifenfei.com/4089.html" title="重建控制文件引发ORA-00218故障" target="_blank">重建控制文件引发ORA-00218故障</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/5099.html" title="ORACLE 8.0.5 ORA-01207故障恢复" target="_blank">ORACLE 8.0.5 ORA-01207故障恢复</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/4144.html" title="完美解决dul处理clob字段乱码问题" target="_blank">完美解决dul处理clob字段乱码问题</a><br />
<a href="//www.xifenfei.com/2939.html" title="手工修复ASM DISK HEADER 异常" target="_blank">手工修复ASM DISK HEADER 异常</a><br />
<a href="//www.xifenfei.com/3260.html" title="undo坏块导致数据库异常终止案例" target="_blank">undo坏块导致数据库异常终止案</a><br />
<a href="//www.xifenfei.com/3708.html" title="bbed 恢复 GLOBAL_NAME 为空故障" target="_blank">bbed 恢复 GLOBAL_NAME 为空故障</a><br />
<a href="//www.xifenfei.com/3607.html" title="通过bbed解决ORA-00600[4000]案例" target="_blank">通过bbed解决ORA-00600[4000]案例</a><br />
<a href="//www.xifenfei.com/5515.html" title="重建控制文件丢失数据文件导致悲剧" target="_blank">重建控制文件丢失数据文件导致悲剧</a><br />
<a href="//www.xifenfei.com/2047.html" title="异常断电导致current redo损坏处理" target="_blank">异常断电导致current redo损坏处理</a><br />
<a href="//www.xifenfei.com/4170.html" title="创建控制文件遭遇ORA-600 kccscf_1" target="_blank">创建控制文件遭遇ORA-600 kccscf_1</a><br />
<a href="//www.xifenfei.com/3251.html" title="使用bbed修复损坏datafile header" target="_blank">使用bbed修复损坏datafile header</a><br />
<a href="//www.xifenfei.com/5242.html" title="通过修改控制文件scn推进数据库scn" target="_blank">通过修改控制文件scn推进数据库scn</a><br />
<a href="//www.xifenfei.com/3955.html" title="bbed打开丢失部分system数据文件库" target="_blank">bbed打开丢失部分system数据文件库</a><br />
<a href="//www.xifenfei.com/5440.html" title="某集团ebs数据库redo undo丢失导致悲剧" target="_blank">某集团ebs数据库redo undo丢失导致悲剧</a><br />
<a href="//www.xifenfei.com/2373.html" title="obj$坏块exp/expdp导出不能正常执行" target="_blank">obj$坏块exp/expdp导出不能正常执行</a><br />
<a href="//www.xifenfei.com/2216.html" title="处理fast_recovery_area无剩余空间案例" target="_blank">处理fast_recovery_area无剩余空间案例</a><br />
<a href="//www.xifenfei.com/2388.html" title="obj$坏块情况下exp导出单个表解决方案" target="_blank">obj$坏块情况下exp导出单个表解决方案</a><br />
<a href="//www.xifenfei.com/1578.html" title="ORA-00600 [ktbdchk1: bad dscn] 解决" target="_blank">ORA-00600 [ktbdchk1: bad dscn] 解决</a><br />
<a href="//www.xifenfei.com/4459.html" title="记录因磁盘头被重写,抢救redo恢复经历" target="_blank">记录因磁盘头被重写,抢救redo恢复经历</a><br />
<a href="//www.xifenfei.com/3179.html" title="rac redo log file被意外覆盖数据库恢复" target="_blank">rac redo log file被意外覆盖数据库恢复</a><br />
<a href="//www.xifenfei.com/3332.html" title="使用bbed让rac中的sysaux数据文件online" target="_blank">使用bbed让rac中的sysaux数据文件online</a><br />
<a href="//www.xifenfei.com/3567.html" title="通过bbed修改回滚段状态解决ORA-00704故障" target="_blank">通过bbed修改回滚段状态解决ORA-00704故障</a><br />
<a href="//www.xifenfei.com/3638.html" title="处理smon清理临时段导致数据库异常案例" target="_blank">处理smon清理临时段导致数据库异常案例</a><br />
<a href="//www.xifenfei.com/5077.html" title="使用DUL挖数据文件恢复非数据外对象方法" target="_blank">使用DUL挖数据文件恢复非数据外对象方法</a><br />
<a href="//www.xifenfei.com/4399.html" title="一次侥幸的OSD-04016 O/S-Error异常恢复" target="_blank">一次侥幸的OSD-04016 O/S-Error异常恢复</a><br />
<a href="//www.xifenfei.com/5464.html" title="ORACLE 8.1.7 数据库ORA-600 4000故障恢复" target="_blank">记录一次ORA-600 4000数据库故障恢复</a><br />
<a href="//www.xifenfei.com/5461.html" title="一起ORA-600 3020故障恢复的大体思路" target="_blank">一起ORA-600 3020故障恢复的大体思路</a><br />
<a href="//www.xifenfei.com/5606.html" title="redo异常 ORA-600 kclchkblk_4 故障恢复" target="_blank">redo异常 ORA-600 kclchkblk_4 故障恢复</a><br />
<a href="//www.xifenfei.com/5597.html" title="Oracle 12C的第一次异常恢复—文件头坏块" target="_blank">Oracle 12C的第一次异常恢复—文件头坏块</a><br />
<a href="//www.xifenfei.com/5579.html" title="数据库启动报ORA-00704 ORA-39714错误解决" target="_blank">数据库启动报ORA-00704 ORA-39714错误解决</a><br />
<a href="//www.xifenfei.com/5464.html" title="ORACLE 8.1.7 数据库ORA-600 4000故障恢复" target="_blank">ORACLE 8.1.7 数据库ORA-600 4000故障恢复</a><br />
<a href="//www.xifenfei.com/3545.html" title="数据库报ORA-00607/ORA-00600[4194]错误" target="_blank">数据库报ORA-00607/ORA-00600[4194]错误</a><br />
<a href="//www.xifenfei.com/3614.html" title="创建控制文件遭遇ORA-00600[3753]故障解决" target="_blank">创建控制文件遭遇ORA-00600[3753]故障解决</a><br />
<a href="//www.xifenfei.com/3464.html" title="ORA-00600[kcbshlc_1]导致数据库 down 案例" target="_blank">ORA-00600[kcbshlc_1]导致数据库 down 案例</a><br />
<a href="//www.xifenfei.com/5432.html" title="ORACLE 8.1.7 数据库ORA-600 4194故障恢复" target="_blank">ORACLE 8.1.7 数据库ORA-600 4194故障恢复</a><br />
<a href="//www.xifenfei.com/5163.html" title="ORA-00600[kcrf_resilver_log_1]异常恢复" target="_blank">ORA-00600[kcrf_resilver_log_1]异常恢复</a><br />
<a href="//www.xifenfei.com/3802.html" title="控制文件异常导致ORA-00600[kccsbck_first]" target="_blank">控制文件异常导致ORA-00600[kccsbck_first]</a><br />
<a href="//www.xifenfei.com/5419.html" title="分享一次ORA-01113 ORA-01110故障处理过程" target="_blank">分享一次ORA-01113 ORA-01110故障处理过程</a><br />
<a href="//www.xifenfei.com/5413.html" title="记录一次ORA-600 3004 恢复过程和处理思路" target="_blank">记录一次ORA-600 3004 恢复过程和处理思路</a><br />
<a href="//www.xifenfei.com/5370.html" title="Oracle安全警示录:加错裸设备导致redo异常" target="_blank">Oracle安全警示录:加错裸设备导致redo异常</a><br />
<a href="//www.xifenfei.com/2347.html" title="ORA-600 kcratr_nab_less_than_odr故障解决" target="_blank">ORA-600 kcratr_nab_less_than_odr故障解决</a><br />
<a href="//www.xifenfei.com/3752.html" title="双机mount数据库出现ORA-00600[kccsbck_first]" target="_blank">双机mount数据库出现ORA-00600[kccsbck_first]</a><br />
<a href="//www.xifenfei.com/5454.html" title="又一起存储故障导致ORA-00333 ORA-00312恢复" target="_blank">又一起存储故障导致ORA-00333 ORA-00312恢复</a><br />
<a href="//www.xifenfei.com/3620.html" title="通过bbed模拟ORA-00607/ORA-00600 4194 故障" target="_blank">通过bbed模拟ORA-00607/ORA-00600 4194 故障</a><br />
<a href="//www.xifenfei.com/5123.html" title="记录一次ORA-00316 ORA-00312 redo异常恢复" target="_blank">记录一次ORA-00316 ORA-00312 redo异常恢复</a><br />
<a href="//www.xifenfei.com/4120.html" title="asmlib异常报ORA-00600[kfklLibFetchNext00]" target="_blank">asmlib异常报ORA-00600[kfklLibFetchNext00]</a><br />
<a href="//www.xifenfei.com/4623.html" title="某个pdb可以在root pdb open状态下进行恢复" target="_blank">某个pdb可以在root pdb open状态下进行恢复</a><br />
<a href="//www.xifenfei.com/3622.html" title="使用bbed解决ORA-00607/ORA-00600[4194]故障" target="_blank">使用bbed解决ORA-00607/ORA-00600[4194]故障</a><br />
<a href="//www.xifenfei.com/4428.html" title="乱用_allow_resetlogs_corruption参数导致悲剧" target="_blank">乱用_allow_resetlogs_corruption参数导致悲剧</a><br />
<a href="//www.xifenfei.com/2528.html" title="遭遇ORA-07445[kkdliac()+346]使用odu抢救数据" target="_blank">遭遇ORA-07445[kkdliac()+346]使用odu抢救数据</a><br />
<a href="//www.xifenfei.com/5591.html" title="ORA-27069: skgfdisp: 尝试在文件范围外执行 I/O" target="_blank">ORA-27069: skgfdisp: 尝试在文件范围外执行 I/O</a><br />
<a href="//www.xifenfei.com/5499.html" title="创建控制文件出现ORA-01565 ORA-27041 OSD-04002" target="_blank">创建控制文件出现ORA-01565 ORA-27041 OSD-04002</a><br />
<a href="//www.xifenfei.com/5475.html" title="记录一次system表空间坏块(ORA-01578)数据库恢复" target="_blank">记录一次system表空间坏块(ORA-01578)数据库恢复</a><br />
<a href="//www.xifenfei.com/4690.html" title="模拟基表事务未提交数据库crash,undo丢失恢复异常恢复" target="_blank">模拟基表事务未提交数据库crash,undo丢失恢复异常恢复</a><br />
<a href="//www.xifenfei.com/4673.html" title="重建控制文件丢失undo异常恢复—ORA-600 25025模拟与恢复" target="_blank">重建控制文件丢失undo异常恢复—ORA-01173模拟与恢复</a><br />
<a href="//www.xifenfei.com/4645.html" title="修改props$.NLS_CHARACTERSET导致ORA-00900异常恢复" target="_blank">修改props$.NLS_CHARACTERSET导致ORA-00900异常恢复</a><br />
<a href="//www.xifenfei.com/4262.html" title="ORA-600[2037]与ORA-07445[kcbs_dump_adv_state]错误" target="_blank">ORA-600[2037]与ORA-07445[kcbs_dump_adv_state]错误</a><br />
<a href="//www.xifenfei.com/5406.html" title="误drop tablespace后使用flashback database闪回异常处理" target="_blank">误drop tablespace后使用flashback database闪回异常处理</a><br />
<a href="//www.xifenfei.com/5378.html" title="数据库恢复历史再次刷新到Oracle 7.3.2版本—redo异常恢复" target="_blank">数据库恢复历史再次刷新到Oracle 7.3.2版本—redo异常恢复</a><br />
<a href="//www.xifenfei.com/5341.html" title="ORA-27086: skgfglk: unable to lock file – already in use" target="_blank">ORA-27086: skgfglk: unable to lock file – already in use</a><br />
<a href="//www.xifenfei.com/5239.html" title="ORACLE 12C ORA-07445[ktuHistRecUsegCrtMain()+1173]恢复" target="_blank">ORACLE 12C ORA-07445[ktuHistRecUsegCrtMain()+1173]恢复</a><br />
<a href="//www.xifenfei.com/3166.html" title="ORA-00600[kcratr1_lostwrt]/ORA-00600[3020]错误恢复" target="_blank">ORA-00600[kcratr1_lostwrt]/ORA-00600[3020]错误恢复</a><br />
<a href="//www.xifenfei.com/2810.html" title="表空间online出现ORA-00600[kcbz_check_objd_typ]处理过程" target="_blank">表空间online出现ORA-00600[kcbz_check_objd_typ]处理过程</a><br />
<a href="//www.xifenfei.com/2669.html" title="_allow_resetlogs_corruption和adjust_scn解决ORA-01190" target="_blank">_allow_resetlogs_corruption和adjust_scn解决ORA-01190</a><br />
<a href="//www.xifenfei.com/3385.html" title="spfile被覆盖导致ORA-600[kmgs_parameter_update_timeout_1]" target="_blank">spfile被覆盖导致ORA-600[kmgs_parameter_update_timeout_1]</a><br />
<a href="//www.xifenfei.com/4673.html" title="重建控制文件丢失undo异常恢复—ORA-600 25025模拟与恢复" target="_blank">重建控制文件丢失undo异常恢复—ORA-600 25025模拟与恢复</a><br />
<a href="//www.xifenfei.com/2619.html" title="使用_allow_resetlogs_corruption打开无归档日志rman备份库" target="_blank">使用_allow_resetlogs_corruption打开无归档日志rman备份库</a><br />
<a href="//www.xifenfei.com/4661.html" title="使用_allow_resetlogs_corruption导致ORA-00704/ORA-01555故障" target="_blank">使用_allow_resetlogs_corruption导致ORA-00704/ORA-01555故障</a><br />
<a href="//www.xifenfei.com/5352.html" title="记录一次ORA-600 kccpb_sanity_check_2和ORA-600 kcbgtcr_13 错误恢复" target="_blank">记录一次ORA-600 kccpb_sanity_check_2和ORA-600 kcbgtcr_13 错误恢复</a><br />
<a href="//www.xifenfei.com/5415.html" title="ORA-00600[17182],ORA-00600[25027],ORA-00600[kghfrempty:ds]故障处理" target="_blank">ORA-00600[17182],ORA-00600[25027],ORA-00600[kghfrempty:ds]故障处理</a><br />
<a href="//www.xifenfei.com/4863.html" title="因RAC的undo_management参数不一致导致数据库mount报ORA-01105 ORA-01606" target="_blank">因RAC的undo_management参数不一致导致数据库mount报ORA-01105 ORA-01606</a><br />
<a href="//www.xifenfei.com/4538.html" title="使用bbed解决ORA-01178 file N created before last CREATE CONTROLFILE, cannot recreate" target="_blank">使用bbed解决ORA-01178 file N created before last CREATE CONTROLFILE, cannot recreate</a><br />
<a href="//www.xifenfei.com/5539.html" title="通过多次resetlogs规避类似ORA-01248: file N was created in the future of incomplete recovery错误" target="_blank">通过多次resetlogs规避类似ORA-01248: file N was created in the future of incomplete recovery错误</a><br />
<a href="//www.xifenfei.com/5566.html" title="bootstrap$核心index(I_OBJ1,I_USER1,I_FILE#_BLOCK#,I_IND1,I_TS#,I_CDEF1等)异常恢复—ORA-00701错误解决" target="_blank">bootstrap$核心index(I_OBJ1,I_USER1,I_FILE#_BLOCK#,I_IND1,I_TS#,I_CDEF1等)异常恢复—ORA-00701错误解决</a><br />
<a href="//www.xifenfei.com/5365.html" title="记录一次ORA-00600[kdxlin:psno out of range]/ORA-00600[3020]/ORA-00600[4000]/ORA-00600[4193]的数据库恢复" target="_blank">记录一次ORA-00600[kdxlin:psno out of range]/ORA-00600[3020]/ORA-00600[4000]/ORA-00600[4193]的数据库恢复</a><br />
<br />
当你的数据库因为<font color="red">异常断电，强制关机，硬盘故障，drop表，truncate表，delete表，dmp文件异常，asm无法正常mount</font>等故障无法解决导致数据丢失，且无法自行解决，请联系我们，提供专业<a href="//www.xifenfei.com/oracle_recover" title="ORACLE数据库恢复技术支持" target="_blank">ORACLE数据库恢复技术支持</a><br />
<strong><font color="red" size=4>Phone:17813235971  &nbsp;&nbsp;   Q Q:<a href='https://wpa.qq.com/msgrd?v=3&#038;uin=107644445&#038;site=qq&#038;menu=yes' target='_blank'>107644445</a>  &nbsp;&nbsp;  E-Mail:dba@xifenfei.com</font></strong></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/2013/12/oracle-dul%e6%b1%87%e6%80%bb.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/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/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/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/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/2025/02/ora-600-16703-2025-year.html" rel="bookmark" class="crp_title">2025年第一起ORA-600 16703故障恢复</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/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/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/2022/01/2022-first-recovery-ora-600-kokasgi1.html" rel="bookmark" class="crp_title">2022年恢复第一单ORA-600 kokasgi1</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2024/09/ora-600-16703.html" rel="bookmark" class="crp_title">ORA-600 16703故障再现</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>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/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>通过多次resetlogs规避类似ORA-01248: file N was created in the future of incomplete recovery错误</title>
		<link>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</link>
		<comments>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#comments</comments>
		<pubDate>Tue, 14 Oct 2014 11:25:12 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[Oracle备份恢复]]></category>
		<category><![CDATA[ORA-01248]]></category>
		<category><![CDATA[oracle异常恢复]]></category>
		<category><![CDATA[ORACLE恢复]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=5539</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <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">继续阅读 <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/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" target="_blank">通过多次resetlogs规避类似ORA-01248: file N was created in the future of incomplete recovery错误</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p><strong>数据库现状</strong><br />
控制文件<br />
<img src="//www.xifenfei.com/wp-content/uploads/2014/10/recover_xifenfei0.jpg" alt="recover_xifenfei0" width="1409" height="186" class="alignleft size-full wp-image-5543" /><br />
控制文件中数据文件信息<br />
<img src="//www.xifenfei.com/wp-content/uploads/2014/10/recover_xifenfei1.jpg" alt="recover_xifenfei1" width="1412" height="115" class="alignleft size-full wp-image-5540" /><br />
数据文件头信息<br />
<img src="//www.xifenfei.com/wp-content/uploads/2014/10/recover_xifenfei2.jpg" alt="recover_xifenfei2" width="1411" height="113" class="alignleft size-full wp-image-5541" /><br />
redo信息<br />
<img src="//www.xifenfei.com/wp-content/uploads/2014/10/recover_xifenfei3.jpg" alt="recover_xifenfei3" width="1370" height="85" class="alignleft size-full wp-image-5542" /><br />
根据当前<a href="//www.xifenfei.com/5056.html" title="数据库恢复检查脚本(Oracle Database Recovery Check)" target="_blank">数据库恢复检查脚本(Oracle Database Recovery Check)</a>收集的信息,数据库的是非归档状态,而且redo已经覆盖,数据库datafile 5 无法直接online.遇到这样情况,可以使用bbed修改文件头scn实现online(<a href="//www.xifenfei.com/3332.html" title="使用bbed让rac中的sysaux数据文件online" target="_blank">使用bbed让rac中的sysaux数据文件online</a>),也可以通过使用_allow_resetlogs_corruption等隐含参数实现online.本恢复案例中有180个数据文件,160个offline,然后open数据库,所以大量数据文件无法正常online,bbed工作量太大.在恢复过程中不幸遇到ORA-01248<br />
<br />
<strong>数据库resetlogs出现ORA-01248错误</strong></p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt; alter database open resetlogs;
alter database open resetlogs
*
ERROR at line 1:
ORA-01248: file 5 was created in the future of incomplete recovery
ORA-01110: data file 5: 'F:\TTDATA\PUBRTS.DAT'
</pre>
<p><strong>alert日志记录</strong></p>
<pre class="brush: bash; title: ; notranslate">
Fri Oct 10 15:09:26 2014
alter database open resetlogs
Fri Oct 10 15:09:26 2014
RESETLOGS is being done without consistancy checks. This may result
in a corrupted database. The database should be recreated.
ORA-1248 signalled during: alter database open resetlogs...
Fri Oct 10 15:15:22 2014
alter database open
Fri Oct 10 15:15:22 2014
ORA-1589 signalled during: alter database open...
Fri Oct 10 15:15:30 2014
alter database  open resetlogs
RESETLOGS is being done without consistancy checks. This may result
in a corrupted database. The database should be recreated.
ORA-1248 signalled during: alter database  open resetlogs...
</pre>
<p><strong>尝试offline文件然后resetlogs</strong></p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt;ALTER DATABASE DATAFILE 5  OFFLINE;

Database altered.


sql&gt;ALTER DATABASE OPEN RESETLOGS；

ERROR at line 1:
ORA-01245: ffline file 5 will be lost if resetlogs is done
ORA-01110: data file 5: 'F:\TTDATA\PUBRTS.DAT'
</pre>
<p><strong>alert日志</strong></p>
<pre class="brush: bash; title: ; notranslate">
Fri Oct 10 15:19:37 2014
ALTER DATABASE DATAFILE 5 offline
Fri Oct 10 15:19:37 2014
Completed: ALTER DATABASE DATAFILE 5 offline
Fri Oct 10 15:19:40 2014
alter database open resetlogs
RESETLOGS is being done without consistancy checks. This may result
in a corrupted database. The database should be recreated.
ORA-1245 signalled during: alter database open resetlogs...
</pre>
<p>出现该错误原因是由于数据库是非归档模式,offline数据文件需要使用offline drop</p>
<pre class="brush: bash; title: ; notranslate">
Fri Oct 10 15:22:16 2014
alter database datafile 5 offline drop
Fri Oct 10 15:22:17 2014
Completed: alter database datafile 5 offline drop
Fri Oct 10 15:23:13 2014
alter database open resetlogs
Fri Oct 10 15:23:14 2014
Fri Oct 10 15:23:49 2014
RESETLOGS after complete recovery through change 1422423346
Resetting resetlogs activation ID 3503292347 (0xd0cfffbb)
Fri Oct 10 15:24:01 2014
Setting recovery target incarnation to 3
Fri Oct 10 15:24:04 2014
Assigning activation ID 3649065262 (0xd980512e)
LGWR: STARTING ARCH PROCESSES
ARC0 started with pid=23, OS id=3772
Fri Oct 10 15:24:04 2014
ARC0: Archival started
ARC1: Archival started
LGWR: STARTING ARCH PROCESSES COMPLETE
ARC1 started with pid=24, OS id=3668
Fri Oct 10 15:24:05 2014
Thread 1 opened at log sequence 1
  Current log# 1 seq# 1 mem# 0: D:\ORACLE\PRODUCT\10.2.0\ORADATA\CLTTDB\REDO01.LOG
Successful open of redo thread 1
Fri Oct 10 15:24:05 2014
MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
Fri Oct 10 15:24:05 2014
ARC0: STARTING ARCH PROCESSES
ARC2: Archival started
ARC0: STARTING ARCH PROCESSES COMPLETE
ARC0: Becoming the 'no FAL' ARCH
ARC2 started with pid=25, OS id=636
Fri Oct 10 15:24:06 2014
ARC0: Becoming the 'no SRL' ARCH
Fri Oct 10 15:24:06 2014
ARC1: Becoming the heartbeat ARCH
Fri Oct 10 15:24:06 2014
SMON: enabling cache recovery
Fri Oct 10 15:24:07 2014
Successfully onlined Undo Tablespace 1.
Dictionary check beginning
File #5 is offline, but is part of an online tablespace.
data file 5: 'F:\TTDATA\PUBRTS.DAT'
Dictionary check complete
Fri Oct 10 15:24:19 2014
SMON: enabling tx recovery
Fri Oct 10 15:24:19 2014
Database Characterset is ZHS16GBK
replication_dependency_tracking turned off (no async multimaster replication found)
Starting background process QMNC
QMNC started with pid=26, OS id=868
Fri Oct 10 15:24:21 2014
LOGSTDBY: Validating controlfile with logical metadata
Fri Oct 10 15:24:21 2014
LOGSTDBY: Validation complete
Completed: alter database open resetlogs
</pre>
<p>open成功后,再次resetlogs库,实现数据文件online</p>
<pre class="brush: bash; title: ; notranslate">
Fri Oct 10 15:28:44 2014
ALTER DATABASE DATAFILE 5 online
Fri Oct 10 15:28:44 2014
Completed: ALTER DATABASE DATAFILE 5 online
Fri Oct 10 15:31:46 2014
alter database open resetlogs
Fri Oct 10 15:31:46 2014
RESETLOGS is being done without consistancy checks. This may result
in a corrupted database. The database should be recreated.
Setting recovery target incarnation to 4
Fri Oct 10 15:32:00 2014
Assigning activation ID 3649091231 (0xd980b69f)
LGWR: STARTING ARCH PROCESSES
ARC0 started with pid=23, OS id=700
Fri Oct 10 15:32:00 2014
ARC0: Archival started
ARC1: Archival started
LGWR: STARTING ARCH PROCESSES COMPLETE
ARC1 started with pid=24, OS id=3360
Fri Oct 10 15:32:01 2014
Thread 1 opened at log sequence 1
  Current log# 1 seq# 1 mem# 0: D:\ORACLE\PRODUCT\10.2.0\ORADATA\CLTTDB\REDO01.LOG
Successful open of redo thread 1
Fri Oct 10 15:32:01 2014
MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
Fri Oct 10 15:32:01 2014
ARC0: STARTING ARCH PROCESSES
ARC2: Archival started
ARC0: STARTING ARCH PROCESSES COMPLETE
ARC0: Becoming the 'no FAL' ARCH
ARC2 started with pid=25, OS id=2016
Fri Oct 10 15:32:02 2014
ARC0: Becoming the 'no SRL' ARCH
Fri Oct 10 15:32:02 2014
ARC1: Becoming the heartbeat ARCH
Fri Oct 10 15:32:02 2014
SMON: enabling cache recovery
Fri Oct 10 15:32:03 2014
Successfully onlined Undo Tablespace 1.
Dictionary check beginning
Fri Oct 10 15:32:15 2014
Dictionary check complete
Fri Oct 10 15:32:15 2014
SMON: enabling tx recovery
Fri Oct 10 15:32:15 2014
Database Characterset is ZHS16GBK
replication_dependency_tracking turned off (no async multimaster replication found)
Starting background process QMNC
QMNC started with pid=26, OS id=256
Fri Oct 10 15:32:17 2014
LOGSTDBY: Validating controlfile with logical metadata
Fri Oct 10 15:32:17 2014
LOGSTDBY: Validation complete
Completed: alter database open resetlogs
</pre>
<div id="crp_related"><ul><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/08/%e5%8f%88%e4%b8%80%e8%b5%b7%e5%ad%98%e5%82%a8%e6%95%85%e9%9a%9c%e5%af%bc%e8%87%b4ora-00333-ora-00312%e6%81%a2%e5%a4%8d.html" rel="bookmark" class="crp_title">又一起存储故障导致ORA-00333 ORA-00312恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2014/07/%e8%af%afdrop-tablespace%e5%90%8e%e4%bd%bf%e7%94%a8flashback-database%e9%97%aa%e5%9b%9e%e5%bc%82%e5%b8%b8%e5%a4%84%e7%90%86.html" rel="bookmark" class="crp_title">误drop tablespace后使用flashback database闪回异常处理</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/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" rel="bookmark" class="crp_title">数据库恢复历史再次刷新到Oracle 7.3.2版本&#8212;redo异常恢复</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/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/2019/02/ora-01205-recovery.html" rel="bookmark" class="crp_title">ORA-01205: not a data file &#8211; type number in header is 0</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2025/05/ora-01171.html" rel="bookmark" class="crp_title">ORA-01171: datafile N going offline due to error advancing checkpoint</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/2014/05/%e6%95%b0%e6%8d%ae%e5%ba%93%e6%81%a2%e5%a4%8d%e9%81%ad%e9%81%87ora-006003705.html" rel="bookmark" class="crp_title">数据库恢复遭遇ORA-00600[3705]</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2014/07/%e6%95%b0%e6%8d%ae%e6%96%87%e4%bb%b6%e7%9a%84%e4%b8%89%e4%b8%aa%e5%88%9b%e5%bb%ba%e4%b8%80%e7%82%b9%e7%82%b9%e6%8e%a2%e8%ae%a8.html" rel="bookmark" class="crp_title">数据文件的三个创建SCN一点点探讨</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>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/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ORA-600 2663 故障恢复</title>
		<link>https://www.xifenfei.com/2014/09/ora-600-2663-%e6%95%85%e9%9a%9c%e6%81%a2%e5%a4%8d.html</link>
		<comments>https://www.xifenfei.com/2014/09/ora-600-2663-%e6%95%85%e9%9a%9c%e6%81%a2%e5%a4%8d.html#comments</comments>
		<pubDate>Tue, 23 Sep 2014 14:52:07 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[Oracle备份恢复]]></category>
		<category><![CDATA[ORA-30012]]></category>
		<category><![CDATA[ORA-600 2663]]></category>
		<category><![CDATA[oracle异常恢复]]></category>
		<category><![CDATA[ORACLE恢复]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=5512</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2014/09/ora-600-2663-%e6%95%85%e9%9a%9c%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/09/ora-600-2663-%e6%95%85%e9%9a%9c%e6%81%a2%e5%a4%8d.html" target="_blank">ORA-600 2663 故障恢复</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>朋友数据库启动遭遇ORA-00600[2663]</p>
<pre class="brush: bash; title: ; notranslate">
Mon Sep 22 19:24:20 2014
Thread 1 advanced to log sequence 17 (thread open)
Thread 1 opened at log sequence 17
  Current log# 17 seq# 17 mem# 0: /u02/orayali2/redo17.log
Successful open of redo thread 1
MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
Mon Sep 22 19:24:20 2014
SMON: enabling cache recovery
Errors in file /u01/app/oracle/diag/rdbms/orayali2/orayali2/trace/orayali2_ora_20722.trc  (incident=336180):
ORA-00600: internal error code, arguments: [2663], [13], [3140023138], [13], [3141216403], [], [], [], [], [], [], []
Incident details in: /u01/app/oracle/diag/rdbms/orayali2/orayali2/incident/incdir_336180/orayali2_ora_20722_i336180.trc
Use ADRCI or Support Workbench to package the incident.
See Note 411.1 at My Oracle Support for error and packaging details.
Errors in file /u01/app/oracle/diag/rdbms/orayali2/orayali2/trace/orayali2_ora_20722.trc:
ORA-00600: internal error code, arguments: [2663], [13], [3140023138], [13], [3141216403], [], [], [], [], [], [], []
Errors in file /u01/app/oracle/diag/rdbms/orayali2/orayali2/trace/orayali2_ora_20722.trc:
ORA-00600: internal error code, arguments: [2663], [13], [3140023138], [13], [3141216403], [], [], [], [], [], [], []
Error 600 happened during db open, shutting down database
USER (ospid: 20722): terminating the instance due to error 600
Instance terminated by USER, pid = 20722
ORA-1092 signalled during: alter database open...
opiodr aborting process unknown ospid (20722) as a result of ORA-1092
Mon Sep 22 19:24:24 2014
ORA-1092 : opitsk aborting process
</pre>
<p>ORA-600[2663]与常见的ORA-600[2662]类似,都是由于block的scn大于文件头的scn导致,只不过错误的对象不一样而已.对于该类问题,我们的处理方法一般就是简单的推scn</p>
<pre class="brush: sql; title: ; notranslate">
[oracle@orayali2 OPatch]$ uname -a
Linux orayali2 2.6.32-279.el6.x86_64 #1 SMP Wed Jun 13 18:24:36 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux

[oracle@orayali2 OPatch]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.3.0 Production on Mon Sep 22 19:09:18 2014

Copyright (c) 1982, 2011, Oracle.  All rights reserved.

Connected to an idle instance.

SQL&gt; startup mount
ORACLE instance started.

Total System Global Area 1.6535E+10 bytes
Fixed Size                  2244792 bytes
Variable Size            9898561352 bytes
Database Buffers         6610223104 bytes
Redo Buffers               24256512 bytes
Database mounted.
SQL&gt; alter database open;
alter database open
*
ERROR at line 1:
ORA-01092: ORACLE instance terminated. Disconnection forced
ORA-30012: undo tablespace 'SYSTEM' does not exist or of wrong type
Process ID: 21174
Session ID: 1563 Serial number: 3
</pre>
<p>现在错误已经改变,而是出现了ORA-30012的错误</p>
<pre class="brush: bash; title: ; notranslate">
alter database open
Beginning crash recovery of 1 threads
 parallel recovery started with 31 processes
Started redo scan
Completed redo scan
 read 4 KB redo, 0 data blocks need recovery
Started redo application at
 Thread 1: logseq 17, block 2, scn 58974597984
Recovery of Online Redo Log: Thread 1 Group 17 Seq 17 Reading mem 0
  Mem# 0: /u02/orayali2/redo17.log
Completed redo application of 0.00MB
Completed crash recovery at
 Thread 1: logseq 17, block 3, scn 58974617986
 0 data blocks read, 0 data blocks written, 4 redo k-bytes read
Mon Sep 22 19:30:05 2014
Thread 1 advanced to log sequence 18 (thread open)
Thread 1 opened at log sequence 18
  Current log# 18 seq# 18 mem# 0: /u02/orayali2/redo18.log
Successful open of redo thread 1
MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
Mon Sep 22 19:30:05 2014
SMON: enabling cache recovery
Undo initialization errored: err:30012 serial:0 start:1143146928 end:1143147338 diff:410 (4 seconds)
Errors in file /u01/app/oracle/diag/rdbms/orayali2/orayali2/trace/orayali2_ora_21174.trc:
ORA-30012: undo tablespace 'SYSTEM' does not exist or of wrong type
Errors in file /u01/app/oracle/diag/rdbms/orayali2/orayali2/trace/orayali2_ora_21174.trc:
ORA-30012: undo tablespace 'SYSTEM' does not exist or of wrong type
Error 30012 happened during db open, shutting down database
USER (ospid: 21174): terminating the instance due to error 30012
Instance terminated by USER, pid = 21174
ORA-1092 signalled during: alter database open...
opiodr aborting process unknown ospid (21174) as a result of ORA-1092
Mon Sep 22 19:30:08 2014
ORA-1092 : opitsk aborting process
</pre>
<p>猜测原因是undo设置有问题导致,检查果然发现undo_management=auto,而undo_tablespace=SYSTEM</p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt; startup mount
ORACLE instance started.

Total System Global Area 1.6535E+10 bytes
Fixed Size                  2244792 bytes
Variable Size            9898561352 bytes
Database Buffers         6610223104 bytes
Redo Buffers               24256512 bytes
Database mounted.
SQL&gt; show parameter undo;

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
undo_management                      string      AUTO
undo_retention                       integer     10800
undo_tablespace                      string      SYSTEM
SQL&gt; alter system set undo_management=manual scope=spfile;

System altered.
SQL&gt; shutdown immediate;
ORA-01109: database not open


Database dismounted.
ORACLE instance shut down.
SQL&gt; startup
ORACLE instance started.

Total System Global Area 1.6535E+10 bytes
Fixed Size                  2244792 bytes
Variable Size            9898561352 bytes
Database Buffers         6610223104 bytes
Redo Buffers               24256512 bytes
Database mounted.
Database opened.
</pre>
<p>解决该问题修改undo_management=manual即可</p>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2019/01/tab-recovery-error.html" rel="bookmark" class="crp_title">tab$恢复错误汇总</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2025/10/ora-600-kokasgi1-rename-sys.html" rel="bookmark" class="crp_title">ORA-600 kokasgi1故障处理(sys被重命名)</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2026/01/patch_scn-ora-600-2663.html" rel="bookmark" class="crp_title">Patch_SCN快速解决ORA-600 2663故障</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2025/12/bootstrap-tool-recovery-ora-702.html" rel="bookmark" class="crp_title">一键恢复ORA-00704 ORA-00702故障&#8212;202512</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2024/01/ora-600-kcrf_resilver_log_1.html" rel="bookmark" class="crp_title">ORA-600 kcrf_resilver_log_1故障处理</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2014/07/ora-0060017182ora-0060025027ora-00600kghfremptyds%e6%95%85%e9%9a%9c%e5%a4%84%e7%90%86.html" rel="bookmark" class="crp_title">ORA-00600[17182],ORA-00600[25027],ORA-00600[kghfrempty:ds]故障处理</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2023/04/ora-600-kcbgtcr_13.html" rel="bookmark" class="crp_title">数据库启动报ORA-600 kcbgtcr_13处理</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2020/12/ora-00600-2662-ora-600-4194.html" rel="bookmark" class="crp_title">ORA-00600 [2662]和ORA-00600 [4194]恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2018/04/ora-00704-ora-00702.html" rel="bookmark" class="crp_title">ORA-00702: bootstrap verison &#8221; inconsistent with version &#8217;8.0.0.0.0&#8242;</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2014/11/redo%e5%bc%82%e5%b8%b8-ora-600-kclchkblk_4-%e6%95%85%e9%9a%9c%e6%81%a2%e5%a4%8d.html" rel="bookmark" class="crp_title">redo异常 ORA-600 kclchkblk_4 故障恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2024/01/ora-600-4193-recovery.html" rel="bookmark" class="crp_title">ORA-00600: internal error code, arguments: [4193], [35191], [35263]</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2021/04/raid-force-online-database-recovery.html" rel="bookmark" class="crp_title">raid强制上线后数据库无法启动故障处理</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2014/09/ora-600-2663-%e6%95%85%e9%9a%9c%e6%81%a2%e5%a4%8d.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>某集团ebs数据库redo undo丢失导致悲剧</title>
		<link>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</link>
		<comments>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#comments</comments>
		<pubDate>Thu, 31 Jul 2014 13:37:55 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[Oracle备份恢复]]></category>
		<category><![CDATA[非常规恢复]]></category>
		<category><![CDATA[ebs恢复]]></category>
		<category><![CDATA[kcfrbd_3]]></category>
		<category><![CDATA[kdsgrp1]]></category>
		<category><![CDATA[ORA-01555]]></category>
		<category><![CDATA[ORA-600 4097]]></category>
		<category><![CDATA[ORA-600 kcfrbd_3]]></category>
		<category><![CDATA[ORA-600 kdsgrp1]]></category>
		<category><![CDATA[oracle异常恢复]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=5440</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <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">继续阅读 <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/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" target="_blank">某集团ebs数据库redo undo丢失导致悲剧</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>某集团的ebs系统因磁盘空间不足把redo和undo存放到raid 0之上，而且该库无任何备份。最终悲剧发生了,raid 0异常导致redo undo全部丢失,数据库无法正常启动(我接手之时数据库已经resetlogs过,但是未成功)</p>
<pre class="brush: bash; title: ; notranslate">
Sun Jul 27 11:31:27 2014
SMON: enabling cache recovery
SMON: enabling tx recovery
Sun Jul 27 11:31:27 2014
Database Characterset is ZHS16GBK
Sun Jul 27 11:31:27 2014
Errors in file /prod/oracle/PROD/db/tech_st/10.2.0/admin/PROD_erpserver/bdump/prod_smon_454754.trc:
ORA-00604: error occurred at recursive SQL level 1
ORA-00376: file 42 cannot be read at this time
ORA-01110: data file 42: '/prod/oracle/PROD/logdata/undo/undo1.dbf'
Sun Jul 27 11:31:27 2014
Errors in file /prod/oracle/PROD/db/tech_st/10.2.0/admin/PROD_erpserver/bdump/prod_smon_454754.trc:
ORA-00604: error occurred at recursive SQL level 1
ORA-00376: file 42 cannot be read at this time
ORA-01110: data file 42: '/prod/oracle/PROD/logdata/undo/undo1.dbf'
Sun Jul 27 11:31:27 2014
Errors in file /prod/oracle/PROD/db/tech_st/10.2.0/admin/PROD_erpserver/bdump/prod_smon_454754.trc:
ORA-00604: error occurred at recursive SQL level 1
ORA-00376: file 42 cannot be read at this time
ORA-01110: data file 42: '/prod/oracle/PROD/logdata/undo/undo1.dbf'
Sun Jul 27 11:31:27 2014
Errors in file /prod/oracle/PROD/db/tech_st/10.2.0/admin/PROD_erpserver/udump/prod_ora_663670.trc:
ORA-00604: error occurred at recursive SQL level 1
ORA-00376: file 41 cannot be read at this time
ORA-01110: data file 41: '/prod/oracle/PROD/logdata/undo/undo2.dbf'
Error 604 happened during db open, shutting down database
USER: terminating instance due to error 604
Instance terminated by USER, pid = 663670
ORA-1092 signalled during: ALTER DATABASE OPEN...
</pre>
<p>查询相关文件状态发现,undo表空间文件丢失,被offline处理<br />
<img src="//www.xifenfei.com/wp-content/uploads/2014/07/df_status.jpg" alt="df_status" width="845" height="307" class="alignleft size-full wp-image-5441" /><br />
因为以前alert日志被清理,通过这里大概猜测是offline丢失的undo文件,然后resetlogs了数据库,现在处理方式为<br />
使用_corrupted_rollback_segments屏蔽回滚段,然后尝试启动数据库</p>
<pre class="brush: bash; title: ; notranslate">
Tue Jul 29 11:40:39 2014
SMON: enabling cache recovery
SMON: enabling tx recovery
Tue Jul 29 11:40:39 2014
Database Characterset is ZHS16GBK
Tue Jul 29 11:40:39 2014
Errors in file /prod/oracle/PROD/db/tech_st/10.2.0/admin/PROD_erpserver/bdump/prod_smon_569378.trc:
ORA-00604: error occurred at recursive SQL level 1
ORA-01555: snapshot too old: rollback segment number  with name &quot;&quot; too small
Tue Jul 29 11:40:39 2014
Errors in file /prod/oracle/PROD/db/tech_st/10.2.0/admin/PROD_erpserver/bdump/prod_smon_569378.trc:
ORA-00604: error occurred at recursive SQL level 1
ORA-01555: snapshot too old: rollback segment number  with name &quot;&quot; too small
Tue Jul 29 11:40:39 2014
Errors in file /prod/oracle/PROD/db/tech_st/10.2.0/admin/PROD_erpserver/bdump/prod_smon_569378.trc:
ORA-00604: error occurred at recursive SQL level 1
ORA-01555: snapshot too old: rollback segment number  with name &quot;&quot; too small
Tue Jul 29 11:40:39 2014
Errors in file /prod/oracle/PROD/db/tech_st/10.2.0/admin/PROD_erpserver/udump/prod_ora_585786.trc:
ORA-00604: error occurred at recursive SQL level 1
ORA-01555: snapshot too old: rollback segment number  with name &quot;&quot; too small
Error 604 happened during db open, shutting down database
USER: terminating instance due to error 604
Instance terminated by USER, pid = 585786
ORA-1092 signalled during: alter database open...
</pre>
<p>该错误是由于数据库启动需要找到对应的回滚段,但是由于undo异常导致该回滚段无法找到，因此出现该错误，解决方法是通过修改数据scn，让其不找回滚段,从而屏蔽该错误.数据库启动后,删除undo重新创建新undo</p>
<pre class="brush: bash; title: ; notranslate">
Tue Jul 29 15:59:22 2014
drop tablespace undo2 including contents and datafiles
Tue Jul 29 15:59:23 2014
Errors in file /prod/oracle/PROD/db/tech_st/10.2.0/admin/PROD_erpserver/udump/prod_ora_782490.trc:
ORA-01122: database file 41 failed verification check
ORA-01110: data file 41: '/prod/oracle/PROD/logdata/undo/undo2.dbf'
ORA-01565: error in identifying file '/prod/oracle/PROD/logdata/undo/undo2.dbf'
ORA-27037: unable to obtain file status
IBM AIX RISC System/6000 Error: 2: No such file or directory
Additional information: 3
Tue Jul 29 15:59:23 2014
Errors in file /prod/oracle/PROD/db/tech_st/10.2.0/admin/PROD_erpserver/udump/prod_ora_782490.trc:
ORA-01259: unable to delete datafile /prod/oracle/PROD/logdata/undo/undo2.dbf
Tue Jul 29 15:59:23 2014
Errors in file /prod/oracle/PROD/db/tech_st/10.2.0/admin/PROD_erpserver/udump/prod_ora_782490.trc:
ORA-01122: database file 42 failed verification check
ORA-01110: data file 42: '/prod/oracle/PROD/logdata/undo/undo1.dbf'
ORA-01565: error in identifying file '/prod/oracle/PROD/logdata/undo/undo1.dbf'
ORA-27037: unable to obtain file status
IBM AIX RISC System/6000 Error: 2: No such file or directory
Additional information: 3
ORA-01259: unable to delete datafile /prod/oracle/PROD/logdata/undo/undo2.dbf
Tue Jul 29 15:59:23 2014
Errors in file /prod/oracle/PROD/db/tech_st/10.2.0/admin/PROD_erpserver/udump/prod_ora_782490.trc:
ORA-01259: unable to delete datafile /prod/oracle/PROD/logdata/undo/undo1.dbf
Tue Jul 29 15:59:23 2014
Completed: drop tablespace undo2 including contents and datafiles
Tue Jul 29 15:59:56 2014
create undo tablespace undotbs1 datafile '/prod/oracle/PROD/logdata/undo_new01.dbf' size 100M autoextend on next 128M maxsize 30G
Tue Jul 29 15:59:57 2014
Completed: create undo tablespace undotbs1 datafile '/prod/oracle/PROD/logdata/undo_new01.dbf' size 100M autoextend on next 128M maxsize 30G
Tue Jul 29 16:00:03 2014
alter tablespace undotbs1 add datafile '/prod/oracle/PROD/logdata/undo_new02.dbf' size 100M autoextend on next 128M maxsize 30G
Completed: alter tablespace undotbs1 add datafile '/prod/oracle/PROD/logdata/undo_new02.dbf' size 100M autoextend on next 128M maxsize 30G
</pre>
<p>业务运行过程中,数据库报大量ORA-600 4097,ORA-600 kdsgrp1,ORA-600 kcfrbd_3错误</p>
<pre class="brush: bash; title: ; notranslate">
Tue Jul 29 16:07:03 2014
Errors in file /prod/oracle/PROD/db/tech_st/10.2.0/admin/PROD_erpserver/udump/prod_ora_950484.trc:
ORA-00600: internal error code, arguments: [4097], [], [], [], [], [], [], []
Tue Jul 29 16:07:06 2014
Errors in file /prod/oracle/PROD/db/tech_st/10.2.0/admin/PROD_erpserver/udump/prod_ora_950484.trc:
ORA-00600: internal error code, arguments: [kdsgrp1], [], [], [], [], [], [], []
Tue Jul 29 16:10:06 2014
Errors in file /prod/oracle/PROD/db/tech_st/10.2.0/admin/PROD_erpserver/udump/prod_ora_917702.trc:
ORA-00600: internal error code, arguments: [4097], [], [], [], [], [], [], []
Tue Jul 29 16:10:07 2014
Errors in file /prod/oracle/PROD/db/tech_st/10.2.0/admin/PROD_erpserver/udump/prod_ora_917702.trc:
ORA-00600: internal error code, arguments: [kdsgrp1], [], [], [], [], [], [], []
Tue Jul 29 16:12:45 2014
Errors in file /prod/oracle/PROD/db/tech_st/10.2.0/admin/PROD_erpserver/bdump/prod_m000_880692.trc:
ORA-00600: internal error code, arguments: [4097], [], [], [], [], [], [], []
Tue Jul 29 16:21:23 2014
Errors in file /prod/oracle/PROD/db/tech_st/10.2.0/admin/PROD_erpserver/udump/prod_ora_1040638.trc:
ORA-00600: 内部错误代码, 参数: [kcfrbd_3], [41], [231381], [1], [12800], [12800], [], []
Tue Jul 29 16:21:37 2014
Errors in file /prod/oracle/PROD/db/tech_st/10.2.0/admin/PROD_erpserver/udump/prod_ora_1040638.trc:
ORA-00600: 内部错误代码, 参数: [kcfrbd_3], [41], [231381], [1], [12800], [12800], [], []
Tue Jul 29 16:21:56 2014
Errors in file /prod/oracle/PROD/db/tech_st/10.2.0/admin/PROD_erpserver/udump/prod_ora_1040638.trc:
ORA-00600: 内部错误代码, 参数: [kcfrbd_3], [41], [231381], [1], [12800], [12800], [], []
Tue Jul 29 16:22:18 2014
Errors in file /prod/oracle/PROD/db/tech_st/10.2.0/admin/PROD_erpserver/udump/prod_ora_1040638.trc:
ORA-00600: 内部错误代码, 参数: [kcfrbd_3], [41], [231381], [1], [12800], [12800], [], []
Tue Jul 29 16:22:28 2014
Errors in file /prod/oracle/PROD/db/tech_st/10.2.0/admin/PROD_erpserver/udump/prod_ora_1105950.trc:
ORA-00600: 内部错误代码, 参数: [4097], [], [], [], [], [], [], []
Tue Jul 29 16:22:33 2014
Errors in file /prod/oracle/PROD/db/tech_st/10.2.0/admin/PROD_erpserver/udump/prod_ora_1159232.trc:
ORA-00600: 内部错误代码, 参数: [kcfrbd_3], [42], [61235], [1], [12800], [12800], [], []
</pre>
<p>出现该错误有几个原因和解决方法：<br />
ORA-600 kdsgrp1 是因为相关坏块引起(tab,index,memory,cr block等),结合日志分析对象异常原因,根据具体情况确定对象然后选择合适处理方案(具体参考NOTE:1332252.1)<br />
ORA-600 4097 由于数据库异常关闭然后open,创建回滚段,可能触发bug导致该问题(虽然说在当前版本修复,但是实际处理我确实按照NOTE:1030620.6解决)<br />
ORA-600 kcfrbd_3 有事务的block被访问之后,根据回滚槽信息定位到相关回滚段,而正好新建的回滚段信息又和以前的名字编号一致,从而反馈出来是数据文件大小不够,从而出现该错误(具体参考NOTE:601798.1)<br />
最终该数据库虽然恢复了,抢救了大量数据,但是对于ebs系统来说,丢失redo和undo数据的损失还是巨大的.再次温馨提示:<strong>数据库的redo,undo也很重要,数据库的备份更加重要</strong></p>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2014/12/%e4%b8%bb%e6%9c%ba%e6%96%ad%e7%94%b5%e7%b3%bb%e7%bb%9f%e5%9b%9e%e5%88%b0n%e5%b9%b4%e5%89%8d%e6%95%b0%e6%8d%ae%e5%ba%93%e6%8a%a5ora-600-kcm_headroom_warn_1%e9%94%99%e8%af%af.html" rel="bookmark" class="crp_title">主机断电系统回到N年前数据库报ORA-600 kcm_headroom_warn_1错误</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2014/03/undo%e5%bc%82%e5%b8%b8%e6%80%bb%e7%bb%93%e5%92%8c%e6%81%a2%e5%a4%8d%e6%80%9d%e8%b7%af.html" rel="bookmark" class="crp_title">undo异常总结和恢复思路</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2014/06/%e8%ae%b0%e5%bd%95%e4%b8%80%e6%ac%a1ora-00600kdxlinpsno-out-of-rangeora-006003020ora-006004000ora-006004193%e7%9a%84%e6%95%b0%e6%8d%ae%e5%ba%93%e6%81%a2%e5%a4%8d.html" rel="bookmark" class="crp_title">记录一次ORA-00600[kdxlin:psno out of range]/ORA-00600[3020]/ORA-00600[4000]/ORA-00600[4193]的数据库恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2014/05/ora-27086-skgfglk-unable-to-lock-file-already-in-use.html" rel="bookmark" class="crp_title">ORA-27086: skgfglk: unable to lock file &#8211; already in use</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2023/05/oracle-9i-recovery.html" rel="bookmark" class="crp_title">难见的oracle 9i恢复&#8212;2023年</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2014/02/%e8%ae%b0%e5%bd%95%e4%b8%80%e6%ac%a1ora-00316-ora-00312-redo%e5%bc%82%e5%b8%b8%e6%81%a2%e5%a4%8d.html" rel="bookmark" class="crp_title">记录一次ORA-00316 ORA-00312 redo异常恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2024/09/ora-12514-tns-%e7%9b%91%e5%90%ac%e8%bf%9b%e7%a8%8b%e4%b8%8d%e8%83%bd%e8%a7%a3%e6%9e%90%e5%9c%a8%e8%bf%9e%e6%8e%a5%e6%8f%8f%e8%bf%b0%e7%ac%a6%e4%b8%ad%e7%bb%99%e5%87%ba%e7%9a%84service_name.html" rel="bookmark" class="crp_title">ORA-12514: TNS: 监听进程不能解析在连接描述符中给出的SERVICE_NAME</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2014/07/%e6%95%b0%e6%8d%ae%e5%ba%93%e5%90%af%e5%8a%a8ora-08103%e6%95%85%e9%9a%9c%e6%81%a2%e5%a4%8d.html" rel="bookmark" class="crp_title">数据库启动ORA-08103故障恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2014/02/oracle-redo%e5%90%84%e7%a7%8d%e5%bc%82%e5%b8%b8%e6%81%a2%e5%a4%8d.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/2012/05/%e8%ae%b0%e5%bd%95%e4%b8%80%e6%ac%a1%e6%af%94%e8%be%83%e6%a3%98%e6%89%8b%e6%95%b0%e6%8d%ae%e5%ba%93%e6%81%a2%e5%a4%8d%e8%a6%81%e7%82%b9.html" rel="bookmark" class="crp_title">记录一次比较棘手数据库恢复要点</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/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></ul></div>]]></content:encoded>
			<wfw:commentRss>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/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>undo异常总结和恢复思路</title>
		<link>https://www.xifenfei.com/2014/03/undo%e5%bc%82%e5%b8%b8%e6%80%bb%e7%bb%93%e5%92%8c%e6%81%a2%e5%a4%8d%e6%80%9d%e8%b7%af.html</link>
		<comments>https://www.xifenfei.com/2014/03/undo%e5%bc%82%e5%b8%b8%e6%80%bb%e7%bb%93%e5%92%8c%e6%81%a2%e5%a4%8d%e6%80%9d%e8%b7%af.html#comments</comments>
		<pubDate>Wed, 12 Mar 2014 13:42:10 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[Oracle备份恢复]]></category>
		<category><![CDATA[ORA-00376]]></category>
		<category><![CDATA[ORA-00704]]></category>
		<category><![CDATA[ORA-01595]]></category>
		<category><![CDATA[ORA-600 4000]]></category>
		<category><![CDATA[ORA-600 4097]]></category>
		<category><![CDATA[ORA-600 4193]]></category>
		<category><![CDATA[ORA-600 4194]]></category>
		<category><![CDATA[ORA-6004137]]></category>
		<category><![CDATA[oracle异常恢复]]></category>
		<category><![CDATA[ORACLE恢复]]></category>
		<category><![CDATA[undo异常]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=5191</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2014/03/undo%e5%bc%82%e5%b8%b8%e6%80%bb%e7%bb%93%e5%92%8c%e6%81%a2%e5%a4%8d%e6%80%9d%e8%b7%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/03/undo%e5%bc%82%e5%b8%b8%e6%80%bb%e7%bb%93%e5%92%8c%e6%81%a2%e5%a4%8d%e6%80%9d%e8%b7%af.html" target="_blank">undo异常总结和恢复思路</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>UNDO异常报错千奇百怪,针对本人遇到的比较常见的undo异常报错进行汇总，仅供参考，数据库恢复过程是千奇百怪的，不能照搬硬套.<br />
<strong>ORA-00704/ORA-00376</strong><br />
ORA-00704: bootstrap process failure<br />
ORA-00604: error occurred at recursive SQL level 2<br />
ORA-00376: file 3 cannot be read at this time<br />
ORA-01110: data file 3: &#8216;/u01/oracle/oradata/ora11g/undotbs01.dbf&#8217;<br />
Error 704 happened during db open, shutting down database<br />
USER (ospid: 17864): terminating the instance due to error 704<br />
Instance terminated by USER, pid = 17864<br />
ORA-1092 signalled during: alter database open&#8230;<br />
opiodr aborting process unknown ospid (17864) as a result of ORA-1092<br />
<br />
<strong>ORA-00600[4097]</strong><br />
Fri Aug 31 23:14:10 2012<br />
Errors in file /u01/oradata/orcl/bdump/orcl_smon_15589.trc:<br />
ORA-00600: internal error code, arguments: [4097], [], [], [], [], [], [], []<br />
Fri Aug 31 23:14:12 2012<br />
Non-fatal internal error happenned while SMON was doing logging scn->time mapping.<br />
SMON encountered 1 out of maximum 100 non-fatal internal errors.<br />
<br />
<strong>ORA-01595/ORA-00600[4194]</strong><br />
Fri Aug 31 23:14:14 2012<br />
Errors in file /u01/oradata/orcl/bdump/orcl_smon_15589.trc:<br />
ORA-01595: error freeing extent (2) of rollback segment (4))<br />
ORA-00607: Internal error occurred while making a change to a data block<br />
ORA-00600: internal error code, arguments: [4194], [48], [34], [], [], [], [], []<br />
<br />
<strong>0RA-00600[4193]</strong><br />
Tue Feb 14 09:35:34 2012<br />
Errors in file d:\oracle\product\10.2.0\admin\interlib\udump\interlib_ora_2824.trc:<br />
ORA-00603: ORACLE server session terminated by fatal error<br />
ORA-00600: internal error code, arguments: [4193], [2005], [2008], [], [], [], [], []<br />
<br />
<strong>ORA-00600[kcfrbd_3]</strong><br />
Wed Dec 05 10:26:35 2012<br />
SMON: enabling tx recovery<br />
Wed Dec 05 10:26:35 2012<br />
Database Characterset is ZHS16GBK<br />
Wed Dec 05 10:26:35 2012<br />
Errors in file d:\oracle\product\10.2.0\admin\orcl\bdump\orcl_smon_548.trc:<br />
ORA-00600: internal error code, arguments: [kcfrbd_3], [2], [2279045], [1], [2277120], [2277120], [], []<br />
SMON: terminating instance due to error 474<br />
<br />
<strong>ORA-00600[4137]</strong><br />
Fri Jul  6 18:00:40 2012<br />
SMON: ignoring slave err,downgrading to serial rollback<br />
Fri Jul  6 18:00:41 2012<br />
Errors in file /usr/local/oracle/admin/techdb/bdump/techdb_smon_16636.trc:<br />
ORA-00600: internal error code, arguments: [4137], [], [], [], [], [], [], []<br />
ORACLE Instance techdb (pid = 8) &#8211; Error 600 encountered while recovering transaction (3, 17).<br />
<br />
<strong>ORA-01595/ORA-01594</strong><br />
Sat May 12 21:54:17 2012<br />
Errors in file /oracle/app/admin/prmdb/bdump/prmdb2_smon_483522.trc:<br />
ORA-01595: error freeing extent (2) of rollback segment (19))<br />
ORA-01594: attempt to wrap into rollback segment (19) extent (2) which is being freed<br />
<br />
<strong>ORA-00704/ORA-01555</strong><br />
Fri May  4 21:04:21 2012<br />
select ctime, mtime, stime from obj$ where obj# = :1<br />
Fri May  4 21:04:21 2012<br />
Errors in file /oracle/admin/standdb/udump/perfdb_ora_1286288.trc:<br />
ORA-00704: bootstrap process failure<br />
ORA-00704: bootstrap process failure<br />
ORA-00604: error occurred at recursive SQL level 1<br />
ORA-01555: snapshot too old: rollback segment number 40 with name &#8220;_SYSSMU40$&#8221; too small<br />
Error 704 happened during db open, shutting down database<br />
USER: terminating instance due to error 704<br />
Instance terminated by USER, pid = 1286288<br />
ORA-1092 signalled during: alter database open resetlogs&#8230;<br />
<br />
<strong>ORA-00607/ORA-00600[4194]</strong><br />
Block recovery completed at rba 3994.5.16, scn 0.89979533<br />
Thu Jul 26 13:21:11 2012<br />
Errors in file /orasvr/admin/mispdata/udump/mispdata_ora_2865.trc:<br />
ORA-00604: error occurred at recursive SQL level 1<br />
ORA-00607: Internal error occurred while making a change to a data block<br />
ORA-00600: internal error code, arguments: [4194], [31], [2], [], [], [], [], []<br />
Error 604 happened during db open, shutting down database<br />
USER: terminating instance due to error 604<br />
Instance terminated by USER, pid = 2865<br />
ORA-1092 signalled during: ALTER DATABASE OPEN&#8230;<br />
<br />
<strong>ORA-00704/ORA-00600[4000]</strong><br />
Thu Feb 28 19:29:13 2013<br />
Errors in file /u1/PROD/prodora/db/tech_st/10.2.0/admin/PROD_oracle/udump/prod_ora_20989.trc:<br />
ORA-00704: bootstrap process failure<br />
ORA-00704: bootstrap process failure<br />
ORA-00600: internal error code, arguments: [4000], [50], [], [], [], [], [], []<br />
Thu Feb 28 19:29:13 2013<br />
Error 704 happened during db open, shutting down database<br />
USER: terminating instance due to error 704<br />
Instance terminated by USER, pid = 20989<br />
ORA-1092 signalled during: ALTER DATABASE OPEN RESETLOGS&#8230;<br />
<br />
<strong>undo异常恢复处理思路</strong><br />
除了极少数undo坏块,undo文件丢失外，大部分undo异常是因为redo未被正常进行前滚，从而导致undo回滚异常数据库无法open，解决此类问题，需要结合一般需要结合redo异常处理技巧在其中，一般undo异常处理思路<br />
1.切换undo_management= MANUAL尝试启动数据库，如果不成功进入2<br />
2.设置10513 等event尝试启动数据库，如果不成功进入3<br />
3.使用_offline_rollback_segments/_corrupted_rollback_segments屏蔽回滚段<br />
4.如果依然不能open数据库,考虑使用bbed工具提交事务，修改回滚段状态等操作<br />
5.如果依然还不能open数据库，考虑使用dul<br />
<br />
如果您按照上述步骤还不能解决,请联系我们,将为您<a href="//www.xifenfei.com/oracle_recover" title="Oracle数据库恢复技术支持" target="_blank">提供专业数据库技术支持</a><br />
<strong><font color="red" size=4>Phone:17813235971  &nbsp;&nbsp;   Q Q:107644445  &nbsp;&nbsp;  E-Mail:dba@xifenfei.com</font></strong><br />
<br />
<strong>姊妹篇</strong><br />
<a href="//www.xifenfei.com/5135.html" title="ORACLE REDO各种异常恢复" target="_blank">ORACLE REDO各种异常恢复</a><br />
<a href="//www.xifenfei.com/5107.html" title="ORACLE丢失各种文件导致数据库不能OPEN恢复" target="_blank">ORACLE丢失各种文件导致数据库不能OPEN恢复</a></p>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/05/%e8%ae%b0%e5%bd%95%e4%b8%80%e6%ac%a1%e6%af%94%e8%be%83%e6%a3%98%e6%89%8b%e6%95%b0%e6%8d%ae%e5%ba%93%e6%81%a2%e5%a4%8d%e8%a6%81%e7%82%b9.html" rel="bookmark" class="crp_title">记录一次比较棘手数据库恢复要点</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/02/ora-60041944193%e8%a7%a3%e5%86%b3.html" rel="bookmark" class="crp_title">ORA-600[4194]/[4193]解决</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2014/06/%e8%ae%b0%e5%bd%95%e4%b8%80%e6%ac%a1ora-00600kdxlinpsno-out-of-rangeora-006003020ora-006004000ora-006004193%e7%9a%84%e6%95%b0%e6%8d%ae%e5%ba%93%e6%81%a2%e5%a4%8d.html" rel="bookmark" class="crp_title">记录一次ORA-00600[kdxlin:psno out of range]/ORA-00600[3020]/ORA-00600[4000]/ORA-00600[4193]的数据库恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/09/ora-607ora-6004194%e4%b8%8d%e4%b8%80%e5%ae%9a%e6%98%af%e9%87%8d%e5%a4%a7%e7%81%be%e9%9a%be.html" rel="bookmark" class="crp_title">ORA-607/ORA-600[4194]不一定是重大灾难</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2024/03/ora-00600-16703-1403-4.html" rel="bookmark" class="crp_title">ORA-00600: internal error code, arguments: [16703], [1403], [4] 原因</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2019/01/ora-600-16703-1403-28.html" rel="bookmark" class="crp_title">10g数据库遭遇ORA-600 16703</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/07/undo-segment-header%e5%9d%8f%e5%9d%97%e5%bc%82%e5%b8%b8%e6%81%a2%e5%a4%8d.html" rel="bookmark" class="crp_title">undo segment header坏块异常恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2019/01/tab-recovery-error.html" rel="bookmark" class="crp_title">tab$恢复错误汇总</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/12/ora-00600kcfrbd_3%e6%95%85%e9%9a%9c%e8%a7%a3%e5%86%b3.html" rel="bookmark" class="crp_title">ORA-00600[kcfrbd_3]故障解决</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/05/rac-redo-log-file%e8%a2%ab%e6%84%8f%e5%a4%96%e8%a6%86%e7%9b%96%e6%95%b0%e6%8d%ae%e5%ba%93%e6%81%a2%e5%a4%8d.html" rel="bookmark" class="crp_title">rac redo log file被意外覆盖数据库恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2020/10/ora-600-6006.html" rel="bookmark" class="crp_title">ORA-00600: internal error code, arguments: [6006], [1], [], [], [], [], [], []</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2021/07/storage-cache-miss-oracle-recovery.html" rel="bookmark" class="crp_title">又一例存储cache丢失oracle数据库恢复</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2014/03/undo%e5%bc%82%e5%b8%b8%e6%80%bb%e7%bb%93%e5%92%8c%e6%81%a2%e5%a4%8d%e6%80%9d%e8%b7%af.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
