数据库节点响应缓慢,部分用户业务受到影响。
查看数据库告警日志,開始显示ORA-07445错误,然后是大量的ORA-04031错误和ORA-00600错误。
检查数据库日志,数据库仍处于活动状态的信息例如以下:
Sat Jul 17 07:51:52 2010
Thread 1 advanced to log sequence 266272
Current log# 2 seq# 266272 mem# 0: /dev/rlv_redo121
Current log# 2 seq# 266272 mem# 1: /dev/rlv_redo122
因为数据库用户业务繁忙,活动会话较多,占用了大量的Shared Pool内存。同一时候Shared Pool内部參数配置不合理导致产生大量的内存碎片。因此,导致部分进程无法申请到足够的Shared Pool内存,出现ORA-07445错误和ORA-04031错误。因为Shared Pool压力越来越大,最后还引发ORA-00600错误。
% sqlplus /nolog
SQL> conn /as sysdba;
Connected.
SQL> alter system set "_shared_pool_reserved_pct"=10 scope=spfile;
SQL> alter system set "_shared_pool_reserved_min_alloc"=4000 scope=spfile;
SQL> alter system set "_kghdsidx_count"=2 scope=spfile;
SQL> shutdown immediate
SQL> startup
SQL> select a.ksppinm "Parameter", b.ksppstvl "Session Value", c.ksppstvl "Instance Value"
from x$ksppi a, x$ksppcv b, x$ksppsv c
where a.indx = b.indx and a.indx = c.indx and a.ksppinm = '_shared_pool_reserved_pct';