Oracle® Database Client Installation Guide 10g Release 1 (10.1.0.2.0) for Windows Part Number B10131-01 |
|
|
View PDF |
This chapter describes how to remove Oracle databases, instances, and software. Always use Oracle Universal Installer to initially remove Oracle components. To avoid installation and configuration problems with new Oracle installations, follow the instructions in this chapter.
This chapter contains these topics:
See Also: Component-specific documentation for individual requirements and restrictions |
You must first stop the Oracle Windows services before removing Oracle components or removing any registry entries.
See Also: Your Microsoft online help for more information about stopping services |
To stop Windows services:
Open the Services control panel:
On Windows NT, choose Start > Settings > Control Panel > Services.
On Windows 2000, choose Start > Settings > Control Panel > Administrative Tools > Services.
On Windows XP, and Windows Server 2003 choose Start > Control Panel > Administrative Tools > Services.
If any Oracle services (names begin with Oracle
or Ora
) exist and have the status Started, then select each of the services, and click Stop.
Click Close to exit the Services window.
Exit the Control Panel.
You must first use Oracle Universal Installer to remove Oracle components from the inventory on the computer. Afterwards, you need to manually remove the remaining components.
Note: Manually removing components without first deinstalling with Oracle Universal Installer is not recommended unless you exit Oracle Universal Installer during an installation. For example:
In these cases, Oracle Universal Installer does not register the installation in its inventory. However, files may have been copied to your Oracle home. Remove these files manually and restart the installation. |
You must first remove Oracle components with Oracle Universal Installer before deleting an Oracle home manually (for example, by deleting the directory structure with Windows Explorer or command prompt), because the components in that Oracle home remain registered in the Oracle Universal Installer inventory. If you subsequently attempt an installation in the same Oracle home, then some or all of the components selected may not be installed, because Oracle Universal Installer determines the components are already installed.
Oracle Universal Installer creates Windows services for Oracle components during installation. However, Oracle Universal Installer does not delete all the services created by Oracle Net Configuration Assistant.
To remove components on a Windows computer with Oracle Universal Installer:
Ensure that you first follow the instructions in "Stopping Oracle Services on Windows ".
Start Oracle Universal Installer. The start procedure depends on which version of Oracle Database Client you installed.
If you installed the Administrator, Runtime, or Custom versions of Oracle Database Client, then Oracle Universal Installer was also installed. Choose Start > Programs > Oracle -HOME_NAME > Oracle Installation Products > Universal Installer. The Welcome screen for Oracle Universal Installer appears.
If you installed the Instant Client version of Oracle Database Client, then Oracle Universal Installer was not installed. You must instead run it from your installation media or the installation directory you created for downloaded or copied installation files.
To start Oracle Universal Installer from the installation media, insert the CD labeled Oracle Database Client. The Autorun screen automatically appears.
If the Autorun screen does not appear, then choose Start > Run and enter:
DRIVE_LETTER:\autorun\autorun.exe
Choose Install/Deinstall Products from the Autorun screen.
To start Oracle Universal Installer from your installation directory, double-click setup.exe
.
Click the Deinstall Products button.
The Inventory screen appears.
Select the Oracle home you wish to remove. Expand the tree of installed components only if you want to remove selected components of an Oracle home.
For example, if you installed Oracle Database Client with the Runtime option and later installed additional components with the Custom option, then expand the Oracle home component to display all the components installed in the Oracle home.
Check the boxes of components to remove.
Click Remove.
The Confirmation screen appears.
Click Yes to remove the selected components.
Note: A message may appear indicating that removing some components may cause other components to not function properly. |
After the components are removed from your computer, the Inventory screen appears without the removed components.
Click Close to close the Inventory screen.
Click Cancel to exit Oracle Universal Installer.
Click Yes to confirm that you want to exit.
Oracle Universal Installer does not remove all Oracle components. After using Oracle Universal Installer to remove Oracle components, you need to manually remove remaining registry keys, environment variables, Start menu options, and directories.
This section contains these topics:
Note: In rare situations, you might want to correct serious system problems by completely removing Oracle components manually from the computer without first deinstalling with Oracle Universal Installer. Do this only as a last resort, and only if you want to remove all Oracle components from your system. |
Oracle Universal Installer does not delete all services created by Oracle Net Configuration Assistant. In addition, it does not delete several other registry keys. You must remove any existing registry keys manually by following the instructions in one of the following sections:
Caution: Use Microsoft Registry Editor at your own risk. Incorrectly using the Registry Editor can cause serious problems and might require reinstallation of your operating system. |
To remove only the Oracle Net Service registry entry (if it exists):
Log in as a member of the Administrators group.
Ensure that you first follow the instructions in "Stopping Oracle Services on Windows ".
Start the registry editor at the command prompt:
C:\> regedt32
Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
and delete the Oracle
HOME_NAME
TNSListener
registry entry. Oracle Universal Installer automatically deletes all other Oracle Net services.
Exit the registry editor.
Restart your computer.
To remove all Oracle registry keys from a computer (if any exist):
Caution: These instructions remove all Oracle components, services, and registry entries from your computer. Exercise extreme care when removing registry entries. Removing incorrect entries can break your system. Any database files underORACLE_BASE \ORACLE_HOME \DB_NAME should be deleted only after completing these instructions. |
Log in as a member of the Administrators group.
Ensure that you first follow the instructions in "Stopping Oracle Services on Windows ".
Start the registry editor at the command prompt:
C:\> regedt32
Go to HKEY_CLASSES_ROOT
.
Delete keys that begin with Ora
, Oracle
, Orcl
, or EnumOra
. This collection of keys includes those that begin with EnumOraHomes
, OracleConfig
, OracleDatabase
, OracleHome
, OracleInProcServer
, OracleProcess
, ORADC
, ORAMMCCFG10
, ORAMMCPMON10
, OraOLEDB
, OraPerfMon
, ORCLMMC
, and ORCLSSO
.
Go to HKEY_LOCAL_MACHINE\SOFTWARE
.
Delete the ORACLE
Group
key.
Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
.
Delete all keys under this branch that begin with Oracle
.
Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services \Eventlog\Application
.
Delete all keys under this branch that begin with Oracle
.
Go to HKEY_CURRENT_USER
.
Delete the ORACLE
key.
Go to HKEY_CURRENT_USER\Software
.
Delete all Oracle
keys, including Oracle-
HOME_NAME
entries under: Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu\Programs
.
Exit the registry editor.
Restart your computer.
Check the Path
environmental variable and remove any Oracle entries.
Choose Start > Settings > Control Panel > System > Advanced tab > Environment Variables.
Select the system variable Path
and edit it to remove any Oracle entries.
For example, remove Oracle entries that contain ORACLE_BASE
\
ORACLE_HOME
in the Path
variable. You may see a Path
variable that contains entries similar to the following:
ORACLE_BASE\ORACLE_HOME\bin;ORACLE_BASE\ORACLE_HOME\jre\1.4.2\bin\client; ORACLE_BASE\ORACLE_HOME\jre\1.4.2\bin
Save any changes and then exit the Control Panel.
Check the Start menu for any Oracle entries and remove them.
On Windows NT computers, perform the following:
Using My Computer or Windows Explorer, navigate to the SYSTEM_DRIVE
:\WINNT\Profiles\All Users\Start Menu\Programs
folder.
Delete the Oracle - HOME_NAME folder.
On Windows 2000 and Windows XP computers, perform the following:
Using My Computer or Windows Explorer, navigate to the SYSTEM
_
DRIVE
:\Document and Settings\All Users\Start Menu\Programs
folder.
Delete the Oracle - HOME_NAME folder.
You can also remove Oracle menu entries with the following instructions:
Right click the Start button to display the context menu.
Select the Explore All Users option.
Expand the Start Menu\Programs folder if necessary.
Delete the Oracle - HOME_NAME folder.
After removing all Oracle registry keys and restarting the computer, delete any existing Oracle directories and files.
Using My Computer or Windows Explorer, delete the SYSTEM
_
DRIVE
:\program files\oracle
directory.
Using My Computer or Windows Explorer, delete all ORACLE
_
BASE
directories on your hard drive.