解决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

解决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连接成功。

目录
相关文章
|
6月前
|
NoSQL Redis
Lettuce: Connection to x.x.x.x not allowed. This connection point is not known in the cluster view
Lettuce: Connection to x.x.x.x not allowed. This connection point is not known in the cluster view
|
11月前
|
SQL Oracle 关系型数据库
数据库连接报错之IO异常(The Network Adapter could not establish the connection)
有以下四个原因: 1. ORACLE数据库 1、oracle配置 listener.ora 和tnsnames.ora 文件里面查看是否配置正确
1787 1
|
Linux
七个办法只有一个有效:200 PORT command successful. Consider using PASV.425 Failed to establish connection.
七个办法只有一个有效:200 PORT command successful. Consider using PASV.425 Failed to establish connection.
434 0
七个办法只有一个有效:200 PORT command successful. Consider using PASV.425 Failed to establish connection.
执行HQL直接被退出:Remote side unexpectedly closed network connection
执行HQL直接被退出:Remote side unexpectedly closed network connection
1080 0
执行HQL直接被退出:Remote side unexpectedly closed network connection
Jmeter问题之:解决 Cannot send data to network connection
Jmeter问题之:解决 Cannot send data to network connection
178 0
Jmeter问题之:解决 Cannot send data to network connection
Client network socket disconnected before secure TLS connection was established
标题:Client network socket disconnected before secure TLS connection was established 我在使用 SAP Spartacus 连接 Commerce Cloud 后台 OCC API 时,遇到如下错误消息:
Client network socket disconnected before secure TLS connection was established
|
Java 应用服务中间件 数据库
Connection reset by peer
部署项目时A服务启动失败,报错: 14-Aug-2019 12:52:49.860 SEVERE [main] org.springframework.web.context.ContextLoader.
11332 0

热门文章

最新文章