ORA-20001 selecting from DBA_TAB_STATISTICS

SQL> SELECT DISTINCT STALE_STATS FROM DBA_TAB_STATISTICS;
SELECT DISTINCT STALE_STATS FROM DBA_TAB_STATISTICS
                                                  *
ERROR at line 1:
ORA-20001: BIN$N5R12EQSEATGQKJAIQFV8G==$0 is an invalid identifier
ORA-06512: at "SYS.DBMS_STATS", line 2082
ORA-06512: at "SYS.DBMS_STATS", line 2098
ORA-06512: at "SYS.DBMS_STATS", line 26789
ORA-06512: at line 1

SQL> SHOW USER
USER is "SYS"
SQL> PURGE DBA_RECYCLEBIN;
DBA Recyclebin purged.
SQL> SELECT DISTINCT STALE_STATS FROM DBA_TAB_STATISTICS;
STA
---
NO
YES
 
 
发现一个类似bug(11.2.1和11.2.2都有补丁),不过碰到的这个问题没有去打补丁,purge回收站解决的 :
 
 
Bug 9930151 - ORA-20001 selecting from DBA_TAB_STATISTICS [ID 9930151.8]

  修改时间 09-FEB-2011     类型 PATCH     状态 PUBLISHED 
</SCRIPT. 

Bug 9930151  ORA-20001 selecting from DBA_TAB_STATISTICS

 This note gives a brief overview of bug 9930151. 
 The content was last updated on: 07-FEB-2011
  Click here for details of each of the sections below.

Affects:

Product (Component)Oracle Server (Rdbms)
Range of versions believed to be affectedVersions BELOW 12.1
Versions confirmed as being affected
Platforms affectedGeneric (all / most platforms affected)

Fixed:

This issue is fixed in

Symptoms:

Related To:

Description

ORA-20001 errors are possible when querying statistics data dictionary
views if table names have non-alphanumeric characters. 
This includes if objects are present in the recycle bin.

eg:
 SELECT STALE_STATS FROM DBA_TAB_STATISTICS WHERE TABLE_NAME = '/X/Y';
 ^
 ORA-20001: /X/Y is an invalid identifier
 ORA-06512: at "SYS.DBMS_STATS", line 2082
 ...

Rediscovery Notes:
 If you are using table names with non-alphanumeric characters, and
 querying the statistics dictionary views for these tables gives an
 ORA-20001 error you are probably hitting this bug.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值