ORACLE BUG:dba_data_files视图不存在

现象:在测试库做实验的时候,想要查询dba_data_file视图,结果提示视图不存在。

过程:查询dba_data_file视图,系统提示视图不存在。查看实例状态,mount状态,将实例OPEN。重新查询,仍然失败!!

点击(此处)折叠或打开

  1. SQL> desc dba_data_files;
  2. ERROR:
  3. ORA-04043: object dba_data_files does not exist




  4. SQL>
  5. SQL>
  6. SQL> select status from v$instance;


  7. STATUS
  8. ------------
  9. MOUNTED


  10. SQL> alter database open;


  11. Database altered.


  12. SQL> select * from dba_data_files
  13.   2 ;
  14. select * from dba_data_files
  15.               *
  16. ERROR at line 1:
  17. ORA-00942: table or view does not exist



官方描述:
     
     BUG影响的版本: 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.

   BUG描述: 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.

   解决方法:
    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.




参考:
    http://www.linuxidc.com/Linux/2014-05/102006.htm
     MOS 文档ID 296235.1 文档 ID 296235.1

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/31142205/viewspace-2113376/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/31142205/viewspace-2113376/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值