在 Oracle 10g 中,我有一个监听器问题,
这是 tnsnames.ora :
MYTNS =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = TCP)
(HOST = testiold)
(PORT = 1521)
)
)
(CONNECT_DATA =
(SERVICE_NAME = mysid)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = IPC)
(KEY = EXTPROC)
)
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
和 listener.ora:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = mysid)
(ORACLE_HOME = /oracle/10.2.4/db/OraHome_1)
(SID_NAME = mysid)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = TCP)
(HOST = testiold)
(PORT = 1521)
)
)
)
)
问题是我无法使用此配置启动侦听器,当我尝试lsnrctl start时,我得到了这个:
LSNRCTL for IBM/AIX RISC System/6000: Version 10.2.0.1.0 - Production on 14-AUG-2012 22:11:44
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Starting /oracle/10.2.4/db/OraHome_1/bin/tnslsnr: please wait...
TNSLSNR for IBM/AIX RISC System/6000: Version 10.2.0.1.0 - Production
System parameter file is /oracle/10.2.4/db/OraHome_1/network/admin/listener.ora
Log messages written to /oracle/10.2.4/db/OraHome_1/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=testiold)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=testiold)(PORT=1521)))
TNS-12535: TNS:operation timed out
TNS-12560: TNS:protocol adapter error
TNS-00505: Operation timed out
IBM/AIX RISC System/6000 Error: 78: Connection timed out
每当我尝试连接到数据库时,它都会说:
ORA-28547: connection to server failed, probable Oracle Net admin error
你能帮我么?
正如菲尔所说,我用实际 IP 替换了主机名,但连接问题是针对
在 listener.ora 文件中,删除它解决了这个问题。
为了让外部程序起作用,应该进行这些更改:
在 EXTPROC_CONNECTION_DATA 和 PROGRAM = extproc 的 tnsnames.ora 中的 SID_LIST_LISTENER SID_LIST 中添加新的 SID 条目,以及适当的 ORACLE_HOME(可以添加环境变量)
在 listener.ora 的 LISTENER 部分的 ADDRESS_LIST 中,应添加新的 ADDRESS 条目,其中 PROTOCOL = ipc 和 KEY = EXTPROC