Source : http://www.rebellionrider.com/how-to-uninstall-oracle-database-12c-rebellionrider/

How to Uninstall Oracle Database 12c from Windows 10

Le processus de désinstallation de Oracle Database 12c est assez similaire à celui de désinstallation de Oracle Database 11g excepté quelques unes des étapes finales. Alors voyons comment désinstaller Oracle database 12c de Windows 7.

Le processus de désinstallation de Oracle database 12c que vous allez apprendre dans ce tutoriel sera complètement MANUEL. Alors avant d’aller plus loin, Je vous suggère d’être extrêmement prudent avant de supprimer qoui que ce soit ou d’effectuer toute modification.

Etape 1: Effacer les Variables d’Environment

Deleting the environment variable could save you from various errors in case you are planning for re-installing the Oracle software. Many times installation gets stuck due to PRVF-3929 error stating that “Environment variable path is too long”. In order to avoid this error and to ensure glitch-free installation of Oracle software, it’s recommended to delete the environment variable entry of your Oracle Home.

Environment variable entry is the path to the “Bin” directory inside the Oracle Home directory and looks something like this. 

C:\app\YOUR USERNAME \product\11.2.0\dbhome_1\bin;

Comment supprimer une variable d’environnement

Right Click your Computer Icons and Select “Propriétés”. Then from the left-hand side panel of the System Properties Windows Select “Advance System Settings”. This will open up “System Properties” Windows.

Inside the “System Properties” Windows go to “Advance” Tab and select “Environment Variable” 

On the “Environment Variable” Window inside the “System Variable Section” Find entry with the name “Path”, then double click and open it. Doing so will open up an “Edit System Variable” dialogue box. On that dialogue box under the “Variable value field” find your Oracle Home entry and Delete it.

Etape 2: Supprimer les entrées de la base de registre

During the installation, Oracle database makes some registries in windows system to store the information of its configurations as well as for proper functioning of Oracle Windows Services. To Uninstall Oracle Database 12c completely from your system you need to properly stop all the Oracle database services which run in the background. Also if you are planning for re-installing the Oracle Database software then you also need to delete all the configuration settings.

In short, to ensure the smooth and errorless re-installation of any version of Oracle database software, without formatting your computer system, you need to delete all the Oracle Database Registries.

Registries are very fragile part of any windows system thus messing with them can be catastrophic and can harm your system, therefore, be careful while deleting them. I would highly suggest you take their backup.

Comment supprimer les entrées d base de registre Oracle

To delete any registry you need to first access them and in windows, all the registries are placed inside the “Registry Editors”. To access the Registry Editor first open up your Run Dialogue Box by pressing Run Windows Key and ‘R’ key simultaneously or you can directly search RUN in your start menu.

Enfoncez la touche Win et tapez sur + R –> Run Dialogue Box
Write regedt32 in text box.

Once you have your Run Dialogue box opened then write “regedt32” into it and press enter. This will open your “Registry Editor”.

Now first we have to delete the “Oracle Software” Registry. To access this registry first go to HKEY_LOCAL_MACHINE and then go to subdirectory SOFTWARE. Under the software – search for directory “Oracle”. Once you have reached this directory, right-click and Delete it.

HKEY_LOCAL_MACHINE –> SOFTWARE –> ORACLE

Next, we have to delete all the registries for Oracle Database Services. To access these registries first go to HKEY_LOCAL_MACHINE and then go to sub directory “Systems” then “CurrentControlSet” and then “Services”. Under the Services directory, you have to find all the Registries which are responsible for your Oracle database services.

If Oracle Database 12c is the only product from Oracle that is installed on your system then search for all the registries whose names start with Oracle and Delete them. If you have other products from Oracle installed on your system then be careful and delete accordingly. In the screenshot below you can see some general Oracle Service Registries.

HKEY_LOCAL_MACHINE → SYSTEM → CurrentControlSet → SERVICES

How to back up your registries:

  1. To backup “Oracle Software” Registry go to HKEY_LOCAL_MACHINE inside the registry editor and then select SOFTWARE. Right click on it and then select EXPORT after this, select a location and give it a name then click – Save.
  2. To back up Oracle Database Services registries go to HKEY_LOCAL_MACHINE inside the registry editor and after that go to sub directory “Systems” then “CurrentControlSet”. Right-click CurrentControlSet and select export then choose a destination and give it a name.

Etape 3: Redémarrez votre système

Ensuite, vous devez redémarrer votre système pour que votre système d’exploitation puisse prendre en compte tous les paramètres que nous avons modifiés.

Etape 4: Supprimez le dossier Oracle Home

Un « Oracle home » est un dossier dans lequel tout le software Oracle est installé. Une fois que vous avez supprimé toutes les entrées de registre de Oracle database 12c, vous êtes libre de supprimer Oracle home directory de votre système. Pour supprimer Oracle Home ouvrez votre explorateur de fichiers et allez sur le disque C drive (ou bien un autre disque sur lequel vous avez installé votre Oracle database 12c). Maintenant allez au dossier APP than to the directory with your username here select all the files and delete them. If you want to save backups then do not delete flash_recovery_area.

If in case your folder is not getting deleted then don’t worry. First, try to refresh your system or you can also reboot the system then try deleting again. If it is still not deleting then re-check the services and registries and see whether you have deleted all the oracle registries or not. If not then delete those that are still left and then try deleting the Oracle database folder again.

Etape 5: Supprimez le dossier de « Program Files »

Enseuite, allez dans le dossier « C:\Program files » et cherchez un dossier nommé « Oracle ». Supprimez le.

Faites de même dans le dossier « C:\Programmes(x86) ».

Ertape 6: Supprimez le dossier du menu Démarrer

Ensuite, vous devez supprimer le dossier du menu Démarrer. Pour cela allez dans “C:\ProgramData\Microsoft\Windows\Menu Démarrer\Programs” et ici cherchez votre dossier Oracle et supprimez le.

Etape 7: Nettoyez les fichiers temporaires et la corbeille

Again open your Run dialogue box and write %temp% this will open the temporary folder and here delete all the files. Next, come to your desktop and empty your recycle bin.

Etape 8: Supprimez l’utilisateur Oracle

La dernière étape est de supprimer l’utilisateur Oracle home user quez nous avons éventuellemnt créé durant l’installation of the Oracle database. In order to do so, right click “Ce PC” and select “Gérer”. Inside the computer management window click “Utilisateurs et groupes locaux” and then click and open “Utilisatteurs” folders. From the list of the user, you can delete the ones which you have created as an Oracle home user during the installation. In my case, its RebellionRider, Right click and Select Delete.

C’est tout pour ce tutoriel on How to uninstall Oracle Database 12c. I hope this tutorial was useful to you. 

You can stay ahead of the game by checking out the installation and uninstallation of the latest version Oracle 18c on Windows 10. Also, read about them in detail on my blog post.

Print Friendly, PDF & Email

Leave a Reply

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Blue Captcha Image
Refresh

*

Ce site utilise Akismet pour réduire les indésirables. En savoir plus sur comment les données de vos commentaires sont utilisées.