解决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 ...
随机推荐
- 项目一:项目第二天 Jquery ztree使用展示菜单数据 2、 基础设置需求分析 3、 搭建项目框架环境--ssh(复习) 4、 SpringData-JPA持久层入门案例(重点) 5、 Easyui menubutton菜单按钮使用 6、 Easyui messager消息框使用
1. Jquery ztree使用展示菜单数据 2. 基础设置需求分析 3. 搭建项目框架环境--ssh(复习) 4. SpringData-JPA持久层入门案例(重点) 5. Easyui menu ...
- 9、linux的特殊符
在shell中常用的特殊符号罗列如下: # ; ;; . , / \ 'string'| ! $ ${} $? ...
- Web调试利器fiddler介绍
转载:http://blog.chinaunix.net/uid-27105712-id-3738821.html 最近在使用fiddler,发现这个真是非常最犀利的web调试工具,笔者这里强烈推荐给 ...
- sql server 2008 r2安装
选择功能(好像报错了-下次重装系统测试)
- Note: PANOPLY: Low-TCB Linux Applications with SGX Enclaves
PANOPLY provides middleware for SGX and Linux operating systems. What PANOPLY provides middleware fo ...
- sqoop 安装与命令
1. 下载: wget http://mirrors.shu.edu.cn/apache/sqoop/1.4.7/sqoop-1.4.7.bin__hadoop-2.6.0.tar.gz 2. 解 ...
- CF70D Professor's task(动态凸包)
题面 两种操作: 1 往点集S中添加一个点(x,y); 2 询问(x,y)是否在点集S的凸包中. 数据保证至少有一个2操作, 保证刚开始会给出三个1操作, 且这三个操作中的点不共线. 题解 动态凸包板 ...
- Bigdecimal 比较equals与compareTo
原文链接:https://blog.csdn.net/jixinhuluwa/article/details/72626598 1.b.equals(BigDecimal.ZERO); 该方法存在的问 ...
- 背包DP【bzoj2287】: 【POJ Challenge】消失之物
2287: [POJ Challenge]消失之物 Description ftiasch 有 N 个物品, 体积分别是 W1, W2, ..., WN. 由于她的疏忽, 第 i 个物品丢失了. &q ...
- CF986A Fair
题目描述 Some company is going to hold a fair in Byteland. There are n n n towns in Byteland and m m m t ...