<?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; 200T数据库恢复</title>
	<atom:link href="https://www.xifenfei.com/tag/200t%e6%95%b0%e6%8d%ae%e5%ba%93%e6%81%a2%e5%a4%8d/feed" rel="self" type="application/rss+xml" />
	<link>https://www.xifenfei.com</link>
	<description>提供7*24专业数据库(Oracle,SQL Server,MySQL,PostgreSQL等)恢复和技术支持@Tel:17813235971</description>
	<lastBuildDate>Sun, 22 Nov 2026 15:21:14 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>200T 数据库非归档无备份恢复</title>
		<link>https://www.xifenfei.com/2024/08/200t-oracle-recovery-ora-01113-ora-01110.html</link>
		<comments>https://www.xifenfei.com/2024/08/200t-oracle-recovery-ora-01113-ora-01110.html#comments</comments>
		<pubDate>Wed, 14 Aug 2024 08:23:25 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[Oracle备份恢复]]></category>
		<category><![CDATA[200T数据库恢复]]></category>
		<category><![CDATA[ORA-01113 ORA-01110]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=10912</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2024/08/200t-oracle-recovery-ora-01113-ora-01110.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/2024/08/200t-oracle-recovery-ora-01113-ora-01110.html" target="_blank">200T 数据库非归档无备份恢复</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>一套近200T的,6个节点的RAC,由于存储管线链路不稳定,导致服务器经常性掉盘,引起asm 磁盘组频繁dismount/mount,数据库集群节点不停的重启,修复好链路问题之后,数据库启动报ORA-01113,ORA-01110<br />
<a href="https://www.xifenfei.com/wp-content/uploads/2024/08/ORA-01113-ORA-01110.jpg"><img src="https://www.xifenfei.com/wp-content/uploads/2024/08/ORA-01113-ORA-01110.jpg" alt="ORA-01113-ORA-01110" width="765" height="270" class="alignnone size-full wp-image-10914" /></a><br />
<hr />
通过<a href="https://www.xifenfei.com/oracle_recovery_check" title="Oracle数据库异常恢复检查脚本(Oracle Database Recovery Check)" rel="noopener" target="_blank">Oracle数据库异常恢复检查脚本(Oracle Database Recovery Check)</a>脚本检测,发现有10个数据文件异常,无法正常恢复<br />
<a href="https://www.xifenfei.com/wp-content/uploads/2024/08/20240814155122.jpg"><img src="https://www.xifenfei.com/wp-content/uploads/2024/08/20240814155122.jpg" alt="20240814155122" width="1345" height="275" class="alignnone size-full wp-image-10915" /></a><br />
<hr />
该库比较大,有近200T,因此恢复需要各位谨慎(无法做现场备份,另外客户要求2天时间必须恢复好)<br />
<a href="https://www.xifenfei.com/wp-content/uploads/2024/08/200t.jpg"><img src="https://www.xifenfei.com/wp-content/uploads/2024/08/200t.jpg" alt="200t" width="1701" height="467" class="alignnone size-full wp-image-10916" /></a><br />
<hr />
由于数据库是非归档模式,该库无法通过应用归档日志来实现对这些文件进行恢复,对于这种情况,直接使用dbms_diskgroup把数据文件头拷贝到文件系统中,类似操作</p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt; @dbms_diskgroup_get_block.sql  +DATA/xifenfei.dbf 1 1 /tmp/xff/xifenfei.dbf.header

Parameter 1:
ASM_file_name (required)


Parameter 2:
block_to_extract (required)


Parameter 3
number_of_blocks_to_extract (required)


Parameter 4:
FileSystem_File_Name (required)

old  14:  v_AsmFilename := '&amp;ASM_File_Name';
new  14:  v_AsmFilename := '+DATA/xifenfei.dbf';
old  15:  v_offstart := '&amp;block_to_extract';
new  15:  v_offstart := '1';
old  16:  v_numblks := '&amp;number_of_blocks_to_extract';
new  16:  v_numblks := '1';
old  17:  v_FsFilename := '&amp;FileSystem_File_Name';
new  17:  v_FsFilename := '/tmp/xff/xifenfei.dbf.header';
File: +DATA/xifenfei.dbf
Type: 2 Data File
Size (in logical blocks): 3978880
Logical Block Size: 16384
Physical Block Size: 512

PL/SQL procedure successfully completed.

</pre>
<p>然后通过bbed修改相关scn</p>
<pre class="brush: bash; title: ; notranslate">
BBED&gt; set filename 'xifenfei.dbf.header'
	FILENAME       	xifenfei.dbf.header

BBED&gt; set blocksize 16384
	BLOCKSIZE      	16384

BBED&gt; map
 File: xifenfei.dbf.header (0)
 Block: 1                                     Dba:0x00000000
------------------------------------------------------------
 Data File Header

 struct kcvfh, 860 bytes                    @0       

 ub4 tailchk                                @16380   


BBED&gt; p kcvfh.kcvfhckp.kcvcpscn
struct kcvcpscn, 8 bytes                    @484     
   ub4 kscnbas                              @484      0xa8061324
   ub2 kscnwrp                              @488      0x0081

BBED&gt; assign file 295 block 1 kcvfh.kcvfhckp.kcvcpscn = file 1 block 1 kcvfh.kcvfhckp.kcvcpscn;
struct kcvcpscn, 8 bytes                    @484     
   ub4 kscnbas                              @484      0xa8133e2b
   ub2 kscnwrp                              @488      0x0081

</pre>
<p>然后把修改的数据文件头写回到asm中</p>
<pre class="brush: bash; title: ; notranslate">
SQL&gt; @dbms_diskgroup_cp_block_to_asm.sql  /tmp/xff/xifenfei.dbf.header  +DATA/xifenfei.dbf 1 1 

Parameter 1:
v_FsFileName (required)


Parameter 2:
v_AsmFileName (required)


Parameter 3
v_offstart (required)


Parameter 4
v_numblks (required)

old  16: v_FsFileName := '&amp;v_FsFileName';
new  16: v_FsFileName := '/tmp/xff/xifenfei.dbf.header';
old  17: v_AsmFileName := '&amp;v_AsmFileName';
new  17: v_AsmFileName := '+DATA/xifenfei.dbf';
old  18: v_offstart := '&amp;v_offstart';
new  18: v_offstart := '1';
old  19:  v_numblks := '&amp;v_numblks';
new  19:  v_numblks := '1';
File: +DATA/xifenfei.dbf
Type: 2 Data File
Size (in logical blocks): 3978880
Logical Block Size: 16384

PL/SQL procedure successfully completed.
</pre>
<p>查询文件头是否修改成功</p>
<pre class="brush: sql; title: ; notranslate">
[oracle@xff1 xff]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.3.0 Production on Sat Aug 10 16:45:02 2024

Copyright (c) 1982, 2011, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

SQL&gt; set numw 16
SQL&gt; select CHECKPOINT_CHANGE# from v$datafile_header where file# in (1,295);

CHECKPOINT_CHANGE#
------------------
      556870614571
      556870614571

SQL&gt; recover datafile 295;
Media recovery complete.
</pre>
<p>通过上述操作,确认bbed修改文件头成功,后续类似方法对其他9个文件进行修改,并打开数据库</p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt; recover database;
Media recovery complete.
SQL&gt; alter database open;

Database altered.
</pre>
<p>alert日志提示</p>
<pre class="brush: bash; title: ; notranslate">
Sat Aug 10 16:46:11 2024
ALTER DATABASE RECOVER  datafile 295  
Media Recovery Start
Serial Media Recovery started
WARNING! Recovering data file 295 from a fuzzy backup. It might be an online
backup taken without entering the begin backup command.
Media Recovery Complete (xff1)
Completed: ALTER DATABASE RECOVER  datafile 295  
Sat Aug 10 16:46:39 2024
ALTER DATABASE RECOVER  database  
Media Recovery Start
 started logmerger process
Sat Aug 10 16:46:51 2024
WARNING! Recovering data file 1139 from a fuzzy backup. It might be an online
backup taken without entering the begin backup command.
WARNING! Recovering data file 1140 from a fuzzy backup. It might be an online
backup taken without entering the begin backup command.
WARNING! Recovering data file 1601 from a fuzzy backup. It might be an online
backup taken without entering the begin backup command.
WARNING! Recovering data file 1803 from a fuzzy backup. It might be an online
backup taken without entering the begin backup command.
WARNING! Recovering data file 1827 from a fuzzy backup. It might be an online
backup taken without entering the begin backup command.
WARNING! Recovering data file 1931 from a fuzzy backup. It might be an online
backup taken without entering the begin backup command.
WARNING! Recovering data file 2185 from a fuzzy backup. It might be an online
backup taken without entering the begin backup command.
WARNING! Recovering data file 2473 from a fuzzy backup. It might be an online
backup taken without entering the begin backup command.
WARNING! Recovering data file 2616 from a fuzzy backup. It might be an online
backup taken without entering the begin backup command.
Sat Aug 10 16:46:54 2024
Parallel Media Recovery started with 64 slaves
Media Recovery Complete (xff1)
Completed: ALTER DATABASE RECOVER  database  
Sat Aug 10 17:19:58 2024
alter database open
This instance was first to open
Sat Aug 10 17:19:58 2024
SUCCESS: diskgroup DATA was mounted
Sat Aug 10 17:19:58 2024
NOTE: dependency between database xff and diskgroup resource ora.DATA.dg is established
Sat Aug 10 17:20:10 2024
Picked broadcast on commit scheme to generate SCNs
Sat Aug 10 17:20:10 2024
SUCCESS: diskgroup REDO was mounted
Sat Aug 10 17:20:10 2024
NOTE: dependency between database xff and diskgroup resource ora.REDO.dg is established
Thread 1 opened at log sequence 124958
  Current log# 14 seq# 124958 mem# 0: +REDO/xff/log2.ora
Successful open of redo thread 1
MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
Sat Aug 10 17:20:14 2024
SMON: enabling cache recovery
Instance recovery: looking for dead threads
Instance recovery: lock domain invalid but no dead threads
[33770] Successfully onlined Undo Tablespace 2.
Undo initialization finished serial:0 start:261099864 end:261100854 diff:990 (9 seconds)
Verifying file header compatibility for 11g tablespace encryption..
Verifying 11g file header compatibility for tablespace encryption completed
SMON: enabling tx recovery
Database Characterset is ZHS16GBK
Sat Aug 10 17:20:16 2024
minact-scn: Inst 1 is now the master inc#:2 mmon proc-id:33650 status:0x7
minact-scn status: grec-scn:0x0000.00000000 gmin-scn:0x0000.00000000 gcalc-scn:0x0000.00000000
Starting background process GTX0
Sat Aug 10 17:20:16 2024
GTX0 started with pid=45, OS id=34119 
Starting background process RCBG
Sat Aug 10 17:20:16 2024
RCBG started with pid=46, OS id=34121 
replication_dependency_tracking turned off (no async multimaster replication found)
Starting background process QMNC
Sat Aug 10 17:20:16 2024
QMNC started with pid=47, OS id=34134 
Starting background process SMCO
Completed: alter database open
</pre>
<p>其他集群其他节点数据库,一切正常<br />
<a href="https://www.xifenfei.com/wp-content/uploads/2024/08/20240814162201.jpg"><img src="https://www.xifenfei.com/wp-content/uploads/2024/08/20240814162201.jpg" alt="20240814162201" width="1038" height="561" class="alignnone size-full wp-image-10918" /></a><br />
<hr />
检查数据字典一致性</p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt; @hcheck.sql
HCheck Version 07MAY18 on 10-AUG-2024 18:24:49
----------------------------------------------
Catalog Version 11.2.0.3.0 (1102000300)
db_name: XFF

				   Catalog	 Fixed
Procedure Name			   Version    Vs Release    Timestamp
Result
------------------------------ ... ---------- -- ---------- --------------
------
.- LobNotInObj		       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:49 PASS
.- MissingOIDOnObjCol	       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:49 PASS
.- SourceNotInObj	       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:49 PASS
.- OversizedFiles	       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:50 PASS
.- PoorDefaultStorage	       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:50 PASS
.- PoorStorage		       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:50 PASS
.- TabPartCountMismatch        ... 1102000300 &lt;=  *All Rel* 08/10 18:24:50 PASS
.- OrphanedTabComPart	       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:50 PASS
.- MissingSum$		       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:50 PASS
.- MissingDir$		       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:50 PASS
.- DuplicateDataobj	       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:50 PASS
.- ObjSynMissing	       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:51 PASS
.- ObjSeqMissing	       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:51 PASS
.- OrphanedUndo 	       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:51 PASS
.- OrphanedIndex	       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:51 PASS
.- OrphanedIndexPartition      ... 1102000300 &lt;=  *All Rel* 08/10 18:24:51 PASS
.- OrphanedIndexSubPartition   ... 1102000300 &lt;=  *All Rel* 08/10 18:24:52 PASS
.- OrphanedTable	       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:52 PASS
.- OrphanedTablePartition      ... 1102000300 &lt;=  *All Rel* 08/10 18:24:52 PASS
.- OrphanedTableSubPartition   ... 1102000300 &lt;=  *All Rel* 08/10 18:24:52 PASS
.- MissingPartCol	       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:52 PASS
.- OrphanedSeg$ 	       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:52 PASS
.- OrphanedIndPartObj#	       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:52 PASS
.- DuplicateBlockUse	       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:52 PASS
.- FetUet		       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:52 PASS
.- Uet0Check		       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:52 PASS
.- SeglessUET		       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:52 PASS
.- BadInd$		       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:52 PASS
.- BadTab$		       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:53 PASS
.- BadIcolDepCnt	       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:53 PASS
.- ObjIndDobj		       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:53 PASS
.- TrgAfterUpgrade	       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:53 PASS
.- ObjType0		       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:53 PASS
.- BadOwner		       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:53 PASS
.- StmtAuditOnCommit	       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:53 PASS
.- BadPublicObjects	       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:53 PASS
.- BadSegFreelist	       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:53 PASS
.- BadDepends		       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:53 PASS
.- CheckDual		       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:53 PASS
.- ObjectNames		       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:53 PASS
.- BadCboHiLo		       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:54 PASS
.- ChkIotTs		       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:54 PASS
.- NoSegmentIndex	       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:54 PASS
.- BadNextObject	       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:54 PASS
.- DroppedROTS		       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:54 PASS
.- FilBlkZero		       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:54 PASS
.- DbmsSchemaCopy	       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:54 PASS
.- OrphanedObjError	       ... 1102000300 &gt;  1102000000 08/10 18:24:54 PASS
.- ObjNotLob		       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:54 PASS
.- MaxControlfSeq	       ... 1102000300 &lt;=  *All Rel* 08/10 18:24:55 PASS
.- SegNotInDeferredStg	       ... 1102000300 &gt;  1102000000 08/10 18:25:18 PASS
.- SystemNotRfile1	       ... 1102000300 &gt;   902000000 08/10 18:25:18 PASS
.- DictOwnNonDefaultSYSTEM     ... 1102000300 &lt;=  *All Rel* 08/10 18:25:18 PASS
.- OrphanTrigger	       ... 1102000300 &lt;=  *All Rel* 08/10 18:25:18 PASS
.- ObjNotTrigger	       ... 1102000300 &lt;=  *All Rel* 08/10 18:25:18 PASS
---------------------------------------
10-AUG-2024 18:25:18  Elapsed: 29 secs
---------------------------------------
Found 0 potential problem(s) and 0 warning(s)

PL/SQL procedure successfully completed.

Statement processed.

Complete output is in trace file:
/u01/app/oracle/diag/rdbms/xff/xff1/trace/xff1_ora_71148_HCHECK.trc
</pre>
<p>运气不错,数据字典本身没有损坏,业务直接运行,一切正常(主要原因是在光纤链路不稳定的情况下,客户已经没有往库中写入数据)</p>
<div id="crp_related"><ul><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/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/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/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/2024/03/datafile-scn-low-recovery.html" rel="bookmark" class="crp_title">断电引起文件scn异常数据库恢复</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/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/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/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/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/05/oracle-power-outage-recovery.html" rel="bookmark" class="crp_title">Oracle断电故障处理</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2025/01/19c-noarchive-ora-00742-recovery.html" rel="bookmark" class="crp_title">19c非归档数据库断电导致ORA-00742故障恢复</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2024/08/200t-oracle-recovery-ora-01113-ora-01110.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
