Oracle 10g 安裝gc:OPMN Process Manager failed to start和OUI - 25031解決方案

urgel_babay發表於2016-02-29
 2014.12.24 
   
        今天在oracle Linux裡面安裝oracle 10g gridcontrol的時候報如下錯誤:
OPMN程式沒有開啟
Oracle 10g 安裝gc:OPMN Process Manager failed to start和OUI - 25031解決方案

   這幾乎是每個安裝過oracle 10g GC都會遇到的報錯,初次接觸的時候還真不知道怎麼解決,更不知道原理所在。經過我的總結,大部分報opmn 都是因為http服務或者程式沒有起來。要麼是系統沒有安裝httpd服務,要麼是沒有啟動http

那麼為什麼要http程式是執行的呢?
   答:我是這樣理解的,不對之處請諒解!grid control(簡稱GC) 它本身是一個網頁形式用過oracle的監控和管理系統。所以在安裝GC的時候會涉及和http互動。

解決辦法:

1、  可能是介質錯誤

2、  手動的啟動opmn

cd ?/OracleHomes/oms10g/opmn/bin

[oracle@zhang1 bin]$ ./opmnctl stopall

[oracle@zhang1 bin]$ ./opmnctl startall

具體的步驟:

[root@zhanglin bin]# ./opmnctl status      ----檢視opmn 服務的狀態
    Processes in Instance: EnterpriseManager0.zhanglin.oracle.com
  1. -------------------+--------------------+---------+---------
  2. ias-component | process-type | pid      | status
  3. -------------------+--------------------+---------+---------
  4. DSA           | DSA          | N/A      | Down
  5. HTTP_Server   | HTTP_Server  | N/A      | Down            ----http程式沒有起來 
  6. LogLoader     | logloaderd   | N/A      | Down
  7. dcm-daemon    | dcm-daemon   | N/A      | Down
  8. OC4J          | home         | 6542     | Alive
  9. WebCache      | WebCache     | 6566     | Alive
  10. WebCache      | WebCacheAdmin| 6543     | Alive

  11. [root@zhanglin bin]# /etc/init.d/httpd start     ----嘗試啟動http
  12. Starting httpd:
  13. [root@zhanglin bin]# /etc/init.d/httpd stop
  14. Stopping httpd:                     [ OK ]
  15. [root@zhanglin bin]# /etc/init.d/httpd start
  16. Starting httpd:                     [ OK ]
  17. [root@zhanglin bin]# ./opmnctl startall            ----再次檢視opmn 但是報錯
  18. opmnctl: starting opmn and all managed processes...   
  19. ================================================================================
  20. opmn id=zhanglin.oracle.com:6200
  21.     0 of 1 processes started.

  22. ias-instance id=EnterpriseManager0.zhanglin.oracle.com
  23. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  24. ias-component/process-type/process-set:
  25.     HTTP_Server/HTTP_Server/HTTP_Server

  26. Error
  27. --> Process (pid=9426)
  28.     failed to start a managed process after the maximum retry limit
  29.     Log:
  30.     /u01/app/oracle/OracleHomes/oms10g/opmn/logs/HTTP_Server~1

  31. [root@zhanglin bin]# ./opmnctl status

  32. Processes in Instance: EnterpriseManager0.zhanglin.oracle.com
  33. -------------------+--------------------+---------+---------
  34. ias-component      | process-type       | pid     | status
  35. -------------------+--------------------+---------+---------
  36. DSA                | DSA                | N/A     | Down
  37. HTTP_Server        | HTTP_Server        | N/A     | Down         -----還是沒有起來
  38. LogLoader          | logloaderd         | N/A     | Down
  39. dcm-daemon         | dcm-daemon         | N/A     | Down
  40. OC4J               | home               | 6542    | Alive
  41. WebCache           | WebCache           | 6566    | Alive
  42. WebCache           | WebCacheAdmin      | 6543    | Alive

  43. [root@zhanglin bin]# cd /u01/app/oracle/OracleHomes/oms10g/opmn/logs/
  44. [root@zhanglin logs]# ls
  45. HTTP_Server~1 OC4J~home~default_island~1 opmn.log WebCache~WebCache~1
  46. ipm.log ons.log states WebCache~WebCacheAdmin~1
  47. [root@zhanglin logs]# tail -100 HTTP_Server~1    ----檢視剛剛提示日誌log

  48. --------
  49. 14/12/23 17:16:32 Start process
  50. --------
  51. /u01/app/oracle/OracleHomes/oms10g/Apache/Apache/bin/apachectl start: execing httpd
  52. /u01/app/oracle/OracleHomes/oms10g/Apache/Apache/bin/httpd: error while loading shared libraries: libdb.so.2: cannot open shared object file: No such file or directory

  53. --------
  54. 14/12/23 17:22:56 Start process
  55. --------
  56. /u01/app/oracle/OracleHomes/oms10g/Apache/Apache/bin/apachectl start: execing httpd
  57. /u01/app/oracle/OracleHomes/oms10g/Apache/Apache/bin/httpd: error while loading shared libraries: libdb.so.2: cannot open shared object file: No such file or directory

  58. --------
  59. 14/12/23 17:47:52 Start process
  60. --------
  61. /u01/app/oracle/OracleHomes/oms10g/Apache/Apache/bin/apachectl start: execing httpd
  62. /u01/app/oracle/OracleHomes/oms10g/Apache/Apache/bin/httpd: error while loading shared libraries: libdb.so.2: cannot open shared object file: No such file or directory
  63.          -----提示很明顯,確實檔案,其實這個只需要做個軟連結,指向另外一個libdb.so.2
  64. --------
  65. 14/12/23 17:47:54 Start process
  66. --------
  67. /u01/app/oracle/OracleHomes/oms10g/Apache/Apache/bin/apachectl start: execing httpd
  68. /u01/app/oracle/OracleHomes/oms10g/Apache/Apache/bin/httpd: error while loading shared libraries: libdb.so.2: cannot open shared object file: No such file or directory
  69. [root@zhanglin logs]# ln -s /usr/lib/libgdbm.so.2.0.0 /usr/lib/libdb.so.2   ----做一個連結指向真正的檔案
  70. [root@zhanglin logs]# cd /u01/app/oracle/OracleHomes/oms10g/opmn/bin/
  71. [root@zhanglin bin]# ls
  72. argus opmn opmnconfig opmnctl opmnctl.tmp opmndep
  73. [root@zhanglin bin]# ./opmnctl startall    ----再次嘗試啟動opmn
  74. opmnctl: starting opmn and all managed processes...
  75. [root@zhanglin bin]# ./opmnctl status

  76. Processes in Instance: EnterpriseManager0.zhanglin.oracle.com
  77. -------------------+--------------------+---------+---------
  78. ias-component      | process-type       | pid     | status
  79. -------------------+--------------------+---------+---------
  80. DSA                | DSA                | N/A     | Down
  81. HTTP_Server        | HTTP_Server        | 10280   | Alive    ----起來了
  82. LogLoader          | logloaderd         | N/A     | Down
  83. dcm-daemon         | dcm-daemon         | N/A     | Down
  84. OC4J               | home               | 6542    | Alive
  85. WebCache           | WebCache           | 6566    | Alive
  86. WebCache           | WebCacheAdmin      | 6543    | Alive

  87. [root@zhanglin bin]#
      我做過很多次,基本上上面的步驟都可以解決,而且後面可能還會報 OUI - 25031的錯誤,首先去檢視一下opmn 的四個服務是否都起來了。一般是沒有起來才會報25031。
    


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30936525/viewspace-2016678/,如需轉載,請註明出處,否則將追究法律責任。

相關文章