<?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-04043</title>
	<atom:link href="https://www.xifenfei.com/tag/ora-04043/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>Tue, 17 Nov 2026 13:36:46 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>模拟ORA-04043并解决</title>
		<link>https://www.xifenfei.com/2012/03/%e6%a8%a1%e6%8b%9fora-04043%e5%b9%b6%e8%a7%a3%e5%86%b3.html</link>
		<comments>https://www.xifenfei.com/2012/03/%e6%a8%a1%e6%8b%9fora-04043%e5%b9%b6%e8%a7%a3%e5%86%b3.html#comments</comments>
		<pubDate>Thu, 29 Mar 2012 08:11:48 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[ORA-xxxxx]]></category>
		<category><![CDATA[ORA-04043]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=2784</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2012/03/%e6%a8%a1%e6%8b%9fora-04043%e5%b9%b6%e8%a7%a3%e5%86%b3.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/2012/03/%e6%a8%a1%e6%8b%9fora-04043%e5%b9%b6%e8%a7%a3%e5%86%b3.html" target="_blank">模拟ORA-04043并解决</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p><strong>创建两张模拟表</strong></p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt; select * from v$version;

BANNER
------------------------------------------------------------------
Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
PL/SQL Release 9.2.0.4.0 - Production
CORE    9.2.0.3.0       Production
TNS for Linux: Version 9.2.0.4.0 - Production
NLSRTL Version 9.2.0.4.0 - Production


SQL&gt; create table sys_xifenfei as           
  2  select * from dba_tables;

Table created.

SQL&gt; create table chf.chf_xifenfei as
  2  select * from dba_tables;

Table created.
</pre>
<p><strong>启动数据库到mount状态查询表</strong></p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt; shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL&gt; startup mount;
ORACLE instance started.

Total System Global Area  353441008 bytes
Fixed Size                   451824 bytes
Variable Size             184549376 bytes
Database Buffers          167772160 bytes
Redo Buffers                 667648 bytes
Database mounted.
SQL&gt; desc dba_tables;
ERROR:
ORA-04043: object dba_tables does not exist


SQL&gt; desc sys_xifenfei
ERROR:
ORA-04043: object sys_xifenfei does not exist


SQL&gt; desc chf.chf_xifenfei
ERROR:
ORA-04043: object chf.chf_xifenfei does not exist
</pre>
<p><strong>打开数据库查询</strong></p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt; alter database open;

Database altered.


SQL&gt; select count(*) from sys_xifenfei;
select count(*) from sys_xifenfei
                     *
ERROR at line 1:
ORA-00942: table or view does not exist


SQL&gt; select count(*) from chf.chf_xifenfei;

  COUNT(*)
----------
       868

SQL&gt; select count(*) from dba_tables;
select count(*) from dba_tables
                     *
ERROR at line 1:
ORA-00942: table or view does not exist
</pre>
<p><strong>解决问题</strong></p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt; alter system flush shared_pool;

System altered.


SQL&gt; select count(*) from dba_tables;

  COUNT(*)
----------
       869

SQL&gt; select count(*) from sys_xifenfei;

  COUNT(*)
----------
       867
</pre>
<p><strong>MOS解释</strong><br />
ORA-4043 On DBA_* Views If They Are Described In Mount Stage [ID 296235.1]</p>
<pre class="brush: bash; title: ; notranslate">
Available workarounds are:
1) Don't describe the dba_* views at mount stage.
OR
2) If you issue DESC of any DBA_*views at mount stage,
    then shutdown and restart the DB instance.
OR
3) Flush the shared pool.
SQL&gt; Alter system flush shared_pool;
and then reissue the failing command. 
</pre>
<p>在10g中open库后提示也为类此ORA-04043: object dba_tables does not exist</p>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/03/%e6%8e%88%e6%9d%83%e7%94%a8%e6%88%b7%e8%ae%bf%e9%97%ae%e6%95%b0%e6%8d%ae%e5%ad%97%e5%85%b8%e4%b8%89%e7%a7%8d%e6%96%b9%e5%bc%8f.html" rel="bookmark" class="crp_title">授权用户访问数据字典三种方式</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/06/oracle-11g%e4%b8%a2%e5%a4%b1access%e6%81%a2%e5%a4%8d%e6%96%b9%e6%b3%95.html" rel="bookmark" class="crp_title">Oracle 11g丢失access$恢复方法</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/10/dual-%e7%bc%ba%e5%b0%91%e5%90%8c%e4%b9%89%e8%af%8d%e8%a7%a3%e5%86%b3.html" rel="bookmark" class="crp_title">dual 缺少同义词故障解决</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2018/02/18c-cancel-sql.html" rel="bookmark" class="crp_title">18c新特性：alter system cancel sql</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/12/exadata%e4%b8%8e%e9%9d%9eexadata%e6%90%ad%e5%bb%badatagurad%e5%85%b3%e4%ba%8eehcc%e7%89%b9%e6%80%a7%e6%b5%8b%e8%af%95.html" rel="bookmark" class="crp_title">EXADATA与非EXADATA搭建DATAGURAD关于EHCC特性测试</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2024/07/grant-select-any-table-on-schema.html" rel="bookmark" class="crp_title">Oracle23ai新特性&#8212;SCHEMA级授权( grant select any table on schema)</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/08/oracle%e7%94%a8%e6%88%b7%e9%87%8d%e5%91%bd%e5%90%8d.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/02/%e6%b8%85%e9%99%a4%e6%8e%89shared-pool%e4%b8%ad%e6%9f%90%e6%9d%a1sql%e8%af%ad%e5%8f%a5%e6%96%b9%e6%b3%95.html" rel="bookmark" class="crp_title">清除掉shared pool中某条sql语句方法</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/07/dul%e6%8c%96oracle-8-0%e6%95%b0%e6%8d%ae%e5%ba%93.html" rel="bookmark" class="crp_title">DUL挖ORACLE 8.0数据库</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/12/%e5%88%9b%e5%bb%ba%e8%a7%86%e5%9b%be%e6%8f%90%e7%a4%baora-01031.html" rel="bookmark" class="crp_title">创建视图提示ORA-01031</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/08/%e5%88%a9%e7%94%a8%e7%89%a9%e5%8c%96%e8%a7%86%e5%9b%be%e5%88%b7%e6%95%b0%e6%8d%ae.html" rel="bookmark" class="crp_title">利用物化视图刷数据</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2016/09/modify-obj-dataobj-_next_object.html" rel="bookmark" class="crp_title">通过update _NEXT_OBJECT 实现obj$.obj#和obj$.dataobj#跳号</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2012/03/%e6%a8%a1%e6%8b%9fora-04043%e5%b9%b6%e8%a7%a3%e5%86%b3.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
