解决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 ...
随机推荐
- kinect2跑高博的orbslam2的过程(仅供自己参考记录)
首先感谢高博的无私奉献!http://www.cnblogs.com/gaoxiang12/p/5161223.html 程序所在的目录为:/home/zty/catkin_ws/src/iai_ki ...
- matlab基本语法和运算基础
转载自:http://blog.csdn.net/robertcalm/article/details/51582253 matlab语法比较随意,但正如其全名 matrix &laborat ...
- Open-source Tutorial - Material Design for WPF UI
安装 Material Design Themes 通过 NuGet 包管理器搜索自动安装 通过 NuGet 包管理器控制台手动安装 Install-Package MaterialDesignThe ...
- file控件选择图片,img即可显示(无需上传)
代码如下: <script> $(function() { $("#Book_Fiel").change(function() { var $file = $(this ...
- Android OpenGLES2.0(十七)——球形天空盒VR效果实现
在3D游戏中通常都会用到天空盒,在3D引擎中也一般会存在天空盒组件,让开发者可以直接使用.那么天空盒是什么?天空盒又是如何实现的呢?本篇博客主要介绍如何在Android中利用OpenGLES绘制一个天 ...
- Object类、常用API
Object类.常用API Object类.常用API Object类.常用API Object类.常用API Object类.常用API Object类.常用API
- linux笔记之基础 1
内核命名规则: R.X.Y-Z 2.6.32-642 R: 内核有重大改变时才会更改,目前为止有四个大版本更新. X:基数为开发版,偶数为稳定版. Y.Z:修复bug,实现新功能,新特性的时候更改 ...
- PAT甲级——1098 Insertion or Heap Sort (插入排序、堆排序)
本文同步发布在CSDN:https://blog.csdn.net/weixin_44385565/article/details/90941941 1098 Insertion or Heap So ...
- crawlspider的源码学习
Spider基本上能做很多事情了,但是如果你想爬取全站的话,可能需要一个更强大的武器.CrawlSpider基于Spider,但是可以说是为全站爬取而生.CrawlSpiders是Spider的派生类 ...
- git 脚本
echo $PWD message=$1 content='.' if [ ! -n "$1" ] ;then message=`date` message=$message' 推 ...