After a fresh install of 11.2.0.4 I stopped the DB (with SHUTDOWN IMMEDIATE), but the EM and agent are still running. And emctl can not see or stop them:
[oracle@oracle bin]$ ps -ef | grep oracl
oracle 20655 1 0 Feb04 ? 00:00:02 /home/oracle/app/oracle/product/11.2.0/dbhome_1/perl/bin/perl /home/oracle/app/oracle/product/11.2.0/dbhome_1/bin/emwd.pl dbconsole /home/oracle/app/oracle/product/11.2.0/dbhome_1/oracle19c-mb.foo.com_orcl/sysman/log/emdb.nohup
oracle 20711 20655 0 Feb04 ? 00:00:16 /home/oracle/app/oracle/product/11.2.0/dbhome_1/bin/emagent
oracle 27357 20655 1 12:10 ? 00:00:06 /home/oracle/app/oracle/product/11.2.0/dbhome_1/jdk/bin/java -server -Xmx384M -XX:MaxPermSize=400M -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -DORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_1 -Doracle.home=/home/oracle/app/oracle/product/11.2.0/dbhome_1/oc4j -Doracle.oc4j.localhome=/home/oracle/app/oracle/product/11.2.0/dbhome_1/oracle19c-mb.foo.com_orcl/sysman -DEMSTATE=/home/oracle/app/oracle/product/11.2.0/dbhome_1/oracle19c-mb.foo.com_orcl -Doracle.j2ee.dont.use.memory.archive=true -Djava.protocol.handler.pkgs=HTTPClient -Doracle.security.jazn.config=/home/oracle/app/oracle/product/11.2.0/dbhome_1/oc4j/j2ee/OC4J_DBConsole_oracle19c-mb.foo.com_orcl/config/jazn.xml -Djava.security.policy=/home/oracle/app/oracle/product/11.2.0/dbhome_1/oc4j/j2ee/OC4J_DBConsole_oracle19c-mb.foo.com_orcl/config/java2.policy -Djavax.net.ssl.KeyStore=/home/oracle/app/oracle/product/11.2.0/dbhome_1/sysman/config/OCMTrustedCerts.txt-Djava.security.properties=/home/oracle/app/oracle/product/11.2.0/dbhome_1/oc4j/j2ee/home/config/jazn.security.props -DEMDROOT=/home/oracle/app/oracle/product/11.2.0/dbhome_1/oracle19c-mb.foo.com_orcl -Dsysman.md5password=true -Drepapi.oracle.home=/home/oracle/app/oracle/product/11.2.0/dbhome_1 -Ddisable.checkForUpdate=true -Doracle.sysman.ccr.ocmSDK.websvc.keystore=/home/oracle/app/oracle/product/11.2.0/dbhome_1/jlib/emocmclnt.ks -Dice.pilots.html4.ignoreNonGenericFonts=true -Djava.awt.headless=true -jar /home/oracle/app/oracle/product/11.2.0/dbhome_1/oc4j/j2ee/home/oc4j.jar -config /home/oracle/app/oracle/product/11.2.0/dbhome_1/oc4j/j2ee/OC4J_DBConsole_oracle19c-mb.foo.com_orcl/config/server.xml
root 27605 2336 0 12:14 pts/0 00:00:00 su - oracle
oracle 27606 27605 0 12:14 pts/0 00:00:00 -bash
oracle 29560 27606 0 12:18 pts/0 00:00:00 ps -ef
oracle 29561 27606 0 12:18 pts/0 00:00:00 grep --color=auto oracl
[oracle@oracle bin]$ emctl status agent
Oracle Enterprise Manager 11g Database Control Release 11.2.0.4.0
Copyright (c) 1996, 2013 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
[oracle@oracle bin]$ emctl status dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.4.0
Copyright (c) 1996, 2013 Oracle Corporation. All rights reserved.
http://oracle.foo.com:1158/em/console/aboutApplication
EM Daemon is not running.
------------------------------------------------------------------
Logs are generated in directory /home/oracle/app/oracle/product/11.2.0/dbhome_1/oracle.foo.com_orcl/sysman/log
[oracle@oracle19c-mb bin]$
I plan to shutdown the server. Is it OK just to go for it, while the above processes are running?