Skip Headers
Oracle® Enterprise Manager Grid Control Advanced Installation and Configuration Guide
11g Release 1 (11.1.0.1.0)

E16847-15
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
PDF · Mobi · ePub

29 Deinstalling Enterprise Manager System in Graphical Mode

This chapter describes how you can deinstall Enterprise Manager Grid Control (either the entire Enterprise Manager Grid Control system or one or more Oracle Management Services), in graphical mode. In particular, this chapter covers the following:

Note:

If you want to deinstall Oracle WebLogic Server, then refer to My Oracle Support note 1071392.1.

Prerequisites

Before you deinstall Enterprise Manager Grid Control, follow these steps:

  1. Delete Oracle Management Service (OMS) by running the following command from the Oracle home of the OMS. This command automatically stops the OMS, Oracle WebLogic Server, and also Oracle WebTier.

    <ORACLE_HOME>/bin/omsca delete -full

  2. Shut down Oracle Management Agent (Management Agent) by running the following command from the Oracle home of the Management Agent:

    <ORACLE_HOME>/bin/emctl stop agent

  3. If you want to deinstall the entire Enterprise Manager Grid Control system, including Oracle Management Repository (Management Repository) that is configured in your database, then after deleting all the OMSes and the Management Agents, follow these steps:

    1. Drop the Enterprise Manager Grid Control schema (SYSMAN schema) and the Metadata schema (MDS schema) from the Management Repository by running the following command from the Oracle home of the OMS:

      <ORACLE_HOME>/sysman/admin/emdrep/bin/RepManager <database_host> <repository_database_port> <repository_database_sid> -action dropall -dbUser <repository_database_user> -dbPassword <repository_database_password> -dbRole <repository_database_user_role> -reposName <repository_name> -reposPassword <repository_password> -mwHome <middleware_home> -mwOraHome <middleware_ora_home> -oracleHome <oracle_home>

      Note:

      For Microsoft Windows, invoke RepManager.bat.

      RepManager 11.1 supports -action dropall (drops SYSMAN as well as SYSMAN_MDS) and -action drop (drops only SYSMAN). However, RepManager 10.2.0.5 supports -action drop (drops only SYSMAN)

    2. Manually delete the data files mgmt.dbf and mgmt_ecm_depot1.dbf from the Oracle home of the database.

    WARNING:

    Once the Management Repository is dropped, it CANNOT be retrieved. Therefore, drop the Management Repository ONLY IF you want to deinstall the entire Enterprise Manager Grid Control system, that is, all your OMSes, Management Agents, and also the Management Repository. If you want to deinstall only an OMS (additional OMS installation), then do not drop the Management Repository.

Deinstallation Procedure

To deinstall Enterprise Manager Grid Control, follow these steps:

  1. Invoke the installer from the Oracle home of the OMS by running the following command:

    $<ORACLE_HOME>/oui/bin/runInstaller -removeallfiles

    Note:

    For Microsoft Windows, invoke setup.exe. Also, when you runInstaller -help, you will see the option -nowarningonremovefiles listed. This option is currently not supported and has no effect even if you use it.
  2. In the Enterprise Manager Grid Control Installation Wizard, on the My Oracle Support Details screen, click Installed Products.

  3. On the Inventory screen, select the following and click Remove.

    • Oracle home of the OMS (oms11g).

      For example, /u01/app/Oracle/Middleware/oms11g

    • Oracle home of the Management Agent (agent11g).

      For example, /u01/app/Oracle/Middleware/agent11g

    • Oracle home of Oracle WebTier (Oracle_WT) that is present in the Oracle Middleware Home.

      For example, /u01/app/Oracle/Middleware/Oracle_WT

    • Common directory (oracle_common) that is present in the Oracle Middleware Home.

      For example, /u01/app/Oracle/Middleware/oracle_common

    • Oracle Management Service Instance Base (gc_inst or any other custom name specified by you) that is present in the parent directory of the Oracle Middleware Home.

      For example, /u01/app/Oracle/gc_inst

      Note:

      If the parent directory of the Oracle Middleware Home did not have write permission, then the Oracle Management Service Instance Base might have been created in the Oracle Middleware Home.

After You Deinstall

After you deinstall the Oracle homes, follow these steps:

  1. Verify whether the Oracle homes and other directories were successfully deinstalled. To do so, follow these steps:

    1. Invoke the installer from the Oracle home of the OMS by running the following command:

      $<ORACLE_HOME>/oui/bin/runInstaller

      Note:

      For Microsoft Windows, invoke setup.exe.
    2. In the Enterprise Manager Grid Control Installation Wizard, on the My Oracle Support Details screen, click Installed Products.

    3. On the Inventory screen, check whether or not the Oracle homes and other directories you deinstalled appear. If the deinstallation was successful, then those Oracle homes and directories should not appear.

  2. The Oracle homes you deinstalled are deregistered from the central inventory and the oratab file. However, some files might still remain in these Oracle homes. You might also see the OMS instance base directory and the Oracle home for Web Tier. You can manually delete these files and directories.

    You must also manually delete all auto-start scripts present in the /etc/rc.d/ directory. For example, /etc/rc.d/rc3.d/S98gcstartup.

  3. If you deinstalled on a Microsoft Windows platform, then follow these steps. Ensure that you are logged in as a user with Administrator privileges on that host.

    Remove Entries from Microsoft Windows Registry

    1. Start the registry editor by selecting Start and then Run. Type regedit and click OK.

    2. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\

    3. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\ODBC and expand all the subkeys, and remove the key Oracle in <HOME_NAME>. Check whether the Oracle ODBC Driver key contents refer to the ORACLE_HOME deinstalled. If yes, delete the key.

    4. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services. Delete the keys that begin with Oracle.

    5. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\ControlSet2\Services. Delete the keys that begin with Oracle.

    6. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\...\Application. Delete the keys that begin with Oracle and contain references to the EventMessageFile string entry for the ORACLE_HOME deinstalled or a location under it.

    7. Navigateto HKEY_CLASSES_ROOT and search in the keys starting with Ora or ORCL (for example, Oracle..., ORADC... ..., OraPerf..and ORCL...). Delete keys which include string values with the specific ORACLE_HOME deinstalled.

    8. Exit from the registry editor.

    Clean Up Environment Settings

    1. Open the Environment Variables window.

      On Microsoft Windows NT, select Start, Settings, Control Panel, System, and then Environment.

      On Microsoft Windows XP or 2000, select select Start, Settings, Control Panel, System, Advanced, and then Environment Variables.

    2. In the System Variables section, click the variable PATH in order to modify the value.

      For example, you may see a path similar to this one:

      C:\ORACLE\EM10g\BIN
      C:\PROGRAM FILES\ORACLE\JRE\1.1.7\BIN
      

      If you are deleting the Oracle home C:\ORACLE\EM11g, then remove the C:\ORACLE\EM11g\BIN expression from the PATH variable.

      Delete any path expression in the PATH variable that contains the ORACLE_HOME deinstalled or a location under it.

    3. If there is a CLASSPATH variable under System Variables, then delete the path expressions in the variable that contains the ORACLE_HOME deinstalled or a location under it.

    4. Check whether there are any other Oracle variables set in System Variables. Delete those variables that contain the ORACLE_HOME deinstalled.

      For example, ORACLE_HOME, ORACLE_SID, TNS_ADMIN, inventory_loc, and so on.

    5. Click Apply and then click OK.

    6. Close the Control Panel window.

    Delete Software and Start Menu Icons

    1. Navigate to the Programs directory.

      On Microsoft Windows NT, navigate to %SystemDrive%\WINNT\PROFILES\ALL USERS\START MENU\PROGRAMS

      On Microsoft Windows 2000 and Windows XP, navigate to %SystemDrive%\DOCUMENTS AND SETTINGS\ALL USERS\START MENU\ ...\PROGRAMS

      Note:

      These locations depend on whether the operating system was upgraded from Microsoft Windows NT or was a new install of Microsoft Windows 2000 or Microsoft Windows XP.
    2. Delete the folders -Oracle - <HOME_NAME> where <HOME_NAME> is the ORACLE_HOME deinstalled.

      Note:

      To locate your System Drive, type echo %SystemDrive% in the command prompt.
    3. Navigate to the temp directory and delete all files and directories at the following locations:

      On Microsoft Windows NT: %SystemDrive%\Temp

      On Microsoft Windows 2000 and Microsoft Windows XP: %SystemDrive%\Documents and Settings\<username>\Local Settings\Temp\

    4. Restart the host.