5
Deinstalling Oracle Components
This chapter describes how to deinstall Oracle components and services. It discusses the following topics:
Deinstalling Oracle Components with Oracle Universal Installer
This section describes how to use Oracle Universal Installer to deinstall Oracle components (which deinstalls them from the Oracle Universal Installer inventory) instead of removing them manually. If you delete an Oracle home manually (for example, by deleting the directory structure with Windows NT Explorer), the components in that Oracle home remain registered in the Oracle Universal Installer inventory. If you then attempt an installation in the same Oracle home, some or all of the components selected may not be installed because Oracle Universal Installer determines they are already installed.
Note:
Manual removal of components is permitted only if you exit Oracle Universal Installer during an installation. The following actions prevent Oracle Universal Installer from registering the installation in its inventory.
- Choosing Cancel
- Turning off the computer
- Not completing the installation (that is, all required configuration tools do not run at the end)
Before restarting the installation, you may have to manually remove files that were installed before the installation was aborted.
|
Task 1: Deinstall Net8, Oracle Internet Directory, and Oracle8i Database Registry Entries
Oracle Universal Installer creates Windows NT services for Oracle components during installation. However, Oracle Universal Installer does not delete services created by Net8 Configuration Assistant, OID Configuration Assistant, and Oracle Database Configuration Assistant. If you want to deinstall any of the following components, you must first stop all Oracle Windows NT services and remove the registry entries for their services, as detailed in Table 5-1.
Table 5-1 Deleting Registry Entries
Procedures for performing these tasks are provided in the following sections. After completing these procedures, go to "Task 2: Deinstall Components with Oracle Universal Installer" to complete deinstallation. If you do not want to deinstall the Net8 listener, Oracle Internet Directory, or Oracle8i database, go instead to step "Task 2: Deinstall Components with Oracle Universal Installer".
Stopping Oracle Windows NT Services
You must first stop the Oracle Windows NT services before removing any registry entries.
To stop Windows NT services:
- Choose Start > Settings > Control Panel > Services.
- If any Oracle services (names begin with Oracle) exist and have the status Started, select the service, and choose Stop.
- Choose Close to exit the Services window.
- Exit the Control Panel.
Deinstalling Oracle Internet Directory Services
- Stop the Oracle Internet Directory Server at the MS-DOS command prompt:
C:\> OIDCTL CONNECT=NET_SERVICE_NAME SERVER=OIDLDAPD INSTANCE=SERVER
INSTANCE_NUMBER STOP
where NET_SERVICE_NAME is the network connection to the Oracle Internet Directory Server and SERVER_INSTANCE_NUMBER is the instance number (this number appears in the Server List tab of Oracle Directory Manager).
- Stop the Oracle Internet Directory Monitor at the MS-DOS command prompt:
C:\> OIDMON STOP
- Remove the Oracle Internet Directory service OracleDirectoryService from the registry:
C:\> OIDMON REMOVE
- Follow the procedures in "Deinstalling the Oracle8i Database and Registry Entries" to remove the Oracle8i database configured with Oracle Internet Directory.
Deinstalling the Oracle8i Database and Registry Entries
- Choose Start > Programs > Oracle - HOME_NAME > Database Administration > Database Configuration Assistant.
Oracle Database Configuration Assistant starts.
- Select Delete a database and choose Next.
- Follow the remaining windows to deinstall the Oracle8i database.
The Oracle8i database is deinstalled and OracleServiceSID is deinstalled from HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services in the registry.
Task 2: Deinstall Components with Oracle Universal Installer
To deinstall components with Oracle Universal Installer:
- Choose Start > Programs > Oracle Installation Products > Universal Installer.
The Welcome window for Oracle Universal Installer appears.
- Choose Deinstall Products.
The Inventory window appears.
- Expand the tree of installed components until you find the components to deinstall.
- Check the boxes of components to deinstall.
- Choose Remove.
The Inventory Confirmation window appears.
- Choose Yes to deinstall the selected components.
Note:
A message may appear indicating that removing some components may cause other components to not function properly.
|
The components are deinstalled from your computer. The Inventory window appears without the deinstalled components.
- Choose Close to close the Inventory window.
- Choose Exit to exit Oracle Universal Installer.
Manually Removing All Oracle Components and Services from Your Computer
In rare situations, you may want to correct serious system problems by completely removing Oracle components from the computer.
Remove all Oracle components from your computer only as a last resort, and only if you want to remove all Oracle components from your system.
Note:
You can also use the ORADIM utility to manually deinstall a database and registry entries. See the following documentation for information:
- READMEDOC.HTM or READMEDOC.PDF located in the \DOC directory of the component CD-ROM
- Chapter 6, "Post-Installation Database Creation" of Oracle8i Administrator's Guide for Windows NT
|
This section covers the following topics:
Removing Components on Windows NT
To remove all Oracle components from a computer on Windows NT:
Caution:
These instructions remove all Oracle components, services, and registry entries from your computer. In addition, any database files under ORACLE_BASE\ORADATA\DB_NAME are also removed. Exercise extreme care when removing registry entries. Removing incorrect entries can break your system.
|
- Ensure you are logged in as a user with Administrator privileges.
- Stop all Oracle services (if any are running):
- Choose Start > Settings > Control Panel > Services.
- If any Oracle services (their names begin with Oracle) exist and have the status Started, select the service and choose Stop.
- Choose Close to exit the Services window.
- Start the registry at the MS-DOS command prompt:
C:\> REGEDT32
- Go to HKEY_CLASSES_ROOT.
- Delete any key that starts with Oracle or ORCL.
- Go to HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE.
- Delete the ORACLE key.
- Delete the Oracle ODBC Driver key under HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI.
- Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services and remove all keys under here that begin with ORACLE.
- Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services \EventLog\Application, and remove all keys under here that begin with ORACLE.
- Go to HKEY_CURRENT_USER\SOFTWARE\ORACLE and delete keys that start with Oracle or ORCL (if any exist).
- Go to HKEY_CURRENT_USER\SOFTWARE\ODBC\ODBCINST.INI and delete Oracle keys (if any exist).
- Close the registry.
- Go to Start > Settings > Control Panel > System > Environment tab.
- Choose the system variable path and modify the Path variable.
- Remove any Oracle entries from the path. For example, if JRE was installed by Oracle, remove the %ORACLE_HOME%\BIN path and the JRE path. You may see a path similar to this one:
C:\ORACLE\ORA81\BIN;G:\PROGRAM FILES\ORACLE\JRE\1.1.7\BIN
- Exit the Control Panel.
- Go to SYSTEM_DRIVE:\WINNT\PROFILES\ALL USERS\START MENU\PROGRAMS.
- Delete the following icons:
- Delete SYSTEM_DRIVE:\Program Files\Oracle through Windows NT Explorer.
- Delete all ORACLE_BASE directories on your hard drive.
- Reboot your computer.
Removing Components on Windows 95 or Windows 98
To remove all Oracle components from a computer on Windows 95 or 98:
- Start the registry at the MS-DOS command prompt:
C:\> REGEDIT
- Go to HKEY_CLASSES_ROOT.
- Delete any key that starts with Oracle or ORCL.
- Go to HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE.
- Delete the ORACLE key.
- Delete the Oracle ODBC Driver key under HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI.
- Go to HKEY_CURRENT_USER\SOFTWARE\ORACLE.
- Delete keys that start with Oracle or ORCL (if any exist).
- Go to HKEY_CURRENT_USER\SOFTWARE\ODBC\ODBCINST.INI.
- Delete any Oracle keys.
- Edit your AUTOEXEC.BAT file and remove your %ORACLE_HOME%\BIN and JRE paths from the path setting.
- Delete SYSTEM_DRIVE:\Program Files\Oracle through Windows Explorer.
- Delete icons from:
- Delete all ORACLE_BASE directories on your hard drive.
- Reboot your computer.