admin管理员组文章数量:1418459
TNS
操作系统:AIX 6.1.0.0
数据库版本:11.2.0.1.0 - 64bit
问题描述:
AIX上HACMP 上启动数据库监听,一直卡住,启动不了监听。
LSNRCTL> start
Starting /opt/oracle/11g/db_1/bin/tnslsnr: please wait...
TNSLSNR for IBM/AIX RISC System/6000: Version 11.2.0.1.0 - Production
System parameter file is /opt/oracle/11g/db_1/network/admin/listener.ora
Log messages written to /opt/oracle/11g/diag/tnslsnr/waycome01/listener/alert/lo
g.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.215)(PORT=1521
)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.215)(PORT=1521
)))
查看日志,发现大量TNS-12531: TNS:cannot allocatememory
# tail -f /opt/oracle/11g/diag/tnslsnr/waycome01_boot/listener/alert/log.xml
<msgtime='2013-12-28T15:25:48.532-06:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='waycome01'
host_addr='UNKNOWN'>
<txt>TNS-12531: TNS:cannot allocatememory
</txt>
</msg>
OERR的解释是:
TNS-12531 TNS:cannot allocate memory
Cause: Sufficient memory could not be allocated to perform the desired activity.
Action: Either free some resource for TNS, or add more memory to the machine. For further details, turn on tracing and re-execute the operation.
可是内存是够的,后来发现原来是 本机的/etc/hosts里面的hostname与host_id不一直所导致的!
127.0.0.1 loopback localhost# loopback (lo0) name/address
10.0.0.1 waycome01_priv
10.0.0.2 waycome02_priv
192.168.1.212 waycome01_boot
192.168.1.213 waycome02_boot
192.168.1.215 waycome_service
# hostname
waycome01
所以smit hostname 更改主机名与host文件里的hostname名字一样即可。
# hostname
waycome01_boot
总结:主机名要与host文件里的一致呀!
----------------------------------------------------------------------------------------------
版权所有,如需转载,请注明出处,否则追加法律责任!
blog:
mail:waycomecome@gmail
本文标签: TNS
版权声明:本文标题:TNS 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/biancheng/1700909700a324851.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论