实际上,昨天工作时,我在 sql developer 中的连接是正常的。今天我无法连接,当我检查我的监听器(LISTENER1)的状态时,它不知何故被终止了。当我尝试启动它时,我收到以下错误消息:
TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Production
System parameter file is C:\app\neiral\product\11.2.0\dbhome_1\network\admin\listener.ora
Log messages written to c:\app\neiral\diag\tnslsnr\DESKTOP-BNNHGQO\listener1\alert\log.xml
Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.0.78)(PORT=2521)))
TNS-12545: Connect failed because target host or object does not exist
TNS-12560: TNS:protocol adapter error
TNS-00515: Connect failed because target host or object does not exist
64-bit Windows Error: 49: Unknown error
这种情况还发生过一次。不过,我可以通过简单的计算机重启来“修复”它。现在它仍然存在。我的另一个侦听器(我认为是在创建数据库时创建的)启动时没有问题(它的名字是 LISTENER,但它没有出现在 NET 配置助手中。它们会不会相互干扰,因为它们在不同的端口上侦听,所以我无法连接?),而我用来创建连接的侦听器(LISTENER1)无法启动并给出上述错误。
这是“listener.ora”文件
LISTENER1 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.78)(PORT = 2521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2521))
)
)
SID_LIST_LISTENER1 =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\app\neiral\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:C:\app\neiral\product\11.2.0\dbhome_1\bin\oraclr11.dll")
)
)
ADR_BASE_LISTENER1 = C:\app\neiral
这是“tnsnames.ora”文件
LISTENER_RLLESHI =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.78)(PORT = 2521))
REJNALD =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.78)(PORT = 2521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = rejnald.lleshi)
)
)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2521))
)
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
)
)
感谢您花时间思考这个问题。