这个问题之前处理过,也是个bug而已,隐含参数_kgl_large_heap_warning_threshold默认值是2M,该参数控制加载到内存中对象的大小,当加载的对象大于2M时,就会在alert警告文件中进行提示。该参数默认值在10.2.0.2开始调整到了50M。这库是个测试库,还没来得及升级,准备先进性测试到处工作之后再进行升级。
处理如下:
SQL> select a.ksppinm name,b.ksppstvl value,a.ksppdesc description from x$ksppi a,x$ksppcv b where a.indx = b.indx and a.ksppinm = '_kgl_large_heap_warning_threshold';
NAME
--------------------------------------------------------------------------------
VALUE
--------------------------------------------------------------------------------
DESCRIPTION
--------------------------------------------------------------------------------
_kgl_large_heap_warning_threshold
2097152
maximum heap size before KGL writes warnings to the alert log
SQL> select 2097152/1024/1024 MB from dual;
MB
----------
2
SQL> alter system set "_kgl_large_heap_warning_threshold"=52428800 scope=spfile;
System altered.
SQL> shutdown immediate;
Database closed.
Database dismounted.
Oracle instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 2147483648 bytes
Fixed Size 1220432 bytes
Variable Size 419430576 bytes
Database Buffers 1711276032 bytes
Redo Buffers 15556608 bytes
Database mounted.
Database opened.
SQL> select a.ksppinm name,b.ksppstvl value,a.ksppdesc description from x$ksppi a,x$ksppcv b where a.indx = b.indx and a.ksppinm = '_kgl_large_heap_warning_threshold';
NAME
--------------------------------------------------------------------------------
VALUE
--------------------------------------------------------------------------------
DESCRIPTION
--------------------------------------------------------------------------------
_kgl_large_heap_warning_threshold
52428800
maximum heap size before KGL writes warnings to the alert log
