TNS-12542:TNS:已使用的地址TNS-12560:TNS:协议适配器错误

时间:2017-11-14 08:10:10

标签: sql database oracle plsql listener

当lsnrctl START启动监听器时面临以下错误。

  

侦听时出错:(ADDRESS =(PROTOCOL = tcp)(HOST =)(PORT = 1521))   TNS-12542:TNS:已使用的地址TNS-12560:TNS:协议适配器   错误TNS-00512:地址已在使用Linux错误:98:地址   已经在使用

listener.ora内容如下。 NSMS =(DESCRIPTION_LIST =(DESCRIPTION =(ADDRESS_LIST =(ADDRESS =(PROTOCOL = IPC)(KEY = NSMS))(ADDRESS =(PROTOCOL = TCP)(HOST = 10.99.33.22)(Port = 1522)))))SID_LIST_NSMS =(SID_LIST =(SID_DESC =(GLOBAL_DBNAME = NSMS)(ORACLE_HOME = /opt/oracle/product/11.2.0)(SID_NAME = NSMS)))ADMIN_RESTRICTION_NSMS = ON

sqlnet.ora内容NAMES.DIRECTORY_PATH =(TNSNAMES)AUTOMATIC_IPC = ON TRACE_LEVEL_CLIENT = OFF TRACE_FILE_CLIENT = /opt/oracle/product/11.2.0/network/trace/client.trc SQLNET.EXPIRE_TIME = 10 TCP.VALIDNODE_CHECKING = YES TCP.INVITED_NODES =(LA)#TCP.EXCLUDED_NODES =(1.22.33.44)#DIAG_SIGHANDLER_ENABLED = NO

tnsname.ora内容NSMS =(DESCRIPTION =(ADDRESS_LIST =(ADDRESS =(PROTOCOL = TCP)(HOST = 10.99.33.22)(Port = 1522))(ADDRESS =(PROTOCOL = IPC)(KEY = NSMS)) )(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = NSMS)))

1 个答案:

答案 0 :(得分:0)

如果在OS级别正确设置了文件,请尝试检查listner.ora中使用的主机名。然后尝试使用默认端口1521