解决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连接成功。
解决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 解决方法
1.IP错误: 在设置URL时错误,例如:jdbc:oracle:thin:@192.168.1.80:1521:orcl 数据库服务器是否正确:ping 服务器IP是否通畅.ping不通则将URL更 ...
- The Network Adapter could not establish the connection问题研究
最近一个项目会报上述错误,但也不是经常发生,所以很难跟踪,影响不是很大,但每次看到日志中这个错误就会不舒服,还是要想办法解决才是. 错误提示信息很明确是网络适配器不能创建连接. 查了很多资料,并且Or ...
- Io 异常: The Network Adapter could not establish the connection
新接触一个项目,导入源码,在本地启动的时候后台报了一个错误: Could not discover the dialect to use. java.sql.SQLException: Io 异常: ...
- sqldeveloper建立新的连接是出现Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection
Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection解决办法: ...
- sql developer链接不上oracle 报 The Network Adapter could not establish the connection
安装时候报 : Oracle 支持在具有 DHCP 分配的公共 IP 地址的系统上进行安装.但应使用静态 IP 地址来配置系统的主网络接口, 以便 Oracle 软件正常工作.有关在配置有 DHCP ...
- 数据库连接报错之IO异常(The Network Adapter could not establish the connection)
Io 异常: The Network Adapter could not establish the connection 有以下四个原因: 1.oracle配置 listener.ora 和tnsn ...
- weblogic报错----Received exception while creating connection for pool "TDMSKD": The Network Adapter could not establish the connection
<2017-8-16 上午08时58分37秒 CST> <Info> <WebLogicServer> <BEA-000377> <Startin ...
- Oracle安装后遇到错误:The Network Adapter could not establish the connection
http://note.youdao.com/noteshare?id=e6baee7ea7b7f60d7a265124e2bdd46c&sub=988945C6DDE843D5A7D6588 ...
随机推荐
- DBVisualizer Pro for mac
公司使用的是DB2数据库,支持DB2的数据库客户端常用的有DBeaver和DBVisualizer.DBeaver是免费的,但本人电脑安装后,启动一直报错,问题一直没解决就放弃了.改用DBVisual ...
- Luogu 4868 Preprefix sum
类似于树状数组维护区间的方法. 每一次询问要求$\sum_{i = 1}^{n}\sum_{j = 1}^{i}a_j$. 展开一下: $\sum_{i = 1}^{n}\sum_{j = 1}^{i ...
- C++ 从内存的角度,学习虚继承机制
测试代码 #include <stdio.h> struct AA { char b; char b1; int b3; char b2; }; class A { public: A() ...
- Ubuntu12.04 上使用perl snmpwalk问题
今天在Ubuntu12.04上使用perl来获取snmp数据,运行时出现下列问题.解决方法安装一下libnet-snmp-perl即可.命令行运行:sudo apt-get install libne ...
- 高考是最后一次拼智商的事了。(beacuse 大多数人的努力程度之低根本轮不到拼天赋!)
高考是最后一次拼智商的事. —因为大多数人的努力程度之低 根本轮不到拼天赋 在这个不起眼的小公司实习也有两周了,周四经理说说为了增加IOS开发小组和安卓开发小组之间的交流,准备每周开一次这种报告会. ...
- Note: PANOPLY: Low-TCB Linux Applications with SGX Enclaves
PANOPLY provides middleware for SGX and Linux operating systems. What PANOPLY provides middleware fo ...
- 飘逸的python - @staticmethod和@classmethod的作用与区别
一般来说,要使用某个类的方法,需要先实例化一个对象再调用方法. 而使用@staticmethod或@classmethod,就可以不需要实例化,直接类名.方法名()来调用. 这有利于组织代码,把某些应 ...
- jq写的上拉刷新
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ...
- any cpu ×86 ×64
On a 32-bit machine: Any CPU: runs as a 32-bit process, can load Any CPU and x86 assemblies, will ge ...
- sys_guid()
create extension "uuid-ossp"; create or replace function sys_guid() returns uuid as $$sele ...