ORA-20001 selecting from DBA_TAB_STATISTICS

简介: SQL> SELECT DISTINCT STALE_STATS FROM DBA_TAB_STATISTICS;SELECT DISTINCT STALE_STATS FROM DBA...
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 affected Versions BELOW 12.1
Versions confirmed as being affected
Platforms affected Generic (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.
目录
相关文章
|
7月前
|
容器
How to set the Undo_tablespace in PDB in Physical Standby RAC Database. (Doc ID 2726173.1)
How to set the Undo_tablespace in PDB in Physical Standby RAC Database. (Doc ID 2726173.1)
66 1
|
Oracle 关系型数据库 数据库
|
SQL Oracle 关系型数据库
11.2 Job Seperation causes WARNINGS and ORA-15025 ORA-27041 With Certain Users (文档 ID 1317692.1)
<p>11.2 Job Seperation causes WARNINGS and ORA-15025 ORA-27041 With Certain Users (文档 ID 1317692.1)</p> <p><br></p> <p></p> <p style="line-height:1.5; font-family:Simsun; font-size:12px"><stron
2061 0
|
SQL
不经意发现的dba_objects和dba_tables中的细节
今天有一个同学问我一个问题,因为白天比较忙也没有在意,在下班后坐地铁的时候抽空看了这个问题,感觉还是蛮有意思的。但是当时也没有任何答案,就准备自己回去好好实验一下再做答复,至少不能敷衍别人嘛。
1219 0
ORA-14099: all rows in table do not qualify for specified partition
1. 创建分区表 create table range_part_range(id number, deal_date date, contents varchar2(1000))partition by range(deal_date)(  ...
869 0
|
存储 SQL Oracle
PLSQL_Oracle簇表和簇表管理Index clustered tables(案例)
2012-06-08 Created By BaoXinjian 一、摘要 簇表是Oracle中一种可选、的存储表数据的方法。使用簇表可以减少磁盘I/O,改善访问簇表的联结所带来的资源开销,本文讲述了簇表的原理、创建以及管理簇表等。
1007 0