Io 异常: The Network Adapter could not establish the connection
这个异常的出现一般与数据库和你的PC的设置有关
这种异常的出现大致上有下面几种:
1。IP错误。
在设置URL时错误,例如:jdbc:oracle:thin:@192.168.248.154:1521:test
数据库服务器不正确:ping 服务器IP是否正确。不正确,将URL更改为正确
端口号错误:一般不会错误。
2。防火墙
如果机器上安装有放火墙,可能是服务器端口号屏蔽而造成的。关闭防火墙后,尝试重新连接。
3。数据库监听未启动
启动Oracle的监听服务
相关推荐
The Network Adapter could not establish the connection
当遇到“连接不到数据库”的问题时,通常会显示如"Io异常: The Network Adapter could not establish the connection"这样的错误信息。这个异常表明应用程序无法与数据库建立网络连接,可能由多种原因造成。以下是...
6. 连接 Oracle 时抛出如下异常:java.sql.SQLException: Io exception: The Network Adapter could not establish connection 解决方法: * 检查 Oracle 实例是否正常运行。 * 检查连接数据库的用户名和密码是否...
当你尝试`Test Driver`时,可能会遇到“Error while performing database login with the oracle.jdbc.driver.OracleDriver driver: Io exception: The Network Adapter could not establish the connection”的错误...