11gR2 RAC的一个节点被重装了系统,将节点重新添加到RAC之后,使用客户端连接RAC即收到ORA-12502的错误,设置所有节点的LOCAL_LISTENER参数之后即可恢复。
1.报错。
C:\Users\LIUBINGLIN>sqlplus system/oracle123@ykto2.sicnu.edu.cn:1521/ccense
SQL*Plus: Release 11.2.0.1.0 Production on 星期一 4月 16 15:53:43 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
ERROR:
ORA-12502: TNS: 监听程序没有从客户机收到 CONNECT_DATA
请输入用户名:
2.查看并修改LOCAL_LISTENER参数。
SQL> show parameter listener
SQL> show parameter listener
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
listener_networks string
local_listener string
remote_listener string ykto2.sicnu.edu.cn:1521
SQL> alter system set local_listener='(ADDRESS=(PROTOCOL=tcp)(HOST=172.25.10.135)(PORT=1521))';
System altered.
所有实例的LOCAL_LISTENER都需要修改,HOST指定的是节点VIP地址。
3.恢复正常。
C:\Users\LIUBINGLIN>sqlplus system/oracle123@ykto1.sicnu.edu.cn:1521/ccense
SQL*Plus: Release 11.2.0.1.0 Production on 星期一 4月 16 15:56:26 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
连接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/23135684/viewspace-721333/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/23135684/viewspace-721333/