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
数据库版本: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
相关文章推荐
- mount error(12): Cannot allocate memory解决办法
- TNS-12531: TNS:cannot allocate memory
- pid max导致fork: Cannot allocate memory 的分析及解决办法
- mount error(12): Cannot allocate memory解决办法
- pid max导致fork: Cannot allocate memory 的分析及解决办法
- Android 启动模拟器是出现“Failed to allocate memory: 8”错误提示的原因及解决办法
- linux下执行 ls,cat等一些命令报出 -bash: /bin/cat: Cannot allocate memory 有没解决的方法
- Android 启动模拟器是出现“Failed to allocate memory: 8”错误提示的原因及解决办法
- Mysql cannot allocate memory for the buffer pool 解决方法
- mount cifs出现cannot allocate memory解决方法
- Android 启动模拟器是出现“Failed to allocate memory: 8”错误提示的原因及解决办法
- Android模拟器报"Failed To Allocate memory 8"错误的解决办法
- Failed to allocate memory: 8 解决办法
- Android 启动模拟器是出现“Failed to allocate memory: 8”错误提示的原因及解决办法
- opencv Insufficient memory (Failed to allocate 1520000 bytes)解决办法
- Ubuntu mount error(12): Cannot allocate memory 的解决方法
- 解决MySQL : InnoDB: Cannot allocate memory for the buffer pool
- 解决redis Can't save in background: fork: Cannot allocate memory
- redis Can’t save in background: fork: Cannot allocate memory 解决及原理