- 最后登录
- 2018-8-16
- 在线时间
- 100 小时
- 威望
- 45
- 金钱
- 292
- 注册时间
- 2012-4-24
- 阅读权限
- 10
- 帖子
- 53
- 精华
- 0
- 积分
- 45
- UID
- 385
|
2#
发表于 2012-4-27 14:55:31
- “The listener supports no services”
复制代码 这个话的意思是,监听没有检测到相应的服务。
自己做了个实验,发现需要写一个给listner写一个sid_list。
过程如下:
说明下,这是在一个rac环境上(RHEL 5.4 64bit, Oracle 10.2.0.4 )的一节点做的实验。
ip地址如下, 要做的是把100.100.100.1加入监听里:- [oracle@rac1 ~]$ cat /etc/hosts
- # Do not remove the following line, or various programs
- # that require network functionality will fail.
- 127.0.0.1 localhost.localdomain localhost
- ::1 localhost6.localdomain6 localhost6
- 192.168.0.31 rac1
- 100.100.100.1 rac1-priv
- 192.168.0.231 rac1-vip
复制代码
1. 首先,查看现有监听情况:- [oracle@rac1 ~]$ lsnrctl status LISTENER_RAC1
- LSNRCTL for Linux: Version 10.2.0.4.0 - Production on 27-APR-2012 14:16:56
- Copyright (c) 1991, 2007, Oracle. All rights reserved.
- Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=rac1-vip)(PORT=1521)(IP=FIRST)))
- STATUS of the LISTENER
- ------------------------
- Alias LISTENER_RAC1
- Version TNSLSNR for Linux: Version 10.2.0.4.0 - Production
- Start Date 27-APR-2012 14:16:34
- Uptime 0 days 0 hr. 0 min. 21 sec
- Trace Level off
- Security ON: Local OS Authentication
- SNMP OFF
- Listener Parameter File /opt/oracle/product/10.2.0/db1/network/admin/listener.ora
- Listener Log File /opt/oracle/product/10.2.0/db1/network/log/listener_rac1.log
- Listening Endpoints Summary...
- (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.231)(PORT=1521)))
- (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.31)(PORT=1521)))
- Services Summary...
- Service "PLSExtProc" has 1 instance(s).
- Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
- Service "racdb" has 1 instance(s).
- Instance "racdb1", status READY, has 2 handler(s) for this service...
- Service "racdbXDB" has 1 instance(s).
- Instance "racdb1", status READY, has 1 handler(s) for this service...
- Service "racdb_XPT" has 1 instance(s).
- Instance "racdb1", status READY, has 2 handler(s) for this service...
- The command completed successfully
- [oracle@rac1 ~]$ netstat -antpl | grep :15
- (Not all processes could be identified, non-owned process info
- will not be shown, you would have to be root to see it all.)
- tcp 0 0 192.168.0.31:1521 0.0.0.0:* LISTEN 9298/tnslsnr
- tcp 0 0 192.168.0.231:1521 0.0.0.0:* LISTEN 9298/tnslsnr
- tcp 0 0 192.168.0.231:63769 192.168.0.231:1521 ESTABLISHED 5231/ora_pmon_racdb
- tcp 0 0 192.168.0.231:63766 192.168.0.231:1521 TIME_WAIT -
- tcp 0 0 192.168.0.231:63761 192.168.0.231:1521 TIME_WAIT -
- tcp 0 0 192.168.0.231:1521 192.168.0.231:63769 ESTABLISHED 9298/tnslsnr
- tcp 0 0 192.168.0.231:1521 192.168.0.231:63771 TIME_WAIT -
- tcp 0 0 192.168.0.231:1521 192.168.0.231:11566 TIME_WAIT -
- tcp 0 0 192.168.0.31:1521 192.168.0.31:50224 ESTABLISHED 9298/tnslsnr
- tcp 0 0 192.168.0.31:50224 192.168.0.31:1521 ESTABLISHED 5231/ora_pmon_racdb
- tcp 0 0 192.168.0.31:1521 192.168.0.31:24380 TIME_WAIT -
- tcp 0 0 192.168.0.31:1521 192.168.0.31:24378 TIME_WAIT -
复制代码
现有监听会监听192.168.0.31和192.168.0.231的1521端口。
2. 此时修改listener.ora文件,加入监听名为“LISTENER_RAC11”
加入如下内容:- LISTENER_RAC11 =
- (DESCRIPTION_LIST =
- (DESCRIPTION =
- (ADDRESS = (PROTOCOL = TCP)(HOST = 100.100.100.1)(PORT = 1522)(IP = FIRST))
- )
- )
复制代码 3. 启动该监听- [oracle@rac1 ~]$ lsnrctl start LISTENER_RAC11
- LSNRCTL for Linux: Version 10.2.0.4.0 - Production on 27-APR-2012 14:17:26
- Copyright (c) 1991, 2007, Oracle. All rights reserved.
- Starting /opt/oracle/product/10.2.0/db1/bin/tnslsnr: please wait...
- TNSLSNR for Linux: Version 10.2.0.4.0 - Production
- System parameter file is /opt/oracle/product/10.2.0/db1/network/admin/listener.ora
- Log messages written to /opt/oracle/product/10.2.0/db1/network/log/listener_rac11.log
- Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=100.100.100.1)(PORT=1522)))
- Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=100.100.100.1)(PORT=1522)(IP=FIRST)))
- STATUS of the LISTENER
- ------------------------
- Alias LISTENER_RAC11
- Version TNSLSNR for Linux: Version 10.2.0.4.0 - Production
- Start Date 27-APR-2012 14:17:26
- Uptime 0 days 0 hr. 0 min. 0 sec
- Trace Level off
- Security ON: Local OS Authentication
- SNMP OFF
- Listener Parameter File /opt/oracle/product/10.2.0/db1/network/admin/listener.ora
- Listener Log File /opt/oracle/product/10.2.0/db1/network/log/listener_rac11.log
- Listening Endpoints Summary...
- (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=100.100.100.1)(PORT=1522)))
- The listener supports no services
- The command completed successfully
- [oracle@rac1 ~]$ sqlplus / as sysdba
- SQL*Plus: Release 10.2.0.4.0 - Production on Fri Apr 27 14:17:31 2012
- Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
- Connected to:
- Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
- With the Partitioning, Real Application Clusters, OLAP, Data Mining
- and Real Application Testing options
- SYS#10g@racdb1>alter system register;
- System altered.
- SYS#10g@racdb1>exit
- Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
- With the Partitioning, Real Application Clusters, OLAP, Data Mining
- and Real Application Testing options
- [oracle@rac1 ~]$
- [oracle@rac1 ~]$
- [oracle@rac1 ~]$
- [oracle@rac1 ~]$ lsnrctl status LISTENER_RAC11
- LSNRCTL for Linux: Version 10.2.0.4.0 - Production on 27-APR-2012 14:17:50
- Copyright (c) 1991, 2007, Oracle. All rights reserved.
- Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=100.100.100.1)(PORT=1522)(IP=FIRST)))
- STATUS of the LISTENER
- ------------------------
- Alias LISTENER_RAC11
- Version TNSLSNR for Linux: Version 10.2.0.4.0 - Production
- Start Date 27-APR-2012 14:17:26
- Uptime 0 days 0 hr. 0 min. 24 sec
- Trace Level off
- Security ON: Local OS Authentication
- SNMP OFF
- Listener Parameter File /opt/oracle/product/10.2.0/db1/network/admin/listener.ora
- Listener Log File /opt/oracle/product/10.2.0/db1/network/log/listener_rac11.log
- Listening Endpoints Summary...
- (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=100.100.100.1)(PORT=1522)))
- The listener supports no services
- The command completed successfully
复制代码 出现了和你一样的情况。
[ 本帖最后由 miloluo 于 2012-4-27 14:57 编辑 ] |
|