解决The Network Adapter could not establish the connection

解决1 主机与虚拟机ping不通

解决2 状态: 失败 -测试失败: IO 错误: The Network Adapter could not establish the connection

本次尝试在主机连接虚拟机中的oracle12c,经过折腾后成功,总结如下:

环境:VMware ,oracle12 ,主机和虚拟机均安装Windows10

问题1 主机与虚拟机ping不通

1.关闭虚拟机的防火墙,主机不需要关闭。
这样,主机可以ping通虚拟机,而虚拟机ping不同主机。
2.连接模式,选择自定义中的VMnet8(NAT 模式)
本模式下虚拟机可以ping通主机(主意:主机不需要关闭防火墙)

tip1,如何查看本机ip

输入命令ipconfig
IPv4 地址 … … … … : 192.168.244.xxx
对应的为本机地址。

tip2 ,ping 目标机器ip

ping 192.168.244.xxx

解决2 状态: 失败 -测试失败: IO 错误: The Network Adapter could not establish the connection

从以下三个方面入手:
1. 检查格式是否正确,URL,全局名,密码等等

jdbc:oracle:thin:@192.168.186.xxx:1521:orcl

其中,thin为连接方式,192.168.186.xxx为安装了oracle12c的机器ip,1521是端口,orcl是全局名。
当然,还有username和password分别是你要连接的数据库如OLAPSYS和对应的密码(如何创建用户和修改登录权限,请查看Oracle创建用户、表(1)
2. jar包是否引用正确,如果用第三方连接如myeclipse。jar包位置在C:\app\orcl\product\12.1.0\dbhome_1\jdbc\lib
3. 添加该IP到监听器
3.1打开Net Manager
3.2添加新的IP和对应的1521端口
关闭,重启监听服务(实在怕麻烦,重启虚拟机就行)
3.3连接成功。

时间: 2024-07-30 20:40:44

解决The Network Adapter could not establish the connection的相关文章

the network adapter could not establish the connection 错误原因。

问题描述 这个错误,我是在用win7是报的错,以前的2003没问题.查了很多,不是说连接错,就是防火墙问题.可是都没解决.最后我把原来的javaIBM1.5换成了java1.6就好了.我想知道这是什么原因呢?????

连接数据库报错Io 异常: The Network Adapter could not establish the

问题描述 一个纠结好久的问题,小女对JAVA实在是门外汉,只能求教诸位高人了...起因是负责运营的系统平时连接都很正常,但是到业务高峰期服务器经常发生瞬堵,检查后台日志,报错信息如下:解决方案二:<2011-4-2下午05时30分29秒CST><Info><JDBC><cnsz030356><ICSs-GCCSFServer1146><ExecuteThread:'23'forqueue:'weblogic.kernel.Default'&

急 hibernate 循环执行insert时出现 Io 异常: The Network Adapter could not establish the

问题描述 org.springframework.jdbc.UncategorizedSQLException:Hibernateoperation:Cannotopenconnection;uncategorizedSQLExceptionforSQL[???];SQLstate[null];errorcode[17002];Io异常:TheNetworkAdaptercouldnotestablishtheconnection;nestedexceptionisjava.sql.SQLExc

Oracle 连接Io exception : The Network Adapter could not

具体错误 java.sql.SQLRecoverableException: Io 异常: The Network Adapter could not establish the connection  at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:101)  at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.j

the networ-代码报The network adapter.....

问题描述 代码报The network adapter..... java开发+中间件tomcat+oracle,应用运行往数据库中插入数据,运行一段时间报The network adapter could not establish the connection 解决方案 你的网络连接断开了,是不是你数据库一段时间没有插入数据,被断开了.或者你的网卡连接被服务器等断开了.

vmware-VMware Network Adapter VMnet受限怎么办

问题描述 VMware Network Adapter VMnet受限怎么办 在Win8.1中VMware Network Adapter VMnet受限怎么办? 解决方案 受限是什么意思? 防火墙拦截了?

14.5. Network adapter

ethtool eth1 neo@shenzhen:~/doc/Linux/xhtml$ sudo ethtool eth1 Settings for eth1: Supported ports: [ TP MII ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10baseT/Ha

tomcat隔一段时间报错The NetWork adapter could not connection

问题描述 具体截图如上,报错之后继续运行,估计是连接池配置问题,所以想问问这个Errorspring-proxool提示的是什么意思? 解决方案 解决方案二:换成自己的ip地址试试解决方案三:引用1楼star19860411的回复: 换成自己的ip地址试试 主要是这东西本地跑的是好的就是在服务器跑起来就这样同样都是连的另一台服务器的数据库

JDBC连接Oracle数据库常见问题及解决方法

oracle|解决|数据|数据库|问题 Jbuilder正确连接 oracle 9i需要注意的几个问题 oracle8以上的应该都使用classes12.jar文件作为jdbc驱动: 正确设置windows的classpath和jbuilder中的enterprise setup .configure libraries,将casses12.jar路径正确添加到上述需要设置的地方: 进入database pilot,在database pilot中,file---new 在driver列表中如果