No resources currently available in pool mcmRACDataSource to allocate to applications, please increa

原因:weblogic服务器节点超载

日志:No resources currently available in pool xxxx to allocate to applications, please increase the size of the pool and retry…

检查:测试weblogi 数据源-检测

(异常忘记截图了)
No resources currently available in pool mcmRACDataSource to allocate to applications, please increa_第1张图片

发现:当前活动数=最大活动。节点状态为超载。

解决:

  • 检查数据库连接数
select value from v$parameter where name = 'processes'
  • 查看当前会话数量
 select * from v$session 
  • 查询当前用户下会话激活的会话
select * from v$session  where username='TAMESSAGE' and status='ACTIVE'
发现大量会话非激活

查询非激活会话

select count (*),v.PREV_SQL_ADDR,v.PREV_HASH_VALUE
from v$session v where username='TAMESSAGE' group by v.PREV_SQL_ADDR,v.PREV_HASH_VALUE
  order by count (*) desc ;

No resources currently available in pool mcmRACDataSource to allocate to applications, please increa_第2张图片

查询count比较大的会话内容

  
  select * from v$sql s where s.ADDRESS= '0000000A5759D3C0' and s.HASH_VALUE= '3453647517' ;

No resources currently available in pool mcmRACDataSource to allocate to applications, please increa_第3张图片

处理:这里可以看到会话所执行的sql语句。然后拉出来单独跑下发现异常耗时。优化即可。

你可能感兴趣的:(异常问题,数据库)