日期:2014-05-16  浏览次数:20691 次

ORA-12519:TNS:no appropriate service handler found 的解决方法

基本现象:

在Windows XP + Oracle 10g 的环境下跑Java程序的Junit测试用例时,每当跑到120几个JunitTest时就会报如下错误,中间似乎有个很短的停顿刷新,然后又可以正常跑后面程序:

Listener refused the connection with the following error: ORA-12519, TNS:no appropriate service handler found The Connection descriptor used by the client was:......

?

调查原因:

可能是数据库中当前的连接数目已经超过了它能够处理的最大值。

?

解决方案:

1.获取DB当前连接数:

SQL> select count(*) from v$process;?? --当前连接数

????????? COUNT(*)

????????? 28

?

2<