在弄监听的时候碰到“
TNS-01106: Listener using listener name
LISTENER
has already been started
”错误。
其实原因很简单两个不同监听的
(ADDRESS=(PROTOCOL=ipc)(KEY=extproc)一样了,把KEY的值改成不一样的即可解决问题。
点击(此处)折叠或打开
- [oracle@e1 ~]$ lsnrctl start listener
- LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 21-OCT-2014 17:02:06
- Copyright (c) 1991, 2011, Oracle. All rights reserved.
- Starting /u01/app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...
- TNSLSNR for Linux: Version 11.2.0.3.0 - Production
- System parameter file is /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
- Log messages written to /u01/app/oracle/diag/tnslsnr/e1/listener/alert/log.xml
- Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=e1)(PORT=1521)))
- Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=extproc)))
- Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=e1)(PORT=1521)))
- STATUS of the LISTENER
- ------------------------
- Alias listener
- Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production
- Start Date 21-OCT-2014 17:02:07
- Uptime 0 days 0 hr. 0 min. 10 sec
- Trace Level off
- Security ON: Local OS Authentication
- SNMP OFF
- Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
- Listener Log File /u01/app/oracle/diag/tnslsnr/e1/listener/alert/log.xml
- Listening Endpoints Summary...
- (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=e1)(PORT=1521)))
- (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=extproc)))
- Services Summary...
- Service \"PROD1\" has 1 instance(s).
- Instance \"PROD1\", status UNKNOWN, has 1 handler(s) for this service...
- The command completed successfully
- [oracle@e1 ~]$ lsnrctl start lsnr2
- LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 21-OCT-2014 17:02:31
- Copyright (c) 1991, 2011, Oracle. All rights reserved.
- TNS-01106: Listener using listener name listener has already been started
- 检查LISTENER.ORA文件
- [oracle@e1 admin]$ cat listener.ora
- LISTENER=
- (DESCRIPTION=
- (ADDRESS_LIST=
- (ADDRESS=(PROTOCOL=tcp)(HOST=e1)(PORT=1521))
- (ADDRESS=(PROTOCOL=ipc)(KEY=extproc) )))
- SID_LIST_LISTENER=
- (SID_LIST=
- (SID_DESC=
- (SID_NAME=PROD1)
- (ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1)
- (PROGRAM=extproc)))
- LSNR2=
- (DESCRIPTION=
- (ADDRESS_LIST=
- (ADDRESS=(PROTOCOL=tcp)(HOST=e1)(PORT=1526))
- (ADDRESS=(PROTOCOL=ipc)(KEY=extproc)
- )))
- [oracle@e1 admin]$
点击(此处)折叠或打开
- LSNRCTL> start listener
- Starting /u01/app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...
- TNSLSNR for Linux: Version 11.2.0.3.0 - Production
- System parameter file is /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
- Log messages written to /u01/app/oracle/diag/tnslsnr/e1/listener/alert/log.xml
- Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=e1)(PORT=1521)))
- Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=extproc1521)))
- Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=e1)(PORT=1521)))
- STATUS of the LISTENER
- ------------------------
- Alias listener
- Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production
- Start Date 21-OCT-2014 17:21:35
- Uptime 0 days 0 hr. 0 min. 10 sec
- Trace Level off
- Security ON: Local OS Authentication
- SNMP OFF
- Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
- Listener Log File /u01/app/oracle/diag/tnslsnr/e1/listener/alert/log.xml
- Listening Endpoints Summary...
- (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=e1)(PORT=1521)))
- (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=extproc1521)))
- Services Summary...
- Service \"PROD1\" has 1 instance(s).
- Instance \"PROD1\", status UNKNOWN, has 1 handler(s) for this service...
- The command completed successfully
- LSNRCTL> status lsnr2
- Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=e1)(PORT=1526)))
- STATUS of the LISTENER
- ------------------------
- Alias lsnr2
- Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production
- Start Date 21-OCT-2014 17:21:00
- Uptime 0 days 0 hr. 0 min. 54 sec
- Trace Level off
- Security ON: Local OS Authentication
- SNMP OFF
- Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
- Listener Log File /u01/app/oracle/diag/tnslsnr/e1/lsnr2/alert/log.xml
- Listening Endpoints Summary...
- (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=e1)(PORT=1526)))
- (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=extproc1526)))
- Services Summary...
- Service \"PROD1\" has 1 instance(s).
- Instance \"PROD1\", status READY, has 1 handler(s) for this service...
- Service \"PROD1XDB\" has 1 instance(s).
- Instance \"PROD1\", status READY, has 1 handler(s) for this service...
- The command completed successfully
- LSNRCTL>
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29505646/viewspace-1463404/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/29505646/viewspace-1463404/