os:rhel6.8 64 2.6.32
db:oracle 11.2.0.3.11 rac
执行DBMS_SQLTUNE优化sql或dbms_stats收集统计信息报错:ORA-20003: Specified bug number (16470836) does not exist
这个错误很早之前就遇到了,当时查了mos,已经大概找到原因。但是一直没有停机窗口来维护。这次在执行DBMS_SQLTUNE优化sql时又遇上了,这里做一个简单的记录。
这套系统是从windows平台rac迁移到linux平台rac的,由于两个平台没有互相匹配的补丁号,当时在安装linux的rac时,找了一个与windows上版本(patch bundle 31)相近的11.2.0.3.11来打补丁,使用物理dg做迁移,在迁移完成后没有执行upgrade的sql。
mos上说的原因: This issue is caused by a mismatch between the DBMS_STATS package and the binary executable.包与实际的二进制可执行文件不匹配,联想到当时迁移后没有执行upgrade,基本确认就是这个问题。
解决方法是重建dbms_stats包。
mos原文如下:
Gathering Statistics with DBMS_STATS Fails Raising 'ORA-20003: Specified Bug Number (%s) Does Not Exist' Where the Bug number Reported is 5099019 or 16470836 (Doc ID 1180514.1)
db:oracle 11.2.0.3.11 rac
执行DBMS_SQLTUNE优化sql或dbms_stats收集统计信息报错:ORA-20003: Specified bug number (16470836) does not exist
这个错误很早之前就遇到了,当时查了mos,已经大概找到原因。但是一直没有停机窗口来维护。这次在执行DBMS_SQLTUNE优化sql时又遇上了,这里做一个简单的记录。
这套系统是从windows平台rac迁移到linux平台rac的,由于两个平台没有互相匹配的补丁号,当时在安装linux的rac时,找了一个与windows上版本(patch bundle 31)相近的11.2.0.3.11来打补丁,使用物理dg做迁移,在迁移完成后没有执行upgrade的sql。
mos上说的原因: This issue is caused by a mismatch between the DBMS_STATS package and the binary executable.包与实际的二进制可执行文件不匹配,联想到当时迁移后没有执行upgrade,基本确认就是这个问题。
解决方法是重建dbms_stats包。
mos原文如下:
Gathering Statistics with DBMS_STATS Fails Raising 'ORA-20003: Specified Bug Number (%s) Does Not Exist' Where the Bug number Reported is 5099019 or 16470836 (Doc ID 1180514.1)
|