【发布时间】:2021-05-26 18:52:37
【问题描述】:
通过 SQL Developer 连接到数据库时,我遇到以下错误: Io 异常:网络适配器无法建立连接
我试图找出问题并最终发现 OracleXETNsListener 服务没有启动。 我尝试启动它,但出现以下错误:本地计算机上的 OracleXETNSListener 服务启动然后停止。如果某些服务没有被其他服务或程序使用,它们会自动停止
也通过命令提示符尝试如下:
C:\Windows\system32>lsnrctl status
LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 16-JUN-2014 15:00
:43
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Message 1053 not found; No message file for product=NETWORK, facility=TNSTNS-125
57: Message 12557 not found; No message file for product=NETWORK, facility=TNS
TNS-12560: Message 12560 not found; No message file for product=NETWORK, facili
ty=TNS
TNS-00527: Message 527 not found; No message file for product=NETWORK, facilit
y=TNS
【问题讨论】:
-
你设置了 ORACLE_HOME 吗?这可能解释了命令行中的“找不到消息”错误。对于服务,您需要找到日志文件并查看关闭的原因。这是新安装的还是最近安装的?侦听器是为 localhost 还是外部 IP 地址配置的,PC 是否有静态 IP 或正在使用 DHCP?
-
@AlexPoole:感谢您的回复。这不是新安装。 liosener 是为 localhost 配置的。我的系统也有静态IP地址。我在哪里可以找到这个监听器的日志文件?
-
@AlexPoole:我也设置了 oracle_home,但仍然给我同样的 'lsnrctl status' 命令的消息
标签: oracle11g oracle-sqldeveloper