Home  >  Article  >  Database  >  What should I do if the Oracle database is not uninstalled cleanly?

What should I do if the Oracle database is not uninstalled cleanly?

下次还敢
下次还敢Original
2024-04-18 15:30:27632browse

When the Oracle database is not uninstalled cleanly, residual files will appear in the registry and operating system, affecting subsequent installation or operations. The processing steps are as follows: check whether there are any residual entries in the registry; clean the operating system files and folders; reinstall the Oracle database; manually repair the Oracle service; and rebuild the Oracle network configuration.

What should I do if the Oracle database is not uninstalled cleanly?

What to do if the Oracle database is not uninstalled cleanly

#Question: What to do if the Oracle database is not uninstalled cleanly ?

Answer:

Incomplete uninstallation of the Oracle database will result in residual files and configuration information in the registry and operating system, affecting subsequent database installation or operations.

Processing steps:

1. Check whether there are any residual entries in the registry

  • Open the registry editor (regedit.exe)
  • Navigate to the following path: HKEY_LOCAL_MACHINE\SOFTWARE\Oracle
  • Delete all subkeys related to the Oracle instance that was not completely uninstalled

2. Clean operating system files and folders

  • Delete the Oracle installation directory (usually C:\oracle\)
  • Remove Oracle services and drivers:

    • Open "Computer Management" (compmgmt.msc)
    • Expand "Services and Applications" → "Services"
    • Stop and delete Oracle-related services
  • Delete the following folder:

    • %WINDIR%\oracle (Oracle files in the Windows directory )
    • %ProgramFiles%\Oracle (Oracle files in Program Files)
    • %WINDIR%\SysWOW64\oracle (32-bit Oracle files in 64-bit systems)

3. Reinstall the Oracle database

  • Reinstall the Oracle database in a clean environment.
  • Make sure to use the same version and patch as before the complete uninstall.

4. Manually repair the Oracle service

  • If the database service still cannot start after reinstallation, please try to repair it manually:
  • Open command prompt (cmd.exe)

    • Run with administrator privileges
  • Navigate to the Oracle service installation directory (usually For C:\oracle\\crs\bin)

    • 64-bit system: cd C:\oracle\\crs\bin\amd64
    • 32-bit system: cd C:\oracle\\crs\bin\i386
  • ##Run the following command: caddsrv –init

      This will recreate the Oracle service and set it to start automatically
##5. Rebuild the Oracle network configuration

If there is a problem with the network configuration, please rebuild:
  • Open the command prompt (cmd.exe)
  • Run with administrator privileges
    Navigate to the Oracle network configuration directory (usually C:\oracle\\network\admin)
  • Rename sqlnet.ora and tnsnames.ora File
  • Restart Oracle service
  • Oracle will automatically create a new version of the file

The above is the detailed content of What should I do if the Oracle database is not uninstalled cleanly?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn