程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 數據庫知識 >> Oracle數據庫 >> Oracle教程 >> Oracle-ASM-PRCR-1079-監聽啟動報錯

Oracle-ASM-PRCR-1079-監聽啟動報錯

編輯:Oracle教程

   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 ~]$

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved