<?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; ORA-1537</title>
	<atom:link href="https://www.xifenfei.com/tag/ora-1537/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>Thu, 29 Oct 2026 15:31:46 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>Oracle安全警示录:加错裸设备导致redo异常</title>
		<link>https://www.xifenfei.com/2014/06/oracle%e5%ae%89%e5%85%a8%e8%ad%a6%e7%a4%ba%e5%bd%95%e5%8a%a0%e9%94%99%e8%a3%b8%e8%ae%be%e5%a4%87%e5%af%bc%e8%87%b4redo%e5%bc%82%e5%b8%b8.html</link>
		<comments>https://www.xifenfei.com/2014/06/oracle%e5%ae%89%e5%85%a8%e8%ad%a6%e7%a4%ba%e5%bd%95%e5%8a%a0%e9%94%99%e8%a3%b8%e8%ae%be%e5%a4%87%e5%af%bc%e8%87%b4redo%e5%bc%82%e5%b8%b8.html#comments</comments>
		<pubDate>Fri, 13 Jun 2014 08:14:20 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[ORA-00316]]></category>
		<category><![CDATA[ORA-1119]]></category>
		<category><![CDATA[ORA-1537]]></category>
		<category><![CDATA[Oracle安全警示录]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=5370</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2014/06/oracle%e5%ae%89%e5%85%a8%e8%ad%a6%e7%a4%ba%e5%bd%95%e5%8a%a0%e9%94%99%e8%a3%b8%e8%ae%be%e5%a4%87%e5%af%bc%e8%87%b4redo%e5%bc%82%e5%b8%b8.html">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div id="xifenfeicopyright">
<p>联系：<a href="https://www.xifenfei.com/about_xifenfei" target="_blank">手机/微信(+86 17813235971)   QQ(107644445)</a><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&#038;uin=107644445&#038;site=qq&#038;menu=yes"><img src="https://www.xifenfei.com/wp-content/themes/img/site_qq.jpg" alt="QQ咨询惜分飞" title="QQ咨询惜分飞"/></a></p>
<p>标题：<a href="https://www.xifenfei.com/2014/06/oracle%e5%ae%89%e5%85%a8%e8%ad%a6%e7%a4%ba%e5%bd%95%e5%8a%a0%e9%94%99%e8%a3%b8%e8%ae%be%e5%a4%87%e5%af%bc%e8%87%b4redo%e5%bc%82%e5%b8%b8.html" target="_blank">Oracle安全警示录:加错裸设备导致redo异常</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>最近一个朋友数据库异常了,咨询我,通过分析日志发现对方人员根本不懂aix中的裸设备和Oracle数据库然后就直接使用OEM创建新表空间,导致了数据库crash而且不能正常启动</p>
<pre class="brush: bash; title: ; notranslate">
Thread 1 advanced to log sequence 4395
  Current log# 1 seq# 4395 mem# 0: /dev/rorcl_redo01
Thu Jun 12 19:28:38 2014
/* OracleOEM */ CREATE SMALLFILE TABLESPACE &quot;XIFENFEI&quot; LOGGING DATAFILE '/dev/orcl_redo04' SIZE 2000M EXTENT MANAGEMENT 
LOCAL SEGMENT SPACE MANAGEMENT  AUTO 
ORA-1119 signalled during: /* OracleOEM */ CREATE SMALLFILE TABLESPACE &quot;XIFENFEI&quot; LOGGING DATAFILE '/dev/orcl_redo04' 
SIZE 2000M EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT  AUTO ...
Thu Jun 12 19:36:23 2014
/* OracleOEM */ CREATE SMALLFILE TABLESPACE &quot;XIFENFEI&quot; LOGGING DATAFILE '/dev/orcl_redo03' SIZE 2000M EXTENT MANAGEMENT 
LOCAL SEGMENT SPACE MANAGEMENT  AUTO 
Thu Jun 12 19:43:56 2014
ORA-604 signalled during: /* OracleOEM */ CREATE SMALLFILE TABLESPACE &quot;XIFENFEI&quot; LOGGING DATAFILE '/dev/orcl_redo03' 
SIZE 2000M EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT  AUTO ...
Thu Jun 12 19:48:11 2014
/* OracleOEM */ CREATE SMALLFILE TABLESPACE &quot;XIFENFEI&quot; LOGGING DATAFILE '/dev/rorcl_redo03' SIZE 2000M EXTENT 
MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT  AUTO 
Thu Jun 12 19:48:11 2014
ORA-1537 signalled during: /* OracleOEM */ CREATE SMALLFILE TABLESPACE &quot;XIFENFEI&quot; LOGGING DATAFILE '/dev/rorcl_redo03'
 SIZE 2000M EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT  AUTO ...
Thu Jun 12 19:48:20 2014
/* OracleOEM */ CREATE SMALLFILE TABLESPACE &quot;XIFENFEI&quot; LOGGING DATAFILE '/dev/rorcl_redo04' SIZE 2000M EXTENT 
MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT  AUTO 
ORA-1537 signalled during: /* OracleOEM */ CREATE SMALLFILE TABLESPACE &quot;XIFENFEI&quot; LOGGING DATAFILE '/dev/rorcl_redo04' 
SIZE 2000M EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT  AUTO ...
Fri Jun 13 00:50:37 2014
Trace dumping is performing id=[cdmp_20140613005032]
Fri Jun 13 00:50:40 2014
Reconfiguration started (old inc 4, new inc 6)
List of nodes:
 0
 Global Resource Directory frozen
 * dead instance detected - domain 0 invalid = TRUE 
…………
Fri Jun 13 00:50:40 2014
Beginning instance recovery of 1 threads
Reconfiguration complete
Fri Jun 13 00:50:41 2014
 parallel recovery started with 7 processes
Fri Jun 13 00:50:43 2014
Started redo scan
Fri Jun 13 00:50:43 2014
Errors in file /oracle/admin/orcl/bdump/orcl1_smon_213438.trc:
ORA-00316: log 3 of thread 2, type 0 in header is not log file
ORA-00312: online log 3 thread 2: '/dev/rorcl_redo03'
Fri Jun 13 00:50:43 2014
Errors in file /oracle/admin/orcl/bdump/orcl1_smon_213438.trc:
ORA-00316: log 3 of thread 2, type 0 in header is not log file
ORA-00312: online log 3 thread 2: '/dev/rorcl_redo03'
SMON: terminating instance due to error 316
Fri Jun 13 00:50:43 2014
Errors in file /oracle/admin/orcl/bdump/orcl1_lgwr_335980.trc:
ORA-00316: log  of thread , type  in header is not log file
Instance terminated by SMON, pid = 213438
</pre>
<p>从这里可以看出来,在使用OEM创建表空间的过程中犯了两个错误<br />
1. 未分清楚aix的块设备和字符设备的命名方式<br />
2. 对于2节点正在使用的current redo作为不适用设备当作未使用设备来创建新表空间<br />
由于创建表空间的使用了错误的文件和错误的设备,导致2节点的当前redo(/dev/rorcl_redo03)被损坏(因为先读redo header,所以数据库中优先反馈出来的是ORA-00316: log  of thread , type  in header is not log file).从而导致数据库2节点先crash,然后节点1进行实例恢复,但是由于2节点的current redo已经损坏,导致实例恢复无法完成,从而两个节点都crash.因为是rac的一个节点的当前redo损坏,数据库无法正常.<br />
如果有备份该数据库可以使用备份还原进行恢复,如果没有备份只能使用强制拉库的方法抢救数据.希望不要发生一个大的数据丢失悲剧<br />
介绍这个案例希望给大家以警示:<strong>对数据库的裸设备操作请谨慎,不清楚切不可乱操作,否则后果严重</strong></p>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2016/10/alter-database-create-datafile-recovery.html" rel="bookmark" class="crp_title">alter database create datafile 导致数据文件丢失恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/07/statspack%e5%ae%89%e8%a3%85.html" rel="bookmark" class="crp_title">statspack安装</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/2012/04/%e6%b0%b8%e4%b9%85%e8%a1%a8%e7%a9%ba%e9%97%b4%e5%87%ba%e7%8e%b0%e4%b8%b4%e6%97%b6%e6%ae%b5%e4%b8%8d%e8%83%bd%e6%89%a9%e5%b1%95%e5%8e%9f%e5%9b%a0%e6%8e%a2%e8%ae%a8.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%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/2018/10/oracle-8-recovery.html" rel="bookmark" class="crp_title">oracle 8.1.6因断电无法启动恢复</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/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/2014/07/%e6%9f%90%e9%9b%86%e5%9b%a2ebs%e6%95%b0%e6%8d%ae%e5%ba%93redo-undo%e4%b8%a2%e5%a4%b1%e5%af%bc%e8%87%b4%e6%82%b2%e5%89%a7.html" rel="bookmark" class="crp_title">某集团ebs数据库redo undo丢失导致悲剧</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2014/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/2012/05/9i%e5%ba%93%e9%81%87%e5%88%b0ora-01595ora-01594.html" rel="bookmark" class="crp_title">9i库遇到ORA-01595/ORA-01594</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/06/oracle%e5%ae%89%e5%85%a8%e8%ad%a6%e7%a4%ba%e5%bd%95%e5%8a%a0%e9%94%99%e8%a3%b8%e8%ae%be%e5%a4%87%e5%af%bc%e8%87%b4redo%e5%bc%82%e5%b8%b8.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
