安装进度在96%左右时,会出现opmn启动错误。
查看日志:/oracle/OracleHomes/oms10g/opmn/logs
[oracle@grid logs]$ ls -lrt
total 12
drwx------ 2 oracle oinstall 4096 Jul 10 15:16 states
-rw-rw---- 1 oracle oinstall 0 Jul 10 15:16 opmn.log
-rw-rw---- 1 oracle oinstall 43 Jul 10 15:16 ons.log
-rw-rw---- 1 oracle oinstall 266 Jul 10 15:16 ipm.log
[oracle@grid logs]$ vi ipm.log
13/07/08 15:42:51 [4] Create pm state directory: /oracle/OracleHomes/oms10g/opmn/logs/states
13/07/08 15:42:51 [4] PM state file does not exist: /oracle/OracleHomes/oms10g/opmn/logs/states/.opmndat
13/07/08 15:42:51 [4] OPMN server ready. Request handling enabled.
手工创建 .opmndat 文件
[oracle@grid states]$ cd /oracle/OracleHomes/oms10g/opmn/logs/states
[oracle@grid states]$ touch .opmndat
[oracle@grid states]$ ls -la
total 8
drwx------ 2 oracle oinstall 4096 Jul 8 16:22 .
drwxr-xr-x 3 oracle oinstall 4096 Jul 8 16:13 ..
-rw-r--r-- 1 oracle oinstall 0 Jul 8 16:22 .opmndat
[oracle@grid opmn]$ cd bin
[oracle@grid bin]$ ./opmnctl status
Processes in Instance: EnterpriseManager0.grid.oracle.com
-------------------+--------------------+---------+---------
ias-component | process-type | pid | status
-------------------+--------------------+---------+---------
DSA | DSA | N/A | Down
HTTP_Server | HTTP_Server | N/A | Down
LogLoader | logloaderd | N/A | Down
dcm-daemon | dcm-daemon | N/A | Down
OC4J | home | N/A | Down
WebCache | WebCache | N/A | Down
WebCache | WebCacheAdmin | N/A | Down
[oracle@grid bin]$ ./opmnctl startall
opmnctl: starting opmn and all managed processes...
================================================================================
opmn id=grid.oracle.com:6200
3 of 4 processes started.
ias-instance id=EnterpriseManager0.grid.oracle.com
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ias-component/process-type/process-set:
HTTP_Server/HTTP_Server/HTTP_Server
Error
--> Process (pid=29638)
failed to start a managed process after the maximum retry limit
Log:
/oracle/OracleHomes/oms10g/opmn/logs/HTTP_Server~1
查看错误日志:
[oracle@grid bin]$ vi /oracle/OracleHomes/oms10g/opmn/logs/HTTP_Server~1
--------
13/07/10 15:19:20 Start process
--------
/oracle/OracleHomes/oms10g/Apache/Apache/bin/apachectl start: execing httpd
/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
--------
13/07/10 15:19:20 Start process
--------
/oracle/OracleHomes/oms10g/Apache/Apache/bin/apachectl start: execing httpd
/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
使用root用户创建连接:
ln -s /usr/lib/libgdbm.so.2.0.0 /usr/lib/libdb.so.2
再次执行startall操作:
[oracle@grid bin]$ ./opmnctl startall
opmnctl: starting opmn and all managed processes...
查看进程的启动状态:
[oracle@grid bin]$ ./opmnctl status
Processes in Instance: EnterpriseManager0.grid.oracle.com
-------------------+--------------------+---------+---------
ias-component | process-type | pid | status
-------------------+--------------------+---------+---------
DSA | DSA | N/A | Down
HTTP_Server | HTTP_Server | 29701 | Alive
LogLoader | logloaderd | N/A | Down
dcm-daemon | dcm-daemon | N/A | Down
OC4J | home | 29631 | Alive
WebCache | WebCache | 29643 | Alive
WebCache | WebCacheAdmin | 29637 | Alive
点击继续按钮,而不是retry按钮。进行安装的完成。
来自:http://recyclebin.blog.51cto.com/805498/1246211