Oracle® Enterprise Manager Grid Control Advanced Installation and Configuration Guide 11g Release 1 (11.1.0.1.0) Part Number E16847-10 |
|
|
PDF · Mobi · ePub |
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.Before you deinstall Enterprise Manager Grid Control, follow these steps:
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.
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
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:
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>
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.
To deinstall Enterprise Manager Grid Control, follow these steps:
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, invokesetup.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.In the Enterprise Manager Grid Control Installation Wizard, on the My Oracle Support Details screen, click Installed Products.
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 the Oracle homes, follow these steps:
Verify whether the Oracle homes and other directories were successfully deinstalled. To do so, follow these steps:
Invoke the installer from the Oracle home of the OMS by running the following command:
$<ORACLE_HOME>/oui/bin/runInstaller
Note:
For Microsoft Windows, invokesetup.exe
.In the Enterprise Manager Grid Control Installation Wizard, on the My Oracle Support Details screen, click Installed Products.
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.
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
.
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
Start the registry editor by selecting Start and then Run. Type regedit
and click OK.
Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\
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.
Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services. Delete the keys that begin with Oracle.
Navigate to HKEY_LOCAL_MACHINE\SYSTEM\ControlSet2\Services. Delete the keys that begin with Oracle.
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.
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.
Exit from the registry editor.
Clean Up Environment Settings
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.
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.
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.
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.
Click Apply and then click OK.
Close the Control Panel window.
Delete Software and Start Menu Icons
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.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.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\
Restart the host.