Stop the Agent, OMS, and Database Using Line Commands
You should these commands, in this sequence, to stop the Enterprise Manager Agent, the OMS, and the Oracle database using by Enterprise Manager prior to deinstalling any product.
On the machine where the database that is being used by Enterprise Manager is running, stop the database using these commands:
sqlplus '/as sysdba'
shutdown immediate
On the machine where the database that is being used by Enterprise Manager is installed, stop the database listener using the
lsnrctl stop
command. This command is run from the/oracle/home/bin
directory. For example, your/oracle/home/bin
directory and command line might be:/u01/app/oracle/home/bin/lsnrctl stop
Stop OMS using the
stop oms
command, which stops both the Admin Server and the OMS Server. This command is run from theoms/bin
directory. For example, youroms/bin
directory and command line might be:/u01/app/emgc12/oms/bin/emctl stop oms
Stop the Management Agent using the
stop Agent
command. This command is run from the bin directory of the agent installation directory. For example, your/bin
directory and command line might be:/u01/app/emgc12/agent/agent_inst/bin/emctl stop agent
Verify there no additional Oracle processes are running using this command:
ps –r | grep oracle
Note: A likely example of an Oracle process that might be running is for the WebLogic Server Node Manager.Kill any Oracle-based java process which are listed as results from the above command.