the network could not establish the connection

为了方便建表等操作,我用sql developer 连接linux 底下的数据库,可连接时出现了这个问题the network could not establish the connection。

检查了一下防火墙也关了,也ping的通,没理由啊,上网查了一大堆,发现大家都说到了listener.ora和tnsnames.ora这两个文件。我一开始装数据库时是用的netca图形化界面配的,敲了下命令lsnrctl status查看监听发现the listener support no service,果然还是要手工配置。

数据库版本:oracle 11g

参考:http://www.linuxidc.com/Linux/2012-07/66813.htm 把这两个文件修改了还是有这个问题。

找了半天才发现,原来我装了两个数据库都是监听的1521这个端口,所以端口被占用了。继续修改这两个文件,改成1522端口,搞定啦~

所以呢,以后遇到这些问题除了上网查,自己也要思考发现问题发生的原因呢。

时间: 2024-08-27 05:38:45

the network 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

Io 异常: The Network Adapter could not establish the connection 这个异常的出现一般与数据库和你的PC的设置有关 这种异常的出现大致上有下面几种: 1.IP错误. 在设置URL时错误,例如:jdbc:oracle:thin:@192.168.0.36:1521:sharp 数据库服务器不正确:ping 服务器IP是否正确.不正确,将URL更改为正确 端口号错误:一般不会错误. 进行一下操作:在DOS上键入sqlplus,检查oracle是

The Network Adapter could not establish the connection

原文地址 http://yanwushu.sinaapp.com/the-network-adapter-could-not-establish-the-connection/ 问题描述 在本机可以正常连接oracle服务器,但是远程使用sqldeveloper时连接oracle时出现错误The Network Adapter could not establish the connection.此问题可能由多种原因导致,本文描述其中一种解决方案. 解决方案 打开net manager.Win7

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更改正确.端口号是否正确.进行一下操作:在DOS上键入sqlplus,检查oracle是否开启一切正常则执行下面第2步. 2.防火墙如果机器上安装有放火墙,可能是服务器端口

Sqoop从Oracle导出数据出错:The Network Adapter could not establish the connection

Sqoop执行命令: ./sqoop  import  --connect jdbc:oracle:thin:@10.112.101.251:1621:crmadbmr --username bass_etl --password 75!n!u6J --table DBPMSADM.PD_USERSVC_INFO_00 -m 4 --target-dir /ext/ods/PD_USERSVC_INFO_00/2014071906 执行日志: crmd3n:/d2_data0/user/ocdc

数据库 The Network Adapter could not establish the connection解决方案

连接数据库 注意 url ip地址换的时候 oracle 里的listener.ora thnsnames.ora也要随之变化 重启数据库 不然可能会报出 java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection解决方案

oracle the network adapter could not establish the connection

搞定 sqlplus ,开始用 SQL Developer,登陆之后爆出了这个大怪: the network adapter could not establish the connection (+﹏+)~狂晕 看下过程,估计我们遇到的问题应该是一样的: 首先,打开SQL Developer 双击进入: 进入管理界面: 双击数据库连接,我之前已经连接过一次了,所以有个连接记录,这里假如还没连接的朋友可以新建一个连接,如下图两种方式都可以: 好了,点击连接后,出现: 然后,出现(我们想要的结果!

The Network Adapter could not establish the connection解决办法

用 oracle net manager 将监听改为IP地址,将服务命名也改为IP地址,然后数据库连接改为IP地址方式不要用localhost 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解决方案 2016年06月04日 13:30:21 阅读数:46589 Io 异常: The Network Adapter could not establish the connection这个异常的出现一般与数据库和你的PC的设置有关 这种异常的出现大致上有下面几种: 1.IP错误.在设置URL时错误,例如:jdbc:oracle:thin:@192.168.0.36: