在Oracle 11.2.0.3.0中执行awrrpt.sql生成awr报告报ora-06502错误
ERROR:ORA-06502:PL/SQL:numeric or value error:character string buffer too small ORA-06502:at "YSY.DBMS_WORKLOAD_REPOSITORY", line 919 ORA-06502:at line 1
这是个bug再,也给出解决方法:
Bug 13527323 - ORA-6502 generating HTML AWR report using awrrpt.sql in Multibyte characterset database [ID 13527323.8]
解决方法:
update WRH$_SQLTEXT set sql_text = SUBSTR(sql_text, 1, 1000); commit;