Method Analysis of Oracle 10g complete uninstall under Windows _oracle

Source: Internet
Author: User
Tags odbc
Oracle Full Uninstall under Windows: Use Oui to unload a database, but there will still be some residue in the registry and file system after uninstalling. These residues not only consume disk space, but also affect Oracle's reinstallation and system performance.

To uninstall Oracle 10g under Windows: 1 Remove the Clustered Sync service CSS (Cluster Synchronization Services). If the database is configured with automatic storage management ASM, the CSS service should be removed first because Oracle does not automatically delete the service. Use the localconfig Delete command under DOS commands to remove the service.
 
C:\Documents and Settings\administrator>localconfig Delete step 1:stopping the local CSS stack step 2:deleting OCR Reposi Tory failed to open the OCR subkey, err (1060)
 
Failed to cleanup the local OCR repository successfully deleted the local CSS Setup may be because my database is not configured with ASM, so the error message shown above appears when executed.
 
2 Stop all Oracle-related services individually.
 
Oracle Services start with Ora, such as the Windows Service dialog box; Everyone is familiar with it.
 
3 Uninstall Oracle software using OUI (Oracle Universal Installer).
 
"Start the->" program "->" oracle-oradb110g_home1| Oracle installation product| Universal installer. The time to uninstall Oracle is longer and more resource intensive, so it is a good idea to close all other program windows before uninstalling. The following window appears.
 
4 Click the Uninstall Product button.
 
Click the Delete button.
 
Select Yes to click Close to exit.
 
5 Delete the ASM instance.
 
If Oracle is configured with ASM, also manually delete the ASM instance. The following is an example of removing an ASM instance under the DOS command line.
 
C:\oradim–delete–asmsid +asm This step is omitted because I am not configuring ASM.
 
6 Delete the registry contents.
 
Run the regedit command and delete the following: hkey_local_machine| software| Oracle registry key, delete this key.
 
hkey_local_machine| system| Currentcontrolset| Services, remove all Oracle-led keys under the Services key.
 
There are no related items found on my system.
 
hkey_local_machine| system| Currentcontrolset| services| Eventlog| Application, remove all Oracle-led keys under this key.
 
There are no related items found on my system.
 
HKEY_CLASSES_ROOT, delete all keys under this key that are prefixed by Ora,oracle,orcl,enumora.
 
There are no related items found on my system hkey_current_user| software| Microsoft| windows| currentversion| explorer| menuorder| Start menu| Programs, remove all Oracle-led keys under this key.
 
hkey_local_machine| software| odbc| Odbcinst. INI registry key To remove all of the key values for Oracle, except Microsoft ODBC for Oracle registry keys.
 
Hkey_ I can't find the relevant items on my system local_machine| system| Currentcontrolset| Services, delete the key prefixed by Oracle or Oraweb.
 
The related Item 7 deletion environment variable was not found on my system.
 
Deletes the value in the environment variable Classpath,path that contains the Oracle typeface.
 
I can't find the relevant item 8 on my system. Delete groups and charts with Oracle in the Start | program.
 
After uninstalling via Oui, my system has no Oracle groups and charts.
 
9 finally delete Oracle related files and directories in the file system: Delete system letter: \progrm files\oracle directory; Delete oracle_base directory.
 
I can't delete the D:\oracle directory until I reboot the machine.
 
If the Oui is installed in a non-default directory, delete this Non-default directory; system drive letter: \ Document and Settings\ user \local Settings\Temp directory to delete temporary files

If the above method does not solve your problem, you can use the following article to process

how to completely uninstall oracle10g under Windows

1. If the database is configured with automatic storage management (ASM), you should first remove the Clustered Sync service CSS (Cluster Synchronization Services). The way to delete a CSS service is to execute the following command under a DOS command: localconfig delete
2. Stop all Oracle Services in the Services window.
3, in the Start menu, select "Program"/"ORACLE-ORADB10G_HOME1"/"Oracle Installation Products"/"Universal Installer", open Oracle Universal Installer (Oui) window, click Uninstall product, select the Oracle product you want to remove, delete.
4. If so, delete the automatic storage management (ASM) and execute it under DOS:
Oracle–delete–asmsid +asm
5. Run the regedit command, open the Registry window, and delete the Oracle-related content:


Deletes the hkey_local_machine/software/oracle directory.
Deletes all keys that begin with Oracle or Oraweb in the hkey_local_machine/system/currentcontrolset/services.
Deletes all the keys in the hkey_local_machine/system/currentcontrolset/services/eventlog/application that begin with Oracle.
Deletes all keys in the HKEY_CLASSES_ROOT directory that are prefixed by Ora, Oracle, ORCL, or Enumora.
Delete hkey_current_user/software/microsoft/windows/currentversion/explorer/menuorder/startmenu/ All keys in the proguams that begin with Oracle.

Some of these registry keys may have been removed when Oracle was uninstalled.
Deletes the values in path and classpath in environment variables that contain Oracle. Start-> Settings-> Control Panel-> System-> Advanced-> Environment variable DELETE environment variable classpath and path Oracle settings
Delete all Oracle's groups and icons in Start/program.
Delete all Oracle-related directories, including:
C:\program files\oracle Directory

Delete the Oracle-related files, select the default directory C:\Oracle where Oracle resides, delete the entry directory and all subdirectories, and delete the following files from C:\WINDOWS Oracle.ini, Oradim73. INI, Oradim80. INI, Oraodbc.ini and so on. 13, WIN. INI file, delete the segment if there is a tag segment in the [ORACLE]
Remove all Oracle-related ODBC DSN, if necessary
To the Event Viewer, delete Oracle-related log Description: If there are individual DLL files can not be deleted, then ignore, reboot, start a new installation, install, select a new directory, then, after installation and restart, the old directory and files can be deleted.
Oracle_base directory.
C:\Documents and Settings\ System user name \localsettings\temp the temporary files in the directory.
Delete Hkey_local_machine/software/odbc/odbcinst. INI contains all Oracle keys except Microsoft ODBC for Oracle registry keys.

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.