错误设置local_listener参数导致service无法解析 rac local listener

一台测试服务器上的数据库无法访问,远程能访问服务器1521端口,但是通过pl/sql连不上。登录数据库服务器,执行:$ lsnrctl statusListening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.155.100)(PORT=1525)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1handler(s) for this service...居然没有service注册上。检查数据库service配置:sql> show parameter service_namesservice_namesstringdg1.oracle.com,hr,oasql>show parameter instance_nameinstance_namestringdgsql> show parameter domian_namedb_domainstringoracle.com检查listener.oraSID_LIST_LISTENER =
(SID_LIST =
(SID_DESC=
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
(PROGRAM = extproc)
)
)LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION=
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.155.100)(PORT =1521))
)
错误设置local_listener参数导致service无法解析 rac local listener
(DESCRIPTION=
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
)配置无问题检查tnsnames.oraOA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.155.100)(PORT =1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = oa.oracle.com)
)
)HR =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.155.100)(PORT =1521))
)
(CONNECT_DATA =
(SERVICE_NAME = hr.oracle.com)
)
)DG =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.155.100)(PORT =1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = dg1.oracle.com)
)
)也没发现有问题,但是通过tns登录:sqlplus user/user@oa报错:TNS-12514: TNS:listener does not currently know of servicerequested in connect descriptor手工注册service:sql> alter system register服务仍然不能注册到listener。这时突然想到了local_listner参数,sql> show parameter local_listener(address=(protocol=tcp)(host=192.168.129.201)(port=1521))而listener实际用的ip是192.168.155.100。发现这台机器有两张网卡,ip分别为:192.168.155.100和192.168.129.201,之前有维护人员大概想将listener绑定到192.168.129.201这个ip上,但采用的方法不对。修改local_listener参数,sql> alter system setlocal_listener='';再重新注册服务,sql> alter system register;查看注册情况,$ lsnrctl statusService "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1handler(s) for this service...
Service "dg1.oracle.com" has 1 instance(s).
Instance "dg", status READY, has 4 handler(s)for this service...
Service "dg1_XPT.oracle.com" has 1 instance(s).
Instance "dg", status READY, has 4 handler(s)for this service...
Service "hr.oracle.com" has 1 instance(s).
Instance "dg", status READY, has 4 handler(s)for this service...
Service "oa.oracle.com" has 1 instance(s).
Instance "dg", status READY, has 4 handler(s)for this service...service_names中定义的服务都成功动态注册到listener。远程pl/sql连接数据库成功。

  

爱华网本文地址 » http://www.413yy.cn/a/25101010/38903.html

更多阅读

bios怎么恢复出厂设置 bios中英文对照表

bios怎么恢复出厂设置——简介BIOS作为电脑启动时的首要信息读取位置,如果设置不当将导致电脑无法正常引导启动。当电脑出现无法正常启动的故障时,我们可以通过恢复BIOS出厂设置来完成未知错误的修复。下面就来看一下具体的恢复出厂设

怎样设置打印机端口 打印机无法打印

笔者以 HP Deskjet 3748 打印机为例,详细介绍使用 HP Deskjet 3000 系列打印机进行网络打印的配置方法。怎样设置打印机端口——适用机型怎样设置打印机端口 1、HP Deskjet 3320、3323、3325、3420、3425、3538、3558、3658、3668、

win7怎么设置游戏手柄 有的游戏无法识别手柄

win7怎么设置游戏手柄——简介对于广大电脑游戏爱好者来说,一个反应灵敏的手柄是必备外设之一。本文向大家介绍如何在win7系统的电脑上设置和调试游戏手柄。win7怎么设置游戏手柄——工具/原料游戏手柄win7怎么设置游戏手柄——如

手机上网怎么设置 手机wifi上网怎么设置

手机上网怎么设置——简介通常导致手机无法上网的最根本原因在于设置不当,下面就来看一下手机上网的具体设置方法。手机上网怎么设置——方法/步骤手机上网怎么设置 1、打开手机中的“程序列表”,然后点击“设置”按钮。手机上网怎

PL/SQL报错:“ORA-12154:TNS:无法解析指定的连接标识符”

在连接oracle的时候PL/SQL报错:“ORA-12154: TNS:无法解析指定的连接标识符”,在网上找了很多资料,然后问题解决。其中下面的文章分析的过程很值得学习,特地转载过来时刻告诫自己全局观的重要性!  下面是引用正文  接着上次的话题,在6

声明:《错误设置local_listener参数导致service无法解析 rac local listener》为网友灬魏晨分享!如侵犯到您的合法权益请联系我们删除