Oracle数据库数据恢复、性能优化

找回密码
注册
搜索
热搜: 活动 交友 discuz
发新帖

3

积分

0

好友

0

主题
1#
发表于 2012-6-27 11:33:14 | 查看: 5817| 回复: 6
vmware+redhat 5.1+rac 10.2.0.4


节点1监听动态注册RACDB,ASM服务正常,节点2监听动态注册服务失败,并在listener_rac2.log报:
TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
将节点2监听配置为静态注册并重启,节点2监听注册RACDB,ASM服务正常,但是用
sqlplus "[email=sys/sys@RACDB2]sys/sys@RACDB2[/email] as sysdba"连接时提示连接到空闲实例。
将节点2 listener.ora修改:
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.101)(PORT = 1521)(IP = FIRST))
改为
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521)(IP = FIRST))
重启DB,节点2监听动态注册正常,请问为什么?


192.168.1.100  rac1
192.168.1.101  rac2
192.168.1.200  rac1-vip
192.168.1.201  rac2-vip
192.168.2.100  rac1-priv
192.168.2.101  rac2-priv
LISTENER_RAC1 =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = TCP)(HOST = rac1-vip)(PORT = 1521)(IP = FIRST))
      )
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521)(IP = FIRST))
      )
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
      )
    )
  )

LISTENER_RAC2 =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = TCP)(HOST = rac2-vip)(PORT = 1521)(IP = FIRST))
      )
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.101)(PORT = 1521)(IP = FIRST))
      )
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
      )
    )
  )
2#
发表于 2012-6-27 13:19:46
"节点2监听动态注册服务失败,并在listener_rac2.log报:
TNS-12514: TNS:listener does not currently know of service requested in connect descriptor"


你有设置local_listener 吗?

回复 只看该作者 道具 举报

3#
发表于 2012-6-27 15:06:09
2个节点均无设置,都是安装的默认设置。

回复 只看该作者 道具 举报

4#
发表于 2012-6-27 15:08:45
LISTENER_RAC2 不是默认监听名  不设置local_listener , 是无法正确动态注册的。

回复 只看该作者 道具 举报

5#
发表于 2012-6-27 16:30:15
没有配置local_listener ,现在是可以动态注册的。

[oracle@rac2 ~]$ lsnrctl status

LSNRCTL for Linux: Version 10.2.0.4.0 - Production on 22-JUN-2012 14:37:01

Copyright (c) 1991, 2007, Oracle.  All rights reserved.

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias                     LISTENER_RAC2
Version                   TNSLSNR for Linux: Version 10.2.0.4.0 - Production
Start Date                22-JUN-2012 14:27:12
Uptime                    0 days 0 hr. 9 min. 48 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /opt/ora10g/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File         /opt/ora10g/product/10.2.0/db_1/network/log/listener_rac2.log
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.201)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
Services Summary...
Service "+ASM" has 2 instance(s).
  Instance "+ASM2", status UNKNOWN, has 1 handler(s) for this service...
  Instance "+ASM2", status BLOCKED, has 1 handler(s) for this service...
Service "+ASM_XPT" has 1 instance(s).
  Instance "+ASM2", status BLOCKED, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
  Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "RACDB" has 2 instance(s).
  Instance "RACDB2", status UNKNOWN, has 1 handler(s) for this service...
  Instance "RACDB2", status READY, has 1 handler(s) for this service...
Service "RACDBXDB" has 1 instance(s).
  Instance "RACDB2", status READY, has 1 handler(s) for this service...
Service "RACDB_XPT" has 1 instance(s).
  Instance "RACDB2", status READY, has 1 handler(s) for this service...
The command completed successfully

回复 只看该作者 道具 举报

6#
发表于 2012-6-27 17:21:38
使用127.0.0.1 是由问题 的, 建议你使用netca 或者netmgr 重新配置该LISTENER

回复 只看该作者 道具 举报

7#
发表于 2012-6-27 17:26:57
好的,我再看看,多谢啦

回复 只看该作者 道具 举报

您需要登录后才可以回帖 登录 | 注册

QQ|手机版|Archiver|Oracle数据库数据恢复、性能优化

GMT+8, 2024-11-16 00:02 , Processed in 0.062870 second(s), 21 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部
TEL/電話+86 13764045638
Email service@parnassusdata.com
QQ 47079569