Link to home
Start Free TrialLog in
Avatar of imyrvold
imyrvold

asked on

How to kill Oracle Enterprise Manager

How do I kill the oem in Oracle 10g on Unix. I am unable to stop it:

>emctl stop dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.1.0.3.0  
Copyright (c) 1996, 2004 Oracle Corporation.  All rights reserved.
http://ortopediservice:5500/em/console/aboutApplication
Stopping Oracle Enterprise Manager 10g Database Control ...
--- Failed to shutdown DBConsole Gracefully ---
 failed.

Avatar of schwertner
schwertner
Flag of Antarctica image

Many times it shuts down nevertheles the message.
OEM on 10g is terrible bugy!
Avatar of imyrvold
imyrvold

ASKER

But I can't start it again, so it must still be running:

>emctl start dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.1.0.3.0  
Copyright (c) 1996, 2004 Oracle Corporation.  All rights reserved.
http://ortopediservice:5500/em/console/aboutApplication
 - An instance of Oracle Enterprise Manager 10g Database Control is already running.
ASKER CERTIFIED SOLUTION
Avatar of Metanil
Metanil

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I have all of the following processes running on my machine. I will try to kill them this evening, when no one is using the database. I couldn't see any of the other processes you listed.

>ps -aux | grep LOCAL  
oracle   24607   1.0 -6.1   635616 127576  ??  Ss    7:13AM   3:43.76 oraclepartos (LOCAL=NO)
oracle   16610   0.0 -5.2   632544 109872  ??  Ss   Fri08AM   0:20.63 oraclepartos (LOCAL=NO)
oracle   12674   0.0 -1.6   632544  34344  ??  Ss    5:38PM   0:01.07 oraclepartos (LOCAL=NO)
oracle   12683   0.0 -2.2   631520  46472  ??  Ss    5:39PM   0:00.83 oraclepartos (LOCAL=NO)
oracle   24448   0.0 -3.6   632544  75188  ??  Ss    7:01AM   0:04.77 oraclepartos (LOCAL=NO)
oracle   24728   0.0 -2.9   632544  60868  ??  Ss    7:22AM   0:06.29 oraclepartos (LOCAL=NO)
oracle   24817   0.0 -5.9   633568 123612  ??  Ss    7:30AM   0:48.93 oraclepartos (LOCAL=NO)
oracle   24878   0.0 -5.8   633568 121920  ??  Ss    7:34AM   0:43.24 oraclepartos (LOCAL=NO)
oracle   24923   0.0 -3.5   632544  72900  ??  Ss    7:36AM   0:02.97 oraclepartos (LOCAL=NO)
oracle   25117   0.0 -2.3   632544  47688  ??  Ss    7:49AM   0:03.56 oraclepartos (LOCAL=NO)
oracle   25134   0.0 -5.9   632544 123720  ??  Ss    7:50AM   1:17.94 oraclepartos (LOCAL=NO)
oracle   25181   0.0 -3.3   631520  69668  ??  Ss    7:52AM   0:28.91 oraclepartos (LOCAL=NO)
oracle   25191   0.0 -5.2   632544 109452  ??  Ss    7:53AM   0:29.54 oraclepartos (LOCAL=NO)
oracle   25341   0.0 -2.7   632544  55772  ??  Ss    8:02AM   0:05.10 oraclepartos (LOCAL=NO)
oracle   25352   0.0 -5.7   633568 120308  ??  Ss    8:03AM   0:16.79 oraclepartos (LOCAL=NO)
oracle   25401   0.0 -5.7   632544 120132  ??  Ss    8:06AM   0:31.37 oraclepartos (LOCAL=NO)
oracle   25411   0.0 -2.2   631520  45996  ??  Ss    8:07AM   0:02.33 oraclepartos (LOCAL=NO)
oracle   25419   0.0 -6.0   633568 124936  ??  Ss    8:08AM   4:25.71 oraclepartos (LOCAL=NO)
oracle   25568   0.0 -2.8   631520  58072  ??  Ss    8:19AM   0:02.09 oraclepartos (LOCAL=NO)
oracle   25685   0.0 -5.8   633568 122224  ??  Ss    8:27AM   2:13.43 oraclepartos (LOCAL=NO)
oracle   25695   0.0 -5.8   633568 122248  ??  Ss    8:28AM   1:38.48 oraclepartos (LOCAL=NO)
oracle   25718   0.0 -3.6   632544  75360  ??  Ss    8:31AM   0:03.07 oraclepartos (LOCAL=NO)
oracle   25747   0.0 -5.9   633568 123328  ??  Ss    8:31AM   1:01.70 oraclepartos (LOCAL=NO)
oracle   25820   0.0 -1.7   631520  35120  ??  Ss    8:36AM   0:01.37 oraclepartos (LOCAL=NO)
oracle   25911   0.0 -0.6   632544  11744  ??  Ss    8:42AM   0:00.75 oraclepartos (LOCAL=NO)
oracle   25936   0.0 -3.4   632544  71160  ??  Ss    8:45AM   0:11.49 oraclepartos (LOCAL=NO)
oracle   25977   0.0 -2.5   631520  51456  ??  Ss    8:47AM   0:05.32 oraclepartos (LOCAL=NO)
oracle   26192   0.0 -4.9   632544 102424  ??  Ss    9:03AM   0:14.07 oraclepartos (LOCAL=NO)
oracle   26289   0.0 -5.0   632544 105520  ??  Ss    9:10AM   0:09.27 oraclepartos (LOCAL=NO)
oracle   26549   0.0 -2.1   632544  43892  ??  Ss    9:27AM   0:03.79 oraclepartos (LOCAL=NO)
oracle   26919   0.0 -1.2   631520  25588  ??  Ss    9:55AM   0:01.20 oraclepartos (LOCAL=NO)
oracle   27031   0.0 -2.6   631520  54624  ??  Ss   10:01AM   0:04.73 oraclepartos (LOCAL=NO)
oracle   27522   0.0 -2.2   631520  46784  ??  Ss   10:36AM   0:03.98 oraclepartos (LOCAL=NO)
oracle   27539   0.0 -0.5   631520  10172  ??  Ss   10:36AM   0:00.63 oraclepartos (LOCAL=NO)
oracle   27550   0.0 -5.6   632544 116992  ??  Ss   10:37AM   0:18.11 oraclepartos (LOCAL=NO)
oracle   27613   0.0 -3.3   631520  68792  ??  Ss   10:41AM   0:47.66 oraclepartos (LOCAL=NO)
oracle   27896   0.0 -0.6   631520  12008  ??  Ss   11:01AM   0:00.86 oraclepartos (LOCAL=NO)
oracle   27969   0.0 -4.1   632544  85524  ??  Ss   11:06AM   0:04.39 oraclepartos (LOCAL=NO)
Fix

If possible reboot server.

If a reboot is not possible, then try manually killing hung processes.

Step 1
Look at the emctl.pid file in /u02/app/product/oracle/10db/_/

Step 2
Ps -ef | grep <pid from the emctl.pid file>

Step 3
Find the process number in the file and all its child process and kill -9 all process associated with the
EMCTL pid

Step 4
Next do
emctl stop dbconsole - It will do some housekeeping

Step 5
Then do
emctl start dbconsole

Test console
======================================================================

If this does not work (there's no such process as shown in emctl.pid),
remove this file and start dbconsole again.
Actually the root process of OEM in my system is:

oracle    6947  6938  0 Jun22 pts/0    00:00:00 /u01/app/oracle/jdk/bin/java -server -Xmx512M -XX:MaxPermSize=64m -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -DORACLE_HOME=/u01/app/oracle -Doracle.home=/u01/app/oracle/oc4j -Doracle.oc4j.localhome=/u01/app/oracle/Europa_research/sysman -DEMSTATE=/u01/app/oracle/Europa_research -Doracle.j2ee.dont.use.memory.archive=true -Djava.protocol.handler.pkgs=HTTPClient -Doracle.security.jazn.config=/u01/app/oracle/oc4j/j2ee/OC4J_DBConsole_Europa_research/config/jazn.xml -Djava.security.policy=/u01/app/oracle/oc4j/j2ee/OC4J_DBConsole_Europa_research/config/java2.policy -Djava.security.properties=/u01/app/oracle/oc4j/j2ee/home/config/jazn.security.props -DEMDROOT=/u01/app/oracle/Europa_research -Dsysman.md5password=true -Drepapi.oracle.home=/u01/app/oracle -Ddisable.checkForUpdate=true -Djava.awt.headless=true -jar /u01/app/oracle/oc4j/j2ee/home/oc4j.jar -config /u01/app/oracle/oc4j/j2ee/OC4J_DBConsole_Europa_research/config/server.xml


Try killing this process.

Note: did u change user oracle to other group? this cause dbconsole to start and stop.... You can check this.

Metanil