java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection解决方案
2014-04-18 14:29
585 查看
这个问题是昨天在将一个现有无误的项目导入到Myeclipse6.0中运行时遇到,此异常是指网络适配器无法建立连接,产生此类错误的原因有很多,经过自己的分析和向别人请教,最后解决了此问题。
我这错误问题是在:Oracle安装目录下的listener.ora和tnsnames.ora 文件中给分配的端口号是1522,而不是我们平常用的1521。所以只要修改配置文件中的端口号即可。
这个问题还可能的原因:
1、数据库服务或监听未启动
2、数据库连接参数书写不正确
相关文章推荐
- java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection解决方案
- Caused by: java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection
- (java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection)
- java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection可能问题之一
- 异常java.sql.SQLException: Io exception:The Network Adapter could not establish connection
- java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection
- java.sql.SQLException: Io 异常: The Network Adapter could not establish the connec
- java.sql.SQLException: IO 错误: The Network Adapter could not establish the connection
- java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection
- java.sql.SQLException: Io 异常: The Network Adapter could not establish the connec
- Java.Sql.Sqlexception: Io Exception: The Network Adapter Could Not Establish The Connection
- java.sql.SQLException: Io 异常:The Network Adapter could not establish the connect
- java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection
- 关于java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection
- Io 异常: The Network Adapter could not establish the connection解决方案
- java.sql.SQLException: The Network Adapter could not establish the connection
- java.sql.SQLException: The Network Adapter could not establish the connection
- Io 异常: The Network Adapter could not establish the connection解决方案
- Io 异常: The Network Adapter could not establish the connection解决方案
- java.sql.SQLException: The Network Adapter could not establish the connection