遇到一个问题,数据库库无法动态注册监听
环境 HPUX11.31 ORACLE10204
先开始设置10257 EVENT,看了下TRACE,PMON没问题
又用了LISTENER SERVER TRACE,在TRC中没有发现PMON注册监听的信息,看来是PMON没有找对地方
昨天配置了LOCAL_LISTENER参数解决了,今天晚上值班,继续看看
想恢复下现场环境,于是想把local_listener参数置空,可是报错
SQL> alter system set local_listener='';
alter system set local_listener=''
*
ERROR at line 1:
ORA-02097: parameter cannot be modified because specified value is invalid
ORA-00119: invalid specification for system parameter LOCAL_LISTENER
ORA-00130: invalid listener address
'(ADDRESS=(PROTOCOL=TCP)(HOST=crm_db_0)(PORT=1521))'
这里的这个HOST很奇怪,我的主机名是crm_db_01,少了个1。查了下ML,找到了答案:
Instance Startup Fails With: ORA-00130: Invalid Listener Address [ID 864818.1]
"Warning: Setting the expanded_node_host_names parameter to 1 will allow administrators to set node
and host names larger than 8 and 64 characters/bytes, respectively. Setting node and host names longer than 8 or 64 bytes, respectively, can cause some applications that use the node and/or host names to exhibit anomalous behavior. or fail. HP strongly recommends that you understand all
NodeHostNameXpnd documentation (manpages and the “Node and Host Name Sizes on
HP-UX” whitepaper) before enabling the system to accept longer names."
主机名超长。其实影响的地方还挺多的,ORACLE日志中的主机名也只有前8位
尝试把expanded_node_host_names修改为1,重启数据库,还是不行,不知道重启主机是否有效
ORACLE给出的解决办法:配置正确的LOCAL_LISTENER或者缩短主机名。
下次有机会测试下缩短主机名,确认下是否是这个问题
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/8242091/viewspace-668283/
,如需转载,请注明出处,否则将追究法律责任。