Analysis of ORACLE 10 Gb full uninstallation in Windows

Source: Internet
Author: User

Fully uninstall ORACLE in Windows: You can use OUI to uninstall the database. However, after uninstalling the database, there will still be some residues in the Registry and file system. These residues not only occupy disk space, but also affect ORACLE reinstallation and system performance.

To uninstall ORACLE 10 Gb in WINDOWS, perform the following steps: 1. Delete Cluster Synchronization Services ). If the database is configured with Automatic Storage Management ASM, you should first Delete the CSS service, because ORACLE will not automatically delete this service. Use the localconfig delete command under the doscommand to delete the service.
 
C: \ Documents ents and Settings \ Administrator> localconfig delete Step 1: stopping local CSS stack Step 2: deleting OCR repository failed to open the OCR subkey, err (1060)
 
Failed to cleanup local OCR repository successfully deleted local CSS setup may be caused by the above error message during execution because my database does not have ASM configured.
 
2. Stop all ORACLE-related services one by one.
 
ORACLE services start with Ora. For example, in the WINDOWS Service dialog box, everyone is familiar with it and will not talk about it.
 
3. Uninstall Oracle software using OUI (Oracle Universal Installer.
 
"START"-> "Program"-> "Oracle-OraDb110g_home1 | Oracle installation product | Universal installer. it takes a long time to uninstall ORACLE and it consumes resources. Therefore, it is best to close all other program windows before uninstalling ORACLE. The following window is displayed.
 
4. Click "Uninstall product.
 
Click Delete.
 
Select Yes and click Close to exit.
 
5. Delete the ASM instance.
 
If ASM is configured in Oracle, you must manually delete the ASM instance. The following example shows how to delete an ASM instance under the doscommand line.
 
C: \ ORADIM-DELETE-ASMSID + ASM this step is skipped because I have not configured ASM.
 
6. Delete the Registry content.
 
Run the regedit command to delete the HKEY_LOCAL_MACHINE | SOFTWARE | ORACLE registry key.
 
HKEY_LOCAL_MACHINE | SYSTEM | CurrentControlSet | Services: deletes all oracle-headed keys under the Services Key.
 
No related items are found on my system.
 
HKEY_LOCAL_MACHINE | SYSTEM | CurrentControlSet | Services | Eventlog | Application: deletes all oracle-dominated keys under this key.
 
No related items are found on my system.
 
HKEY_CLASSES_ROOT: delete all keys prefixed with Ora, Oracle, Orcl, and EnumOra.
 
Related HKEY_CURRENT_USER | Software | Microsoft | Windows | CurrentVersion | Explorer | MenuOrder | Start Menu | Programs cannot be found on my system. All oracle-dominated keys under this key are deleted.
 
HKEY_LOCAL_MACHINE | SOFTWARE | ODBC | ODBCINST. INI registry key, which deletes all key values other than the Microsoft odbc for oracle registry key with the Oracle keyword.
 
HKEY _ My SYSTEM does not find the related item LOCAL_MACHINE | SYSTEM | CurrentControlSet | Services, delete the key prefixed with Oracle or OraWeb.
 
Related Item 7 cannot be found on my system to delete environment variables.
 
Delete the environment variable CLASSPATH. The PATH contains the Oracle value.
 
No related item 8 is found on my system. Delete the group and chart with ORACLE characters in "Start | program.
 
After the OUI is uninstalled, my system has no ORACLE group or chart.
 
9. Finally, delete ORACLE-related Files and directories in the file system: Delete the system drive letter \ Progrm Files \ Oracle directory; Delete the ORACLE_BASE directory.
 
I cannot delete the D: \ oracle directory. It is deleted only after the machine is restarted.
 
If the OUI is installed in a non-default directory, delete this non-default directory. the system drive letter is \ Document and Settings \ User \ Local Settings \ Temp.

If the above method cannot solve your problem, you can reprocess it in the following article.

How to completely uninstall Oracle10G in windows

1. If the database is configured with Automatic Storage Management (ASM), you should first Delete the Cluster Synchronization Service (CSS ). To delete the CSS service, run the following command under the doscommand: localconfig delete
2. Stop all Oracle services in the "services" window.
3. Select programs/Oracle-oraDb10g_home1/oracle installation products/universal installer from the Start menu to open the oracle universal installer (oui) window, click "Uninstall product", select the oracle product to be deleted, and delete it.
4. If yes, delete the Automatic Storage Management (ASM) and run the following command in DOS:
Oracle-delete-asmsid + asm
5. Run the regedit command to open the Registry window and delete oracle-related content:

Delete the HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE directory.
Delete all keys starting with oracle or OraWeb in HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/services.
Delete all keys starting with oracle in HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Eventlog/Application,
Delete all keys prefixed with Ora, Oracle, Orcl, or EnumOra in the HKEY_CLASSES_ROOT directory.
Delete all keys starting with oracle in HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Explorer/MenuOrder/StartMenu/Proguams.

Some registry entries may have been deleted when oracle is uninstalled.
Delete the PATH and CLASSPATH in the environment variables that contain Oracle values. Choose "start"> "Settings"> "Control Panel"> "system"> "advanced"> "environment variable" to delete Oracle settings in the environment variables CLASSPATH and PATH.
Delete all Oracle groups and icons in Start/program.
Delete all oracle-related directories, including:
C: \ program files \ oracle directory

Delete Oracle-related files, select the default Oracle directory C: \ Oracle, delete the input directory and all subdirectories, and delete the following ORACLE files from C: \ WINDOWS. INI, oradim73.INI, oradim80.INI, oraodbc. ini and so on. 13. If the [ORACLE] Tag segment exists in the WIN. ini file, delete it.
Delete all Oracle-related odbc dsn if necessary
In the event viewer, delete Oracle-related log Description: if some DLL files cannot be deleted, ignore it and restart to start a new installation. During installation, select a new directory. After installation and restart, the old directory and files can be deleted.
Oracle_base directory.
C: \ Documents ents and settings \ temporary files under the system USERNAME \ localSettings \ temp directory.
Delete all oracle-included keys except the microsoft ODBC for Oracle registry key in HKEY_LOCAL_MACHINE/Software/odbc/ODBCINST. INI.

6. restart the computer

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.