手机版
你好,游客 登录 注册
背景:
阅读新闻

oracle desc dba_data_files视图报ORA-4043错误小记

[日期:2014-05-21] 来源:Linux社区  作者:hn_fuhaibo [字体:大 中 小]

今天在做测试的时候想查询数据文件对应的表空间信息,desc dba_Data_files视图时发现报不存在这个对象。当时以为自己的DB在mount下没法查询是正常的,后来在DB OPEN下查询 dba_data_files还是报不存在这个对象。顿时感觉疑惑了,其他对象都查询正常,唯独DBA_*的视图都不能正常查询使用。查询MOS(文档 ID 296235.1) 发现如下描述:

APPLIES TO:
 Oracle Database - Enterprise Edition - Version 8.1.7.4 to 11.2.0.1 [Release 8.1.7 to 11.2]
 Information in this document applies to any platform.
 SYMPTOMS
 If you describe any DBA_* Views (Data dictionary views) in a mount stage, than you will not be able to
  describe those views even after opening the database.
 You can test as follows:
 + Shutdown the database.
 SQL> Shutdown immediate
 + Mount the database.
 SQL> Startup Mount
 + Describe any Data Dictionary view.
 SQL> DESC DBA_DATA_FILES
 ERROR:
 ORA-04043: object DBA_DATA_FILES does not exist.
 + Open the Database.
 SQL> ALTER DATABASE OPEN;
 Database altered
 + Describe the same Data Dictionary view.
 SQL> DESC DBA_DATA_FILES
 ERROR:
 ORA-04043: object DBA_DATA_FILES does not exist
 *** Error will appear till we bounce the Database / flush the shared pool.
 CAUSE
 This is related to Bug 2365821
 Abstract: ORA-4043 ON DBA_* TABLES IF THEY ARE DESCRIBED IN A MOUNT STAGE.
 SOLUTION
 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> Alter system flush shared_pool;
 and then reissue the failing command.

正是由于我在数据库mount状态下查询dba_data_files视图,导致遭遇oracle 数据库产品的Bug 2365821,数据库即使OPEN下也不能正常使用dba_*视图。

Oracle视图基础详解与实例 http://www.linuxidc.com/Linux/2014-02/97416.htm

物化视图定义不当引发Oracle性能问题 http://www.linuxidc.com/Linux/2014-02/97083.htm

Oracle 字典和动态视图 http://www.linuxidc.com/Linux/2013-12/93509.htm

Oracle物化视图测试 http://www.linuxidc.com/Linux/2013-11/93185.htm

Oracle【定期刷新】的【基于连接】的物化视图 http://www.linuxidc.com/Linux/2013-11/92863.htm

更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12

本文永久更新链接地址:http://www.linuxidc.com/Linux/2014-05/102006.htm

linux
相关资讯       Oracle视图  ORA-4043 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款