Oracle-ASM-PRCR-1079-监听启动报错
1.1. ASM:PRCR-1079
ASM的监听启动失败。
报错原因:
没有配置LD_LIBRARY_PATH变量导致oraagent.bin找不到库文件。
解决方法:
配置LD_LIBRARY_PATH变量。
解决步骤:
以grid身份启动监听的时候报错:
[grid@rolequery ~]$ srvctl start listener
PRCR-1079 : Failed to start resourceora.LISTENER.lsnr
CRS-5016: Process"/home/U01/app/grid/11.2.3/bin/lsnrctl" spawned by agent"/home/U01/app/grid/11.2.3/bin/oraagent.bin" for action"start" failed: details at "(:CLSN00010:)" in"/home/U01/app/grid/11.2.3/log/rolequery/agent/ohasd/oraagent_grid/oraagent_grid.log"
CRS-5016: Process"/home/U01/app/grid/11.2.3/bin/lsnrctl" spawned by agent "/home/U01/app/grid/11.2.3/bin/oraagent.bin" foraction "start" failed: details at "(:CLSN00010:)" in"/home/U01/app/grid/11.2.3/log/rolequery/agent/ohasd/oraagent_grid/oraagent_grid.log"
CRS-2674: Start of ‘ora.LISTENER.lsnr‘ on‘rolequery‘ failed
查看日志:
[ora.LISTENER.lsnr][3550127872] {0:0:264}[start] (:CLSN00010:)LSNRCTL for Linux: Version 11.2.0.3.0 - Production on30-MAR-2014 12:31:00
[ora.LISTENER.lsnr][3550127872] {0:0:264}[start] (:CLSN00010:)Copyright (c) 1991, 2011, Oracle. All rights reserved.
[ora.LISTENER.lsnr][3550127872] {0:0:264}[start] (:CLSN00010:)Connecting to(DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
[ora.LISTENER.lsnr][3550127872] {0:0:264}[start] (:CLSN00010:)TNS-12541: TNS:no listener
[ora.LISTENER.lsnr][3550127872] {0:0:264}[start] (:CLSN00010:) TNS-12560: TNS:protocol adapter error
[ora.LISTENER.lsnr][3550127872] {0:0:264}[start] (:CLSN00010:) TNS-00511: Nolistener
[ora.LISTENER.lsnr][3550127872] {0:0:264}[start] (:CLSN00010:) Linux Error: 111:Connection refused
[ora.LISTENER.lsnr][3550127872] {0:0:264}[start] (:CLSN00010:) TNS-00525:Insufficient privilege for operation
[ora.LISTENER.lsnr][3550127872] {0:0:264}[start] (:CLSN00010:) Linux Error: 1:Operation not permitted
[ora.LISTENER.lsnr][3550127872] {0:0:264}[start] (:CLSN00010:)Listener failed to start. See the error message(s)above...
...
[ AGENT][3550127872] {0:0:264} UserErrorException: Locale is
[ora.LISTENER.lsnr][3550127872] {0:0:264}[start] clsnUtils::error Exception type=2 string= CRS-5016: Process"/home/U01/app/grid/11.2.3/bin/lsnrctl" spawned by agent "/home/U01/app/grid/11.2.3/bin/oraagent.bin" foraction "start" failed: details at "(:CLSN00010:)" in"/home/U01/app/grid/11.2.3/log/rolequery/agent/ohasd/oraagent_grid/oraagent_grid.log"
[ AGFW][3550127872] {0:0:264} sending status msg [CRS-5016: Process"/home/U01/app/grid/11.2.3/bin/lsnrctl" spawned
by agent "/home/U01/app/grid/11.2.3/bin/oraagent.bin"for action "start" failed: details at "(:CLSN00010:)"
in"/home/U01/app/grid/11.2.3/log/rolequery/agent/ohasd/oraagent_grid/oraagent_grid.log"]
for start for resource: ora.LISTENER.lsnrrolequery 1
手动调用/home/U01/app/grid/11.2.3/bin/oraagent.bin命令:
[grid@rolequery ~]$ /home/U01/app/grid/11.2.3/bin/oraagent.bin
/home/U01/app/grid/11.2.3/bin/oraagent.bin:error while loading shared libraries: libocr11.so: cannot open shared objectfile: No such file or directory
查看library文件是否存在:
[grid@rolequery ~]$ ls -l/home/U01/app/grid/11.2.3/lib/libocr11.so
-rw-r----- 1 grid oinstall 1590995 Sep 3 2011/home/U01/app/grid/11.2.3/lib/libocr11.so
说明: libor11.so库文件是存在的,但是grid用户找不到。
查看LD_LIBRARY_PATH变量的配置:
echo $LD_LIBRARY_PATH
空(即未配置)
配置LD_LIBRARY_PATH变量:
vim ~/.asmprofile
添加export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
source ~/.bash_profile
启动监听:
[grid@rolequery ~]$ srvctl start listener
[grid@rolequery ~]$ srvctl statuslistener
Listener LISTENER is enabled
Listener LISTENER is running on node(s):rolequery
[grid@rolequery ~]$
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。