您的位置:首页 > 其它

TNS-12531: TNS:cannot allocatememory的解决办法

2013-12-20 14:20 369 查看
操作系统: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:http://blog.csdn.net/waycomecome

mail:waycomecome@gmail.com

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息