Как удалить oracle client
How to uninstall / completely remove Oracle 11g (client)?
deinstall.bat doesn't work.
unbelievable that this question was closed by mods, the post below was extremely helpful. Wish they would widen the community scope to include "anything helpful to developers".
@fuzzyanalysis: This question wasn't closed by Moderators. There are no diamonds next to those names. They're just users.
This question as 13 upvotes, 3 favorites, 1 reopen vote, and 69,870 views - yet is only 1 vote from being deleted, despite being a valuable resource. If this is considered off-topic for SO, what other site would better be considered on-topic? Would a moderator be able to move this to the correct site - or maybe even protect it, instead of having this knowledge essentially lost forever?
4 Answers 4
Assuming a Windows installation, do please refer to this:
- Uninstall all Oracle components using the Oracle Universal Installer (OUI).
- Run regedit.exe and delete the HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE key. This contains registry entires for all Oracle products.
- Delete any references to Oracle services left behind in the following part of the registry: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Ora* It should be pretty obvious which ones relate to Oracle.
- Reboot your machine.
- Delete the "C:\Oracle" directory, or whatever directory is your ORACLE_BASE.
- Delete the "C:\Program Files\Oracle" directory.
- Empty the contents of your "C:\temp" directory.
- Empty your recycle bin.
- Be careful when following anything listed here (above or below), as doing so may remove or damage any other Oracle-installed products.
- For 64-bit Windows (x64), you need also to delete the HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ORACLE key from the registry.
- Clean-up by removing any related shortcuts that were installed to the Start Menu.
- Clean-up environment variables:
- Consider removing %ORACLE_HOME% .
- Remove any paths no longer needed from %PATH% .
This set of instructions happens to match an almost identical process that I had reverse-engineered myself over the years after a few messed-up Oracle installs, and has almost always met the need.
Note that even if the OUI is no longer available or doesn't work, simply following the remaining steps should still be sufficient.
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.
Component-specific documentation for individual requirements and restrictions
Stopping Oracle Services on Windows
You must first stop the Oracle Windows services before removing Oracle components or removing any registry entries.
Your Microsoft online help for more information about stopping services
To stop Windows services:
Open the Windows Services utility: From the Start menu, choose Programs , then Administrative Tools , then 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 .
Removing Oracle Database Client with Oracle Universal Installer
You first use Oracle Universal Installer to remove Oracle Database Client from the inventory on the computer. Afterwards, you must manually remove the remaining components. This section covers the following topics:
Guidelines for Removing Oracle Database Client with Oracle Universal Installer
Follow these guidelines:
Do not manually remove Oracle Database Client components without first deinstalling with Oracle Universal Installer. An exception is if, during an installation, you exit Oracle Universal Installer using any of the following methods:
Turning off the computer
If the installation does not complete (that is, all required configuration tools do not run at the end)
In these cases, Oracle Universal Installer does not register the installation in its inventory. However, it may have copied files to your Oracle home. Remove these files manually and restart the installation.
If you need to remove an Oracle home manually, first remove the Oracle components with Oracle Universal Installer. An example of removing the Oracle home manually would be by deleting the directory structure with Windows Explorer or the command prompt.
You should not remove the Oracle home manually first because their components remain registered in the Oracle Universal Installer inventory. If you subsequently try to install Oracle in the same home, some or all of the components selected may not be installed, since Oracle Universal Installer will determine the components are already installed.
Procedure for Removing Oracle Database Client with Oracle Universal Installer
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. From the Start menu, choose Programs , then Oracle - HOME_NAME , then Oracle Installation Products , then Universal Installer . The Welcome window for Oracle Universal Installer appears.
If you installed the Instant Client version of Oracle Database Client, Oracle Universal Installer was not installed. Instead, run it from your installation media or the installation directory you created for downloaded or copied installation files.
To do so, insert Oracle Database installation media and navigate to the client directory. Alternatively, navigate to the directory where you downloaded or copied the installation files. Then double-click setup.exe to start Oracle Universal Installer. In the Welcome window, choose Install/Deinstall Products .
Click the Deinstall Products button.
The Inventory window 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.
The Confirmation window appears.
Click Yes to remove the selected components.
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 window appears without the removed components.
Click Close to close the Inventory window.
Click Cancel to exit Oracle Universal Installer.
Click Yes to confirm that you want to exit.
After Oracle Universal Installer exits, go to the next section to remove the remaining Oracle Database Client components.
Manually Removing the Remaining Oracle Database Client Components
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:
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.
Removing Oracle Keys from the Registry Editor on Windows
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:
Use Microsoft Registry Editor at your own risk. Incorrectly using the Registry Editor can cause serious problems and might require you to reinstall your operating system.
Removing Only the Oracle Net Service Registry Key
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".
From the Start menu, choose Run , and then enter the following command:
Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services and delete the Oracle HOME_NAME TNSListener registry entry.
When you ran Oracle Universal Installer to deinstall Oracle Database Client, it deleted all other Oracle Net services.
Exit the registry editor.
Restart your computer.
Removing All Oracle Registry Keys
To remove all Oracle registry keys from a computer (if any exist):
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 under ORACLE_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".
From the Start menu, choose Run , and enter the following command:
Go to HKEY_CLASSES_ROOT .
Delete keys that begin with the following:
These registry keys do not appear if you installed Instant Client.
Go to HKEY_LOCAL_MACHINE\SOFTWARE .
Delete the ORACLE Group key.
If you installed Oracle Services for Microsoft Transaction Server, go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services \Eventlog\Application .
Delete the Oracle Services for Microsoft Transaction Server 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.
Updating the PATH Environment Variable Path
Check the PATH environment variable and remove any Oracle entries.
Display System in the Control Panel.
Select the Advanced tab and then click 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:
Save any changes and exit System .
Removing Oracle Database Client from the Start Menu
Check the Start menu for any Oracle Database Client entries and remove them.
Follow these steps:
Select Start , then Programs , then Oracle - HOME_NAME .
Right-click Oracle - HOME_NAME , and from the menu, select Delete .
You can also remove Oracle Database Client menu entries by using the following method:
Right click the Start button to display the pop-up menu.
Select the Explore All Users option.
Under Documents and Settings, expand the \Start Menu\Programs folder.
Right-click and delete the Oracle - HOME_NAME folder.
Removing Oracle Database Client Directories
After removing all Oracle Database Client registry keys and restarting the computer, delete any existing Oracle Database Client 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.
This chapter describes how to completely remove the Oracle software and configuration files related to the specified Oracle home using the Deinstallation Tool.
The deinstallation tool removes the Oracle Database Client installations.
Oracle recommends that you use the deinstallation tool to remove the entire Oracle home associated with the Oracle Database, Oracle Clusterware, Oracle ASM, Oracle RAC, or Oracle Database client installation. Oracle does not support the removal of individual products or components.
It includes information about the following topics:
You must use the deinstallation tool from the same release to remove Oracle software. Do not run the deinstallation tool from a later release to remove Oracle software from an earlier release. For example, do not run the deinstallation tool from the 12.1.0.1 installation media to remove Oracle software from an existing 11.2.0.4 Oracle home.
5.1 About the Deinstallation Tool
Starting with Oracle Database 12 c Release 1 (12.1), the deinstallation tool is integrated with Oracle Universal Installer (OUI). You can run the deinstallation tool using the setup.exe command with the -deinstall and -home options from the base directory of the Oracle Database, Oracle Database Client, or Oracle Grid Infrastructure installation media.
The Deinstallation Tool is also available as a separate command ( deinstall ) in Oracle home directories after installation. It is located in ORACLE_HOME \deinstall .
The deinstall command uses the information you provide and the information gathered from the software home to create a response file. Alternatively, you can supply a response file generated previously by the deinstall command using the –checkonly option, or by editing the response file template.
The deinstallation tool stops Oracle software, and removes Oracle software and configuration files on the operating system for a specific Oracle home.
If the software in the Oracle home is not running (for example, after an unsuccessful installation), then the deinstallation tool cannot determine the configuration, and you must provide all the configuration details either interactively or in a response file.
Oracle strongly recommends that you configure your installations using an Optimal Flexible Architecture (OFA) configuration, and that you reserve Oracle base and Oracle home paths for exclusive use of Oracle software. If you have any user data in these locations in the Oracle base that is owned by the user account that owns the Oracle software, then the deinstallation tool deletes this data.
In addition, for Oracle Grid Infrastructure installations:
Oracle Automatic Storage Management Cluster File System (Oracle ACFS) must be dismounted and Oracle Automatic Storage Management Dynamic Volume Manager (Oracle ADVM) must be disabled.
If Grid Naming Service (GNS) is in use, then the entry for the subdomain needs to be deleted from DNS by your DNS administrator.
Oracle recommends that you run the deinstallation tool as the Oracle software installation owner. The default method for running the deinstallation tool is from the deinstall directory in the Oracle home as the installation owner:
The command uses the following syntax, where variable content is indicated by italics:
To run the deinstallation tool from the database installation media, use the setup.exe command with the -deinstall option, followed by the -home option to specify the path of the Oracle home you want to remove using the following syntax, where variable content is indicated in italics:
Provide information about your servers as prompted or accept the defaults.
In addition, you can run the deinstallation tool from other locations, or with a response file, or select the following options to run the tool:
Use this flag to indicate the home path of the Oracle home to check or deinstall. To deinstall Oracle software using the deinstall command, located in the Oracle home you plan to deinstall, provide a response file in a location outside the Oracle home, and do not use the -home flag.
If you run the deinstallation tool from the ORACLE_HOME\deinstall path, then the -home flag is not required because the tool knows from which home it is being run. If you run the tool using setup.exe -deinstall from the installation media, then -home is mandatory.
Use this flag to run the deinstallation tool in noninteractive mode. This option requires one of the following:
A working system that it can access to determine the installation and configuration information. The -silent flag does not work with failed installations.
A response file that contains the configuration values for the Oracle home that is being deinstalled or deconfigured.
You can generate a response file to use or modify by running the tool with the -checkonly flag. The tool then discovers information from the Oracle home to deinstall and deconfigure. It generates the response file that you can then use with the -silent option.
You can also modify the template file deinstall.rsp.tmpl , located in the ORACLE_HOME \deinstall\response directory.
Use this flag to check the status of the Oracle software home configuration. Running the deinstallation tool with the -checkonly flag does not remove the Oracle configuration. The -checkonly flag generates a response file that you can then use with the deinstallation tool and -silent option.
-paramfile complete path of input parameter property file
Use this flag to run the deinstallation tool with a response file in a location other than the default. When you use this flag, provide the complete path where the response file is located.
The default location of the response file depends on the location of the deinstallation tool:
From the installation media or stage location: \response
After installation from the installed Oracle home: ORACLE_HOME\deinstall\response .
-params [" name1= value " " name2= value " " name3= value " . . .]
Use this flag with a response file to override one or more values to change it in a response file you have created.
-o complete path of directory for saving response file
Use this flag to provide a path other than the default location where the response file is saved. The default location is \response\deinstall.rsp.tmpl .
The default location of the response file depends on the location of deinstallation tool:
From the installation media or stage location before installation: \response
After installation from the installed Oracle home: ORACLE_HOME /deinstall/response .
-tmpdir complete path of temporary directory
Specifies a non-default location where Oracle Deinstallation Tool writes the temporary files for the deinstallation.
-logdir complete path of log directory
Specifies a non-default location where Oracle Deinstallation Tool writes the log files for the deinstallation.
Use the help option ( -help ) to obtain additional information about the command optional flags.
5.2 Oracle Database Deinstallation Example
If you perform a deinstallation by running the setup.exe command with the -deinstall option from the installation media, then help is displayed unless you enter a -home flag and provide a path to the home directory of the Oracle software to remove from your system.
Use the optional flag -paramfile to provide a path to a response file.
In the following example, the setup.exe command is in the path \ directory_path , where directory_path is the path to the database directory on the installation media, and C:\app\oracle\product\12.1.0\client_1 is the path to the Oracle home which is removed:
The following example uses a response file in the software owner location C:\Documents and Settings\oracle\:
5.3 Example of Running the Deinstallation Command
If you perform a deinstallation by using the deinstall command from the ORACLE_HOME \deinstall folder, then the deinstallation starts without prompting you for an ORACLE_HOME .
Use the optional flag -paramfile to provide a path to a response file.
In the following example, the deinstall command is in the path C: \ app\oracle\product\12.1.0\client_1\deinstall , and it uses a response file in the software owner location C:\Documents and Settings\oracle\ :
5.4 Example of a Deinstallation Response File for an Oracle Database Client
You can perform a deinstallation on a standalone Oracle Database with the -paramfile option to use the values you specify in the response file. The following is an example of a response file, in which the Oracle Database binary owner is oracle , the Oracle Database home (Oracle home) is in the path D:\app\oracle\product\12.1.0\client_1 , the Oracle base (where other Oracle software is installed) is D:\app\oracle , the Oracle Inventory home is C:\Program Files\Oracle\Inventory , and the local node (the node where you are running the deinstallation session from) is client1 :
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.
Component-specific documentation for individual requirements and restrictions
5.1 Stopping Oracle Services on Windows
You must first stop the Oracle Windows services before removing Oracle components or removing any registry entries.
Your Microsoft online help for more information about stopping services
To stop Windows services:
Open the Windows Services utility: From the Start menu, choose Programs , then Administrative Tools , then 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 .
5.2 Removing Oracle Database Client with Oracle Universal Installer
You first use Oracle Universal Installer to remove Oracle Database Client from the inventory on the computer. Afterwards, you must manually remove the remaining components. This section covers the following topics:
5.2.1 Guidelines for Removing Oracle Database Client with Oracle Universal Installer
Follow these guidelines:
Do not manually remove Oracle Database Client components without first deinstalling with Oracle Universal Installer. An exception is if, during an installation, you exit Oracle Universal Installer using any of the following methods:
Turning off the computer
If the installation does not complete (that is, all required configuration tools do not run at the end)
In these cases, Oracle Universal Installer does not register the installation in its inventory. However, it may have copied files to your Oracle home. Remove these files manually and restart the installation.
If you need to remove an Oracle home manually, first remove the Oracle components with Oracle Universal Installer. An example of removing the Oracle home manually would be by deleting the directory structure with Windows Explorer or the command prompt.
You should not remove the Oracle home manually first because their components remain registered in the Oracle Universal Installer inventory. If you subsequently try to install Oracle in the same home, some or all of the components selected may not be installed, since Oracle Universal Installer will determine the components are already installed.
5.2.2 Procedure for Removing Oracle Database Client with Oracle Universal Installer
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. From the Start menu, choose Programs , then Oracle - HOME_NAME , then Oracle Installation Products , then Universal Installer . The Welcome window for Oracle Universal Installer appears.
If you installed the Instant Client version of Oracle Database Client, Oracle Universal Installer was not installed. Instead, run it from your installation media or the installation directory you created for downloaded or copied installation files.
To do so, insert Oracle Database installation media and navigate to the client directory. Alternatively, navigate to the directory where you downloaded or copied the installation files. Then double-click setup.exe to start Oracle Universal Installer. In the Welcome window, choose Install/Deinstall Products .
Click the Deinstall Products button.
The Inventory window 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.
The Confirmation window appears.
Click Yes to remove the selected components.
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 window appears without the removed components.
Click Close to close the Inventory window.
Click Cancel to exit Oracle Universal Installer.
Click Yes to confirm that you want to exit.
After Oracle Universal Installer exits, go to the next section to remove the remaining Oracle Database Client components.
5.3 Manually Removing the Remaining Oracle Database Client Components
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:
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.
5.3.1 Removing Oracle Keys from the Registry Editor on Windows
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:
Use Microsoft Registry Editor at your own risk. Incorrectly using the Registry Editor can cause serious problems and might require you to reinstall your operating system.
5.3.1.1 Removing Only the Oracle Net Service Registry Key
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".
From the Start menu, choose Run , and then enter the following command:
Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services and delete the Oracle HOME_NAME TNSListener registry entry.
When you ran Oracle Universal Installer to deinstall Oracle Database Client, it deleted all other Oracle Net services.
Exit the registry editor.
Restart your computer.
5.3.1.2 Removing All Oracle Registry Keys
To remove all Oracle registry keys from a computer (if any exist):
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 under ORACLE_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".
From the Start menu, choose Run , and enter the following command:
Go to HKEY_CLASSES_ROOT .
Delete keys that begin with the following:
These registry keys do not appear if you installed Instant Client.
Go to HKEY_LOCAL_MACHINE\SOFTWARE .
Delete the ORACLE Group key.
If you installed Oracle Services for Microsoft Transaction Server, go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services \Eventlog\Application .
Delete the Oracle Services for Microsoft Transaction Server 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.
5.3.2 Updating the PATH Environment Variable Path
Check the PATH environment variable and remove any Oracle entries.
Display System in the Control Panel.
Select the Advanced tab and then click 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:
Save any changes and exit System .
5.3.3 Removing Oracle Database Client from the Start Menu
Check the Start menu for any Oracle Database Client entries and remove them.
Follow these steps:
Select Start , then Programs , then Oracle - HOME_NAME .
Right-click Oracle - HOME_NAME , and from the menu, select Delete .
You can also remove Oracle Database Client menu entries by using the following method:
Right click the Start button to display the pop-up menu.
Select the Explore All Users option.
Under Documents and Settings, expand the \Start Menu\Programs folder.
Right-click and delete the Oracle - HOME_NAME folder.
5.3.4 Removing Oracle Database Client Directories
After removing all Oracle Database Client registry keys and restarting the computer, delete any existing Oracle Database Client 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.
This chapter describes how to completely remove Oracle software and configuration files related to the specified Oracle home using the Deinstallation Tool.
The deinstall command removes the Oracle Database Client installations.
Starting with Oracle Database 11 g Release 2 (11.2), Oracle recommends that you use the deinstallation tool to remove the entire Oracle home associated with the Oracle Database, Oracle Clusterware, Oracle ASM, Oracle RAC, or Oracle Database client installation. Oracle does not support the removal of individual products or components.
It includes information about the following topics:
5.1 About the Deinstallation Tool
The Deinstallation Tool ( deinstall ) is available in the installation media before installation, and is available in Oracle home directories after installation. It is located in the $ORACLE_HOME/deinstall directory.
The deinstall command uses the information you provide, plus information gathered from the software home to create a parameter file. You can alternatively supply a parameter file generated previously by the deinstall command using the –checkonly option, or by editing the response file template.
Oracle strongly recommends that you configure your installations using an Optimal Flexible Architecture (OFA) configuration, and that you reserve Oracle base and Oracle home paths for exclusive use of Oracle software. If you have any user data in these locations in the Oracle base that is owned by the user account that owns the Oracle software, then the deinstall command deletes this data.
The deinstallation tool deletes Oracle Database configuration files, user data, and fast recovery area (FRA) files even if they are located outside of the Oracle base directory path.
The command uses the following syntax, where variable content is indicated in italics:
Oracle recommends that you run the deinstallation tool as the Oracle software installation owner. The default method for running the deinstall tool is from the deinstall directory in the Oracle home as the installation owner:
Provide information about your servers as prompted or accept the defaults.
The deinstall command stops Oracle software, and removes Oracle software and configuration files on the operating system.
You must run the deinstallation tool from the same release to remove Oracle software. Do not run the deinstallation tool from a later release to remove Oracle software from an earlier release. For example, do not run the deinstallation tool from the 12.1.0.1 installation media to remove Oracle software from an existing 11.2.0.4 Oracle home.
In addition, you can run the deinstall tool from other locations, or with a parameter file, or select other options to run the tool.
Use this flag to indicate the home path of the Oracle home to check or deinstall. To deinstall Oracle software using the deinstall command in the Oracle home you plan to deinstall, provide a parameter file in another location, and do not use the -home flag.
If you run deinstall from the $ORACLE_HOME/deinstall path, then the -home flag is not required because the tool knows from which home it is being run. If you use the standalone version of the tool, then -home is mandatory.
Use this flag to run the command in silent or response file mode. If you use the -silent flag, then you must use the -paramfile flag, and provide a parameter file that contains the configuration values for the Oracle home to deinstall or deconfigure.
You can generate a parameter file to use or modify by running deinstall with the -checkonly flag. The deinstall command then discovers information from the Oracle home to deinstall and deconfigure. It generates the properties file, which you can then use with the -silent option.
You can also modify the template file deinstall.rsp.tmpl , located in the $ORACLE_HOME/deinstall/response folder.
Use this flag to check the status of the Oracle software home configuration. Running the command with the -checkonly flag does not remove the Oracle configuration. The -checkonly flag generates a parameter file which you can then use with the deinstall command and -silent option.
Use this flag on a multinode environment to deinstall Oracle software in a cluster.
When you run deinstall with this flag, it deconfigures and deinstalls the Oracle software on the local node (the node where deinstall is run). On remote nodes, it deconfigures Oracle software, but does not deinstall the Oracle software.
-paramfile complete path of input parameter property file
Use this flag to run deinstall with a parameter file in a location other than the default. When you use this flag, provide the complete path where the parameter file is located.
The default location of the parameter file depends on the location of deinstall :
From the installation media or stage location: $ORACLE_HOME/inventory/response .
From a unzipped archive file from OTN: / ziplocation /response .
After installation from the installed Oracle home: $ORACLE_HOME/deinstall/response .
-params [ name1 = value name 2 = value name3 = value . . .]
Use this flag with a parameter file to override one or more values to change in a parameter file you have already created.
-o complete path of directory for saving response files
Use this flag to provide a path other than the default location where the properties file ( deinstall.rsp.tmpl ) is saved.
The default location of the parameter file depends on the location of deinstall :
From the installation media or stage location before installation: $ORACLE_HOME/
From a unzipped archive file from OTN: / ziplocation /response/ .
After installation from the installed Oracle home: $ORACLE_HOME/deinstall/response .
-tmpdir complete path of temporary directory
Use this flag to specify a non-default location where Oracle Deinstallation Tool writes the temporary files for the deinstallation.
-logdir complete path of temporary directory
Use this flag to specify a non-default location where Oracle Deinstallation Tool writes the log files for the deinstallation.
Use the help option ( -help ) to obtain additional information about the command option flags.
5.2 Downloading the Deinstall Tool for Use with Failed Installations
If you require the Deinstallation Tool (deinstall) to remove failed or incomplete installations, then it is available as a separate download from the Oracle Technology Network (OTN) website.
To download the Deinstallation Tool:
Go to the following URL:
Under Oracle Database 11g Release 2 , click See All for the respective platform for which you want to download the Deinstallation Tool.
The Deinstallation Tool is available for download at the end of this web page.
5.3 Example of Running the Deinstall Command
As the deinstall command runs, you are prompted to provide the home directory of the Oracle software to remove from your system. Provide additional information as prompted.
Use the optional flag -paramfile to provide a path to a parameter file.
In the following example, the deinstall command is in the path /u01/app/oracle/product/11.2.0/client_1/deinstall , and it uses a parameter file in the software owner location /home/usr/oracle :
If you enter the deinstall command outside of the $ORACLE_HOME/deinstall folder, then help is displayed, unless you enter a -home flag and provide a path. If you run the deinstall command from the $ORACLE_HOME/deinstall folder, then deinstallation starts without prompting you for a home address.
5.4 Deinstallation Parameter File Example
You can run the deinstall command with the -paramfile option to use the values you specify in the parameter file. The following is an example of a parameter file, in which the Oracle Database binary owner is oracle , the Oracle Database home (Oracle home) is in the path /u01/app/oracle/product/11.2.0/client_1/ , the Oracle base (where other Oracle software is installed) is /u01/app/oracle/ , the central Oracle Inventory home ( oraInventory ) is /u01/app/oraInventory , and the client is client1 :
Читайте также: