ERROR:
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
ORA-06512: at "SYS.DBMS_WORKLOAD_REPOSITORY", line 919
ORA-06512: at line 1
然后生成AWR报告的过程就终止了,查看生成的AWR报告,发现报告时不完整的,AWR报告到 Complete List of SQL Text部分就结束了,且最后是以一个非常长的sql语句结束的,且这个sql语句还没有显示完整。查看MOS后发现,这是个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;