myeclipse8.6+oracle10
在配置数据库连接时,
设置Connection url:jdbc:oracle:thin@localhost:orcl
提示错误:IO异常:the network adapter could not establish the connection
网上分析可能是ip,防火墙,或监听问题,经设置发现无法解决,
访问http://www.programfan.com/club/showpost.asp?id=14848 ,时,发现可以解决问题
总结:
解决方法:在配置Connection url 时,不能写localhost,要写机器名或ip,最好设置成ip
比如:Connection url:jdbc:oracle:thin@192.168.1.3:orcl
转载于:https://blog.51cto.com/82813300/1074064