错误信息:java.sql.SQLException: Listener refused the connection with the following error:
ORA-12519, TNS:no appropriate service handler found
oracle默认是最大访问数是150,一般来说是够用了,
--查看当前使用了多少
select * from v$process;
-- 查看最大访问数
select value from v$parameter where name='processes';
-- 修改最大访问数 (需要dba权限) 我这里修改了1000
alter system set processes=1000 scope=spfile;
然后重启oracle服务,不重启不会生效
-- 如果修改1000后还是超的话,就检查一下程序,是不是用完后没有关闭数据库连接;