<?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; bug</title>
	<atom:link href="http://www.ochef.net/tag/bug/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ochef.net</link>
	<description>Oracle and My Life</description>
	<lastBuildDate>Mon, 09 Jan 2012 05:39:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>EXP-00056 bug解决方法</title>
		<link>http://www.ochef.net/2009/05/exp-00056-bug-solution.html</link>
		<comments>http://www.ochef.net/2009/05/exp-00056-bug-solution.html#comments</comments>
		<pubDate>Fri, 08 May 2009 05:49:41 +0000</pubDate>
		<dc:creator>ochef</dc:creator>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[bug]]></category>

		<guid isPermaLink="false">http://www.ochef.net/?p=317</guid>
		<description><![CDATA[今天在测试环境：Linux + Oracle 9.2.0.5.0帮开发人员把某个用户的所有数据全部EXP时，遇到下面的错误： EXP-00056: ORACLE error 1422 encountered ORA-01422: exact fetch returns more than requested number of rows ORA-06512: at &#8220;XDB.DBMS_XDBUTIL_INT&#8221;, line 52 ORA-06512: at line 1 EXP-00056: ORACLE error 1422 encountered ORA-01422: exact fetch returns more than requested number of rows ORA-06512: at &#8220;XDB.DBMS_XDBUTIL_INT&#8221;, line 52 ORA-06512: at line 1 EXP-00000: Export terminated [...]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F08%2Fthe-first-anniversary-of-marriage.html&from=http%3A%2F%2Fwww.ochef.net%2F2009%2F05%2Fexp-00056-bug-solution.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">结婚一周年</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F09%2Fdb2_vs_oracle.html&from=http%3A%2F%2Fwww.ochef.net%2F2009%2F05%2Fexp-00056-bug-solution.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">DB2对比Oracle学习系列之:instance &amp; database concepts</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.ochef.net%2F2010%2F05%2Fnovice-macro-shot.html&from=http%3A%2F%2Fwww.ochef.net%2F2009%2F05%2Fexp-00056-bug-solution.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">新手拍微距</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>今天在测试环境：Linux + Oracle 9.2.0.5.0帮开发人员把某个用户的所有数据全部EXP时，遇到下面的错误：</p>
<p><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:PunctuationKerning /> <w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingGridEvery> <w:DisplayVerticalDrawingGridEvery>2</w:DisplayVerticalDrawingGridEvery> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:SpaceForUL /> <w:BalanceSingleByteDoubleByteWidth /> <w:DoNotLeaveBackslashAlone /> <w:ULTrailSpace /> <w:DoNotExpandShiftReturn /> <w:AdjustLineHeightInTable /> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> <w:UseFELayout /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--> <!--[if gte mso 10]> <mce:style><!<br />
/* Style Definitions */<br />
table.MsoNormalTable<br />
{mso-style-name:表格內文;<br />
mso-tstyle-rowband-size:0;<br />
mso-tstyle-colband-size:0;<br />
mso-style-noshow:yes;<br />
mso-style-parent:"";<br />
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;<br />
mso-para-margin:0cm;<br />
mso-para-margin-bottom:.0001pt;<br />
mso-pagination:widow-orphan;<br />
font-size:10.0pt;<br />
font-family:"Times New Roman";<br />
mso-fareast-font-family:"Times New Roman";<br />
mso-ansi-language:#0400;<br />
mso-fareast-language:#0400;<br />
mso-bidi-language:#0400;}<br />
--> <!--[endif]--></p>
<blockquote>
<p class="MsoNormal"><span lang="EN-US">EXP-00056: ORACLE error 1422 encountered</span></p>
<p class="MsoNormal"><span lang="EN-US">ORA-01422: exact fetch returns more than requested number of rows</span></p>
<p class="MsoNormal"><span lang="EN-US">ORA-06512: at &#8220;XDB.DBMS_XDBUTIL_INT&#8221;, line 52</span></p>
<p class="MsoNormal"><span lang="EN-US">ORA-06512: at line 1</span></p>
<p class="MsoNormal"><span lang="EN-US">EXP-00056: ORACLE error 1422 encountered</span></p>
<p class="MsoNormal"><span lang="EN-US">ORA-01422: exact fetch returns more than requested number of rows</span></p>
<p class="MsoNormal"><span lang="EN-US">ORA-06512: at &#8220;XDB.DBMS_XDBUTIL_INT&#8221;, line 52</span></p>
<p class="MsoNormal"><span lang="EN-US">ORA-06512: at line 1</span></p>
<p class="MsoNormal"><span lang="EN-US">EXP-00000: Export terminated unsuccessfully</span></p>
</blockquote>
<p class="MsoNormal"><span lang="EN-US">查了metalink解释如下：</span></p>
<p class="MsoNormal"><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:PunctuationKerning /> <w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingGridEvery> <w:DisplayVerticalDrawingGridEvery>2</w:DisplayVerticalDrawingGridEvery> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:SpaceForUL /> <w:BalanceSingleByteDoubleByteWidth /> <w:DoNotLeaveBackslashAlone /> <w:ULTrailSpace /> <w:DoNotExpandShiftReturn /> <w:AdjustLineHeightInTable /> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> <w:UseFELayout /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--> <!--[if gte mso 10]> <mce:style><!<br />
/* Style Definitions */<br />
table.MsoNormalTable<br />
{mso-style-name:表格內文;<br />
mso-tstyle-rowband-size:0;<br />
mso-tstyle-colband-size:0;<br />
mso-style-noshow:yes;<br />
mso-style-parent:"";<br />
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;<br />
mso-para-margin:0cm;<br />
mso-para-margin-bottom:.0001pt;<br />
mso-pagination:widow-orphan;<br />
font-size:10.0pt;<br />
font-family:"Times New Roman";<br />
mso-fareast-font-family:"Times New Roman";<br />
mso-ansi-language:#0400;<br />
mso-fareast-language:#0400;<br />
mso-bidi-language:#0400;}<br />
--> <!--[endif]--></p>
<blockquote>
<p class="MsoNormal"><span lang="EN-US">This has been logged as <span style="color: #ff0000;">bug 2685696</span>. (viewable in Metalink). The issue is that the package body XDB.DBMS_XDBUTIL_INT is doing a SELECT object_type FROM all_objects and is expecting to return only 1 row. However, if you have a table and trigger of other object, named the same, it returns 2 rows, which causes the error. </span></p>
<p class="MsoNormal"><span lang="EN-US">Currently a patch for the Windows Platform is not available. The workaround is to rename one of the objects. You can also log an iTAR requesting a one-off patch be created for your platform.<br />
</span></p></blockquote>
<p class="MsoNormal"><span lang="EN-US">原因是由同名的trigger引起的，解决问题的办法有二个：</span></p>
<p class="MsoNormal"><span lang="EN-US">1.使用下面的SQL语句找出系统中有问题的trigger，然后将其名称修正即可<br />
</span></p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> object_type<span style="color: #66cc66;">,</span>owner<span style="color: #66cc66;">||</span><span style="color: #ff0000;">'.'</span><span style="color: #66cc66;">||</span>object_name <span style="color: #ff0000;">&quot;OWNER.OBJECT_NAME&quot;</span>
          <span style="color: #993333; font-weight: bold;">FROM</span> dba_objects
         <span style="color: #993333; font-weight: bold;">WHERE</span> owner<span style="color: #66cc66;">||</span>object_name <span style="color: #993333; font-weight: bold;">IN</span>
               <span style="color: #66cc66;">&#40;</span><span style="color: #993333; font-weight: bold;">SELECT</span> o<span style="color: #66cc66;">.</span>owner<span style="color: #66cc66;">||</span>object_name <span style="color: #993333; font-weight: bold;">FROM</span> dba_objects o<span style="color: #66cc66;">,</span> dba_triggers t
                    <span style="color: #993333; font-weight: bold;">WHERE</span> object_name <span style="color: #66cc66;">=</span> trigger_name
                    <span style="color: #993333; font-weight: bold;">GROUP</span> <span style="color: #993333; font-weight: bold;">BY</span> o<span style="color: #66cc66;">.</span>owner<span style="color: #66cc66;">||</span>object_name <span style="color: #993333; font-weight: bold;">HAVING</span> <span style="color: #993333; font-weight: bold;">COUNT</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">*</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p><!--[if gte mso 10]> <mce:style><!<br />
/* Style Definitions */<br />
table.MsoNormalTable<br />
{mso-style-name:表格內文;<br />
mso-tstyle-rowband-size:0;<br />
mso-tstyle-colband-size:0;<br />
mso-style-noshow:yes;<br />
mso-style-parent:"";<br />
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;<br />
mso-para-margin:0cm;<br />
mso-para-margin-bottom:.0001pt;<br />
mso-pagination:widow-orphan;<br />
font-size:10.0pt;<br />
font-family:"Times New Roman";<br />
mso-fareast-font-family:"Times New Roman";<br />
mso-ansi-language:#0400;<br />
mso-fareast-language:#0400;<br />
mso-bidi-language:#0400;}<br />
--> <!--[endif]--></p>
<p class="MsoNormal"><span lang="EN-US">2.将系统升级至9.2.0.8.0即可<br />
</span></p>
<p class="MsoNormal"><span lang="EN-US">-The End-<br />
</span></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F11%2Fconfigure-ora11gr2-t-gateway-for-db2udb.html&from=http%3A%2F%2Fwww.ochef.net%2F2009%2F05%2Fexp-00056-bug-solution.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Configure Ora11gR2 T-gateway for DB2UDB</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F11%2Fcrs-css-clusterware-the-concept.html&from=http%3A%2F%2Fwww.ochef.net%2F2009%2F05%2Fexp-00056-bug-solution.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CRS、CSS、clusterware的概念</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F12%2Foracle-sql-developer-2-1-released.html&from=http%3A%2F%2Fwww.ochef.net%2F2009%2F05%2Fexp-00056-bug-solution.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Oracle SQL Developer 2.1 Released</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.ochef.net%2F2010%2F01%2Ftravels-zunyi-conference-hall.html&from=http%3A%2F%2Fwww.ochef.net%2F2009%2F05%2Fexp-00056-bug-solution.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">游记：遵义会议纪念馆</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.ochef.net/2009/05/exp-00056-bug-solution.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

