Io 异常: The Network Adapter could not establish the connection
来源:互联网 发布:java 拖动滑块验证码 编辑:程序博客网 时间:2024/04/30 01:45
这个异常的出现一般与数据库和你的PC的设置有关
这种异常的出现大致上有下面几种:
1。IP错误。
在设置URL时错误,例如:jdbc:oracle:thin:@192.168.0.36:1521:sharp
数据库服务器不正确:ping 服务器IP是否正确。不正确,将URL更改为正确
端口号错误:一般不会错误。
进行一下操作:在DOS上键入sqlplus,检查oracle是否开启
一却正常,执行下面第2步。
2。防火墙
如果机器上安装有放火墙,可能是服务器端口号屏蔽而造成的。关闭防火墙后,尝试重新连接。
仍然不行,执行第3步。
3。数据库监听未启动 修改PC上注册表中的ImagePath值。
我下面以现在主流的数据库ORACLE为例
重新手动启动数据库监听
4.你的jdbc驱动用得有问题,换个ojdbc14.jar
- Io 异常: 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
- Io 异常: 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
- Io 异常: 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
- Io 异常: 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
- Io 异常: 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
- Io 异常: 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
- 正则表达式
- Cross-domain policy和/WEB-INF/flex/proxy-config.xml
- Android 分享功能
- 邮件发送~
- 两种方式使用android时间和日期控件
- Io 异常: The Network Adapter could not establish the connection
- DIY的文本框水印插件
- 指针数组和数组指针的区别
- HTTP协议详解
- Bit Operations
- #pragma pack(n) 对齐用法详解
- 彻底搞定C指针-——第五篇:函数参数的传递(值传递、地址传递、引用传递)
- XML自定义窗口代码欣赏1
- 一种自定义网络通信协议