oracle 无法从套接字中获取更多数据

最近jdbc连接oracle10g老是报 oracle 无法从套接字中获取更多数据 ,在debug的时候 发现是DriverManager.getConnection(jdbcurl,username,password);
报错,为什么?

那就没遇到过了,以前遇到过的都是在服务器上。
不过你这个错应该是在应用到数据的连接上传数据时出了错。。

你电脑装了什么杀毒软件,防火墙,360,等会阻止连接的?

连接超时,或网络连接不稳定,

ORA-17410: No more data to read from socket

Your database connection has timed out, either due to network problems or due to Oracle reaching the IDLE_TIME profile limit.

Your application however tried to use the connection, but as the connection has closed, failed to do so.
This error mostly happens when using connection pools. Normally, when a connection is timed out or gone, the application should automatically reconnect.
Failure to do so results in this error.

是不是url或用户名密码配置有错导致

比如,如果用了连接池,连接池设置最大10,获取数据库链接在拿到第10个连接后,第11个连接就一直在等待,如果这个等待时间太长,就会超时,拿不到数据库链接。

还有就是网络,应用与数据库不在一台机子上的话,如果网络带宽不够,也会造成这种错误。
像你这种情况好像是最近网络不稳定造成的。(有人在内网里传个2,3G等大文件,那带宽可能就会影响应用到数据库的连接了)

把这360等会阻止连接的软件停了