美文网首页
问题: TNS-01189: The listener coul

问题: TNS-01189: The listener coul

作者: 编程永无止境 | 来源:发表于2020-04-29 10:04 被阅读0次

    启动监听器的时候出现问题

    [oracle@c6f97bbf42fb ~]$ lsnrctl start
    
    LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 09-APR-2020 17:02:06
    
    Copyright (c) 1991, 2013, Oracle.  All rights reserved.
    
    TNS-01106: Listener using listener name LISTENER has already been started
    [oracle@c6f97bbf42fb ~]$ lsnrctl status
    
    LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 09-APR-2020 17:02:15
    
    Copyright (c) 1991, 2013, Oracle.  All rights reserved.
    
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=172.23.1.100)(PORT=1521)))
    TNS-01189: The listener could not authenticate the user
    [oracle@c6f97bbf42fb ~]$
    
    
    image.png

    问题分析

    1./etc/hosts文件中的IP和主机名不一致
    2.listener.ora中监听的主机非当前主机

    解决方案

    修改listener.ora文件把ip改为当前主机或127.0.0.1

    vim  /opt/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    

    改为

    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
            (GLOBAL_DBNAME = orcl)
            (ORACLE_HOME = /opt/oracle/product/11.2.0/dbhome_1)
            (SID_NAME = orcl)
        )
      )
    
    
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
        )
      )
    
    image.png

    相关文章

      网友评论

          本文标题:问题: TNS-01189: The listener coul

          本文链接:https://www.haomeiwen.com/subject/mstgwhtx.html