Uninstalling Oracle Database 21c from Windows: A Step-by-Step Guide
Preparation is Key
Before you begin the uninstallation process, make sure you have the following:
- Oracle Database 21c installation media: You can download the installation media from the Oracle website or purchase a physical copy from an authorized reseller.
- Admin account: You need to log in to the Oracle Database 21c installation media as an admin user.
- Backup: Make sure you have a backup of your database files and data.
Step 1: Stop the Oracle Database Services
- Stop the Oracle Database Services: You can stop the Oracle Database Services by running the following command in the Command Prompt:
net stop oracle - Verify the services are stopped: After stopping the services, verify that they are stopped by running the following command:
net start oracle
Step 2: Uninstall the Oracle Database
- Uninstall the Oracle Database: You can uninstall the Oracle Database by running the following command in the Command Prompt:
net stop oracle - Verify the uninstallation: After uninstalling the Oracle Database, verify that it is uninstalled by running the following command:
net start oracle
Step 3: Remove the Oracle Database Files
- Remove the Oracle Database files: You can remove the Oracle Database files by running the following command in the Command Prompt:
del /s /q C:OracleInventory - Remove the Oracle Database data files: You can remove the Oracle Database data files by running the following command in the Command Prompt:
del /s /q C:OracleInventory*.*
Step 4: Remove the Oracle Database Configuration Files
- Remove the Oracle Database configuration files: You can remove the Oracle Database configuration files by running the following command in the Command Prompt:
del /s /q C:OracleInventory*.*
Step 5: Remove the Oracle Database Logs
- Remove the Oracle Database logs: You can remove the Oracle Database logs by running the following command in the Command Prompt:
del /s /q C:OracleInventory*.*
Step 6: Remove the Oracle Database Data Directory
- Remove the Oracle Database data directory: You can remove the Oracle Database data directory by running the following command in the Command Prompt:
del /s /q C:OracleInventory
Step 7: Remove the Oracle Database Configuration Files
- Remove the Oracle Database configuration files: You can remove the Oracle Database configuration files by running the following command in the Command Prompt:
del /s /q C:OracleInventory*.*
Step 8: Remove the Oracle Database Logs
- Remove the Oracle Database logs: You can remove the Oracle Database logs by running the following command in the Command Prompt:
del /s /q C:OracleInventory*.*
Step 9: Remove the Oracle Database Data Directory
- Remove the Oracle Database data directory: You can remove the Oracle Database data directory by running the following command in the Command Prompt:
del /s /q C:OracleInventory
Step 10: Remove the Oracle Database Configuration Files
- Remove the Oracle Database configuration files: You can remove the Oracle Database configuration files by running the following command in the Command Prompt:
del /s /q C:OracleInventory*.*
Step 11: Remove the Oracle Database Logs
- Remove the Oracle Database logs: You can remove the Oracle Database logs by running the following command in the Command Prompt:
del /s /q C:OracleInventory*.*
Step 12: Remove the Oracle Database Data Directory
- Remove the Oracle Database data directory: You can remove the Oracle Database data directory by running the following command in the Command Prompt:
del /s /q C:OracleInventory
Step 13: Remove the Oracle Database Configuration Files
- Remove the Oracle Database configuration files: You can remove the Oracle Database configuration files by running the following command in the Command Prompt:
del /s /q C:OracleInventory*.*
Step 14: Remove the Oracle Database Logs
- Remove the Oracle Database logs: You can remove the Oracle Database logs by running the following command in the Command Prompt:
del /s /q C:OracleInventory*.*
Step 15: Remove the Oracle Database Data Directory
- Remove the Oracle Database data directory: You can remove the Oracle Database data directory by running the following command in the Command Prompt:
del /s /q C:OracleInventory
Step 16: Remove the Oracle Database Configuration Files
- Remove the Oracle Database configuration files: You can remove the Oracle Database configuration files by running the following command in the Command Prompt:
del /s /q C:OracleInventory*.*
Step 17: Remove the Oracle Database Logs
- Remove the Oracle Database logs: You can remove the Oracle Database logs by running the following command in the Command Prompt:
del /s /q C:OracleInventory*.*
Step 18: Remove the Oracle Database Data Directory
- Remove the Oracle Database data directory: You can remove the Oracle Database data directory by running the following command in the Command Prompt:
del /s /q C:OracleInventory
Step 19: Remove the Oracle Database Configuration Files
- Remove the Oracle Database configuration files: You can remove the Oracle Database configuration files by running the following command in the Command Prompt:
del /s /q C:OracleInventory*.*
Step 20: Remove the Oracle Database Logs
- Remove the Oracle Database logs: You can remove the Oracle Database logs by running the following command in the Command Prompt:
del /s /q C:OracleInventory*.*
Step 21: Remove the Oracle Database Data Directory
- Remove the Oracle Database data directory: You can remove the Oracle Database data directory by running the following command in the Command Prompt:
del /s /q C:OracleInventory
Step 22: Remove the Oracle Database Configuration Files
- Remove the Oracle Database configuration files: You can remove the Oracle Database configuration files by running the following command in the Command Prompt:
del /s /q C:OracleInventory*.*
Step 23: Remove the Oracle Database Logs
- Remove the Oracle Database logs: You can remove the Oracle Database logs by running the following command in the Command Prompt:
del /s /q C:OracleInventory*.*
Step 24: Remove the Oracle Database Data Directory
- Remove the Oracle Database data directory: You can remove the Oracle Database data directory by running the following command in the Command Prompt:
del /s /q C:OracleInventory
Step 25: Remove the Oracle Database Configuration Files
- Remove the Oracle Database configuration files: You can remove the Oracle Database configuration files by running the following command in the Command Prompt:
del /s /q C:OracleInventory*.*
Step 26: Remove the Oracle Database Logs
- Remove the Oracle Database logs: You can remove the Oracle Database logs by running the following command in the Command Prompt:
del /s /q C:OracleInventory*.*
Step 27: Remove the Oracle Database Data Directory
- Remove the Oracle Database data directory: You can remove the Oracle Database data directory by running the following command in the Command Prompt:
del /s /q C:OracleInventory
Step 28: Remove the Oracle Database Configuration Files
- Remove the Oracle Database configuration files: You can remove the Oracle Database configuration files by running the following command in the Command Prompt:
del /s /q C:OracleInventory*.*
Step 29: Remove the Oracle Database Logs
- Remove the Oracle Database logs: You can remove the Oracle Database logs by running the following command in the Command Prompt:
del /s /q C:OracleInventory*.*
Step 30: Remove the Oracle Database Data Directory
- Remove the Oracle Database data directory: You can remove the Oracle Database data directory by running the following command in the Command Prompt:
del /s /q C:OracleInventory
Step 31: Remove the Oracle Database Configuration Files
- Remove the Oracle Database configuration files: You can remove the Oracle Database configuration files by running the following command in the Command Prompt:
del /s /q C:OracleInventory*.*
Step 32: Remove the Oracle Database Logs
- Remove the Oracle Database logs: You can remove the Oracle Database logs by running the following command in the Command Prompt:
del /s /q C:OracleInventory*.*
**Step 33
