Io 异常: The Network Adapter could not establish the connection
来源:互联网 发布:中国大百科全书淘宝 编辑:程序博客网 时间:2024/04/30 04:08
Io 异常: The Network Adapter could not establish the connection
这个异常的出现一般与数据库和你的PC的设置有关
这种异常的出现大致上有下面几种:
1。IP错误。
在设置URL时错误,例如:jdbc:oracle:thin:@192.168.0.36:1521:sharp
数据库服务器不正确:ping 服务器IP是否正确。不正确,将URL更改为正确
端口号错误:一般不会错误。
进行一下操作:在DOS上键入sqlplus,检查oracle是否开启
一却正常,执行下面第2步。
2。防火墙
如果机器上安装有放火墙,可能是服务器端口号屏蔽而造成的。关闭防火墙后,尝试重新连接。
仍然不行,执行第3步。
我下面以现在主流的数据库ORACLE为例
重新手动启动数据库监听:
1:开始 → 运行→ 输入CMD→
d:>lsnrctl
LSNRCTL> status
或者
LSNRCTL> start
- 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
- 利用handler.post()更新UI
- windows与linux下sigar的系统依赖文件配置! .
- java多线程 sleep()和wait()的区别
- mq put消息队列慢
- ubuntu下安装JDK详解
- Io 异常: The Network Adapter could not establish the connection
- session 机制和 httpsession 详解 。
- CentOS 6.2 下安装Java jdk tomcat
- pb中数据窗口函数小结
- 视频播放程序实例
- Java(IO流)
- JAVA this关键字的使用
- VC中stdafx.h中afx代表什么意思
- jxl调用模版导出Excel