IO Error: The Network Adapter could not establish the connection
  The Network Adapter could not establish the connection
  The Network Adapter could not establish the connection
    Connection timed out: connect, socket connect lapse 21004 ms. /10.10.10.3 1521 0 1 true
    Connection timed out: connect, socket connect lapse 21004 ms. /10.10.10.3 1521 0 1 true
      Connection timed out: connect
      Connection timed out: connect

数据库是19c rac pdb环境,当前测试连其中一个vip地址,通过vpn后,sqlplus和pl/sql工具都可以连接到数据库,但是用oracle sql developer工具却报错,后来又尝试dbeaver也错,DbVisualizer也报错。太奇怪了。

通过DBeaver工具的时候发现连接走的是jdbc:oracle:thin

想起这些工具走的都是它,所以查询

通过搜索 jdbc:oracle:thin The Network Adapter could not establish the connection这个发现

找到配置文件下:

添加这个 AddVMOption -Djava.net.preferIPv4Stack=true 重启客户端工具,再连接成功。

相关: 

DBeaver修改如下dbeaver.ini:

添加

-Djava.net.preferIPv4Stack=true

其它类似问题:

https://www.cnblogs.com/leafarmyarmy/p/12262907.html




 

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐