|
至于 dbms_stats包,前天早上我还遇到一个bug,已经mail通知alibaba所有dba了:
hi,all!
今天早上对数据库对象进行分析的时候遭遇一个bug ,当时弄的我莫名其妙,某些表和索引都存在这个问题,有时表重新单个分析就好了,而索引在rebuild之后才好,查了下metalink 发现是bug ,解决办法就是设置 百分比为 99.999
The information in this article applies to:
Oracle Server - Enterprise Edition - Version: 9.2.0.4
This problem can occur on any platform.
Errors
ORA-6512 "at %sline %s"
ORA-904 %s: invalid identifier / invalid column name
Symptoms
Analyze with DBMS_STATS with 100 percent gives the following error:
ORA-904: : invalid identifier
ORA-6512: at "SYS.DBMS_STATS", line 9375
ORA-6512: at "SYS.DBMS_STATS", line 9389
ORA-6512: at line 1
Cause
While using dbms_stats, if we use 100 percent the statistics are gathered in "compute statistics" mode. The compute statistics mode of gathering statistics causes the error ORA-904. There is an internal Bug logged for this.
Fix
Use percentage to be less than 100.
Even 99.999 works fine.
This issue has been resolved in 9.2.0.5
This is not recommended but, ANALYZE command can be used too. |
|