TNS-01106: Listener using listener name LISTENER has already been started

在弄监听的时候碰到“ TNS-01106: Listener using listener name  LISTENER  has already been started ”错误。


点击(此处)折叠或打开

  1. [oracle@e1 ~]$ lsnrctl start listener
  2. LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 21-OCT-2014 17:02:06
  3. Copyright (c) 1991, 2011, Oracle. All rights reserved.
  4. Starting /u01/app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...
  5. TNSLSNR for Linux: Version 11.2.0.3.0 - Production
  6. System parameter file is /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
  7. Log messages written to /u01/app/oracle/diag/tnslsnr/e1/listener/alert/log.xml
  8. Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=e1)(PORT=1521)))
  9. Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=extproc)))
  10. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=e1)(PORT=1521)))
  11. STATUS of the LISTENER
  12. ------------------------
  13. Alias listener
  14. Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production
  15. Start Date 21-OCT-2014 17:02:07
  16. Uptime 0 days 0 hr. 0 min. 10 sec
  17. Trace Level off
  18. Security ON: Local OS Authentication
  19. SNMP OFF
  20. Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
  21. Listener Log File /u01/app/oracle/diag/tnslsnr/e1/listener/alert/log.xml
  22. Listening Endpoints Summary...
  23. (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=e1)(PORT=1521)))
  24. (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=extproc)))
  25. Services Summary...
  26. Service \"PROD1\" has 1 instance(s).
  27. Instance \"PROD1\", status UNKNOWN, has 1 handler(s) for this service...
  28. The command completed successfully
  29. [oracle@e1 ~]$ lsnrctl start lsnr2
  30. LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 21-OCT-2014 17:02:31
  31. Copyright (c) 1991, 2011, Oracle. All rights reserved.
  32. TNS-01106: Listener using listener name listener has already been started
  33. 检查LISTENER.ORA文件
  34. [oracle@e1 admin]$ cat listener.ora
  35. LISTENER=
  36. (DESCRIPTION=
  37. (ADDRESS_LIST=
  38. (ADDRESS=(PROTOCOL=tcp)(HOST=e1)(PORT=1521))
  39. (ADDRESS=(PROTOCOL=ipc)(KEY=extproc) )))
  40. SID_LIST_LISTENER=
  41. (SID_LIST=
  42. (SID_DESC=
  43. (SID_NAME=PROD1)
  44. (ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1)
  45. (PROGRAM=extproc)))
  46. LSNR2=
  47. (DESCRIPTION=
  48. (ADDRESS_LIST=
  49. (ADDRESS=(PROTOCOL=tcp)(HOST=e1)(PORT=1526))
  50. (ADDRESS=(PROTOCOL=ipc)(KEY=extproc)
  51. )))
  52. [oracle@e1 admin]$
其实原因很简单两个不同监听的 (ADDRESS=(PROTOCOL=ipc)(KEY=extproc)一样了,把KEY的值改成不一样的即可解决问题。

点击(此处)折叠或打开

  1. LSNRCTL> start listener
  2. Starting /u01/app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...
  3. TNSLSNR for Linux: Version 11.2.0.3.0 - Production
  4. System parameter file is /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
  5. Log messages written to /u01/app/oracle/diag/tnslsnr/e1/listener/alert/log.xml
  6. Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=e1)(PORT=1521)))
  7. Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=extproc1521)))
  8. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=e1)(PORT=1521)))
  9. STATUS of the LISTENER
  10. ------------------------
  11. Alias listener
  12. Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production
  13. Start Date 21-OCT-2014 17:21:35
  14. Uptime 0 days 0 hr. 0 min. 10 sec
  15. Trace Level off
  16. Security ON: Local OS Authentication
  17. SNMP OFF
  18. Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
  19. Listener Log File /u01/app/oracle/diag/tnslsnr/e1/listener/alert/log.xml
  20. Listening Endpoints Summary...
  21. (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=e1)(PORT=1521)))
  22. (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=extproc1521)))
  23. Services Summary...
  24. Service \"PROD1\" has 1 instance(s).
  25. Instance \"PROD1\", status UNKNOWN, has 1 handler(s) for this service...
  26. The command completed successfully
  27. LSNRCTL> status lsnr2
  28. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=e1)(PORT=1526)))
  29. STATUS of the LISTENER
  30. ------------------------
  31. Alias lsnr2
  32. Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production
  33. Start Date 21-OCT-2014 17:21:00
  34. Uptime 0 days 0 hr. 0 min. 54 sec
  35. Trace Level off
  36. Security ON: Local OS Authentication
  37. SNMP OFF
  38. Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
  39. Listener Log File /u01/app/oracle/diag/tnslsnr/e1/lsnr2/alert/log.xml
  40. Listening Endpoints Summary...
  41. (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=e1)(PORT=1526)))
  42. (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=extproc1526)))
  43. Services Summary...
  44. Service \"PROD1\" has 1 instance(s).
  45. Instance \"PROD1\", status READY, has 1 handler(s) for this service...
  46. Service \"PROD1XDB\" has 1 instance(s).
  47. Instance \"PROD1\", status READY, has 1 handler(s) for this service...
  48. The command completed successfully
  49. LSNRCTL>




来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29505646/viewspace-1463404/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/29505646/viewspace-1463404/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值