<?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>DBAlife &#187; ora-604</title>
	<atom:link href="http://www.dbalife.com/archives/tag/ora-604/feed" rel="self" type="application/rss+xml" />
	<link>http://www.dbalife.com</link>
	<description>网站系统架构实践</description>
	<lastBuildDate>Wed, 27 Jul 2011 09:57:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>drop table遭遇ORA-604 / ORA-1422</title>
		<link>http://www.dbalife.com/archives/128.html</link>
		<comments>http://www.dbalife.com/archives/128.html#comments</comments>
		<pubDate>Mon, 02 Jun 2008 03:09:51 +0000</pubDate>
		<dc:creator>skywalker</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[数据库管理]]></category>
		<category><![CDATA[drop table]]></category>
		<category><![CDATA[dual]]></category>
		<category><![CDATA[ora-1422]]></category>
		<category><![CDATA[ora-604]]></category>

		<guid isPermaLink="false">http://www.dbalife.com/?p=128</guid>
		<description><![CDATA[Oracle10.2.0.1，在Drop table时出现问题，所有的表都不能drop，报错： SQL&#62; drop table tab1; drop table tab1 * ERROR at line 1: ORA-00604: error occurred at recursive SQL level 1 ORA-01422: exact fetch returns more than requested number of rows 导致这一故障是因为dual字典表出现异常 正常的dual字典表应该是这样： SQL&#62; select * from dual; D - X 而当依据dual创建新表时，却发现不同: SQL&#62; create table my_dual as select * from dual; Table created. SQL&#62; [...]
Related posts:<ol>
<li><a href='http://www.dbalife.com/archives/38.html' rel='bookmark' title='AutoTrace'>AutoTrace</a></li>
<li><a href='http://www.dbalife.com/archives/41.html' rel='bookmark' title='sqlplus下如何看执行计划'>sqlplus下如何看执行计划</a></li>
<li><a href='http://www.dbalife.com/archives/176.html' rel='bookmark' title='模糊查询like &#039;%XX%&#039; 的优化一例'>模糊查询like '%XX%' 的优化一例</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Oracle10.2.0.1，在Drop table时出现问题，所有的表都不能drop，报错：</p>
<blockquote><p>SQL&gt; drop table tab1;<br />
drop table tab1<br />
*<br />
ERROR at line 1:<br />
ORA-00604: error occurred at recursive SQL level 1<br />
ORA-01422: exact fetch returns more than requested number of rows</p></blockquote>
<p>导致这一故障是因为dual字典表出现异常</p>
<p>正常的dual字典表应该是这样：</p>
<blockquote><p>SQL&gt; select * from dual;</p>
<p>D<br />
-<br />
X</p></blockquote>
<p>而当依据dual创建新表时，却发现不同:</p>
<blockquote><p>SQL&gt; create table my_dual as select * from dual;<br />
Table created.</p>
<p>SQL&gt; select * from my_dual;<br />
D<br />
-<br />
X<br />
Y<br />
Y<br />
Y</p></blockquote>
<p>下面的sql多执行几次，将dual的多余记录删除，即可恢复正常</p>
<blockquote><p>SQL&gt; delete from dual where dummy = 'Y' and rownum=1;</p></blockquote>
<p>－EOF－</p>
<p>Related posts:<ol>
<li><a href='http://www.dbalife.com/archives/38.html' rel='bookmark' title='AutoTrace'>AutoTrace</a></li>
<li><a href='http://www.dbalife.com/archives/41.html' rel='bookmark' title='sqlplus下如何看执行计划'>sqlplus下如何看执行计划</a></li>
<li><a href='http://www.dbalife.com/archives/176.html' rel='bookmark' title='模糊查询like &#039;%XX%&#039; 的优化一例'>模糊查询like '%XX%' 的优化一例</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.dbalife.com/archives/128.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

