[oracle@dbserver1 bin]$ ./opmnctl stopall
opmnctl: stopping opmn and all managed processes...
[oracle@dbserver1 bin]$ ./opmnctl startall
opmnctl: starting opmn and all managed processes...
================================================================================
opmn id=dbserver1:6200
4 of 6 processes started.
ias-instance id=EnterpriseManager0.localhost
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
--------------------------------------------------------------------------------
ias-component/process-type/process-set:
WebCache/WebCache/WebCache
Error
--> Process (pid=10003)
failed to start a managed process after the maximum retry limit
Log:
/u01/app/oracle/grid/oms10g/opmn/logs/WebCache~WebCache~1
--------------------------------------------------------------------------------
ias-component/process-type/process-set:
WebCache/WebCacheAdmin/WebCacheAdmin
Error
--> Process (pid=9958)
failed to start a managed process after the maximum retry limit
Log:
/u01/app/oracle/grid/oms10g/opmn/logs/WebCache~WebCacheAdmin~1
[oracle@dbserver1 bin]$ vi /u01/app/oracle/grid/oms10g/opmn/logs/WebCache~WebCache~1
...
Oracle Application Server Web Cache 10g (10.1.2)
Copyright (c) 1999, 2005, Oracle. All rights reserved.
[10/Jul/2012:10:09:18 +0800] [error 13079] [ecid: -] No matching CACHE element found in
webcache.xml for current hostname (dbserver1) and ORACLE_HOME (/u01/a
pp/oracle/grid/oms10g)
[10/Jul/2012:10:09:18 +0800] [alert 9000] [ecid: -] Process 9957 exit(1) at 5765:loadcfg.c [Build
10.1.2.0.2 050802]
--------
12/07/10 10:09:21 Start process
--------
Oracle Application Server Web Cache 10g (10.1.2)
Copyright (c) 1999, 2005, Oracle. All rights reserved.
[10/Jul/2012:10:09:21 +0800] [error 13079] [ecid: -] No matching CACHE element found in
webcache.xml for current hostname (dbserver1) and ORACLE_HOME (/u01/a
pp/oracle/grid/oms10g)
[10/Jul/2012:10:09:21 +0800] [alert 9000] [ecid: -] Process 10003 exit(1) at 5765:loadcfg.c
[Build 10.1.2.0.2 050802]
[oracle@dbserver1 bin]$ ./opmnctl status
Processes in Instance: EnterpriseManager0.localhost
-------------------+--------------------+---------+---------
ias-component | process-type | pid | status
-------------------+--------------------+---------+---------
DSA | DSA | N/A | Down
HTTP_Server | HTTP_Server | 9929 | Alive
LogLoader | logloaderd | N/A | Down
dcm-daemon | dcm-daemon | N/A | Down
OC4J | home | 9930 | Alive
OC4J | OC4J_EM | 9931 | Alive
OC4J | OC4J_EMPROV | 9939 | Alive
WebCache | WebCache | N/A | Down
WebCache | WebCacheAdmin | N/A | Down
[oracle@dbserver1 bin]$ hostname
dbserver1
[oracle@dbserver1 bin]$ vi $OMS_HOME/webcache/webcache.xml
<CACHE NAME="localhost-WebCache" ORACLEHOME="/u01/app/oracle/grid/oms10g" HOSTNAME="localhost" VOTES="1" CAPACITY="30" WCDEBUGON="NO">
改为
<CACHE NAME="localhost-WebCache" ORACLEHOME="/u01/app/oracle/grid/oms10g" HOSTNAME="dbserver1" VOTES="1" CAPACITY="30" WCDEBUGON="NO">
[oracle@dbserver1 bin]$ ./opmnctl startall
opmnctl: starting opmn and all managed processes...
[oracle@dbserver1 bin]$ ./opmnctl status
Processes in Instance: EnterpriseManager0.localhost
-------------------+--------------------+---------+---------
ias-component | process-type | pid | status
-------------------+--------------------+---------+---------
DSA | DSA | N/A | Down
HTTP_Server | HTTP_Server | 9929 | Alive
LogLoader | logloaderd | N/A | Down
dcm-daemon | dcm-daemon | N/A | Down
OC4J | home | 9930 | Alive
OC4J | OC4J_EM | 9931 | Alive
OC4J | OC4J_EMPROV | 9939 | Alive
WebCache | WebCache | 10163 | Alive
WebCache | WebCacheAdmin | 10155 | Alive