在Java中出现Socket读取超时异常的原因是什么?
我遇到了以下问题:
### Cause: java.sql.SQLRecoverableException: IO Error: Socket read timed out
; SQL []; IO Error: Socket read timed out; nested exception is java.sql.SQLRecoverableException: IO Error: Socket read timed out
在Java中出现Socket读取超时异常的原因是什么?
我遇到了以下问题:
### Cause: java.sql.SQLRecoverableException: IO Error: Socket read timed out
; SQL []; IO Error: Socket read timed out; nested exception is java.sql.SQLRecoverableException: IO Error: Socket read timed out
请参考 http://docs.oracle.com/javase/6/docs/api/java/sql/SQLRecoverableException.html 了解更多相关信息!
请尝试检查:
连接语句中的输入参数
Connection con=DriverManager.getConnection(
"jdbc:oracle:thin:@localhost:1521:xe","username","password");
检查数据库帐户的到期日期
尝试重新启动数据库
尝试重新连接