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
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
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 |
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.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/756652/viewspace-694625/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Spark Extracting,transforming,selecting featuresSparkORM
- Indexing, Selecting & Assigning(pandas學習二)Index
- ORA-20001: Latest xml inventory is not loaded into tableXML
- Oracle 18.3 ORA-12012 ORA-20001Oracle
- From now on
- 神From不再 From Software的內憂與外患
- from cmake make
- Array.from()
- Extract rows from a CORRUPT table creating ROWID from DBA_EXTENTS
- from bson import ObjectIdImportObject
- from selenium import webdriverImportWeb
- 7.96 FROM_TZ
- checkboxList operate in windows fromWindows
- image to/from base64
- G. Gifts from Knowledge
- get_data_from_yml
- learn from collection framework designFramework
- Dockerfile 小記之FROMDocker
- python from import 出錯PythonImport
- Construct String from Binary TreeStruct
- TensorFlow Build from Source for macOSUIMac
- javascript Array.from()方法JavaScript
- Infix:from the office web of KotlinWebKotlin
- FROM JAVA BUILDERS TO KOTLIN DSLSJavaUIKotlin
- SQLite中的FROM子句SQLite
- where to start, from where the end
- 023 Given an integer n. get the number of 0, 2, 4 from all the values from [0, n]
- Build a TensorFlow pip package from sourceUIPackage
- RSA總結 From La神
- From Software 的「鋼之魂」
- From Apprentice To Artisan 筆記(一)APP筆記
- Oracle 建立PDB-from ScratchOracle
- find the replications and articles from distribution serverServer
- From Apprentice To Artisan 翻譯稿APP
- gsap基礎一[from,to,fromTo]
- Export/import Datas To/from a Csv FileExportImport
- The Best Way to Export an SVG from SketchExportSVG
- Array.from和 Array.of