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.

  1. 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

  2. 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

  3. Stop OMS using the stop oms command, which stops both the Admin Server and the OMS Server. This command is run from the oms/bin directory. For example, your oms/bin directory and command line might be:

    /u01/app/emgc12/oms/bin/emctl stop oms

  4. 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

  5. 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.
  6. Kill any Oracle-based java process which are listed as results from the above command.