Windows下ORACLE 10g完全卸载的方法分析
最近有朋友在群里问如何完全卸载ORACLE 10g,这里简单的整理下,方便需要的朋友
Windows下ORACLE完全卸载:使用OUI可以卸载数据库,但卸载后和文件系统内仍会有部分残留。这些残留不仅占用磁盘空间,而且影响ORACLE的重新安装及系统性能。在WINDOWS下卸载ORACLE 10g的步骤:1 删除聚集同步服务CSS(Cluster Synchronization Services)。如果数据库配置了自动存储管理ASM,应该先删除CSS服务,因为ORACLE不会自动删除这个服务。在DOS命令下使用localconfig delete命令可删除该服务。
C:\Documents 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可能因为我的数据库没有配置ASM,因此执行的时候出现如上所示的错误提示。
2 逐个停止所有与ORACLE相关的服务。
ORACLE服务是以Ora开头的,例如:这个在WINDOWS的服务对话框;大家都比较熟悉,就不说了。
3 使用OUI(Oracle Universal Installer)卸载Oracle软件。
“开始”->“程序”->“Oracle-OraDb110g_home1|Oracle installation product|Universal installer.卸载ORACLE的时间比较长,而且比较耗费资源,因此卸载前最好关闭其他所有的程序窗口。出现如下窗口。
4 单击“卸载产品”按钮。
单击“删除”按钮。
选择“是”单击“关闭”退出。
5 删除ASM实例。
如果Oracle配置了ASM,还要手动删除ASM实例。以下是在DOS命令行下删除ASM实例的例子。
C:\ORADIM –DELETE –ASMSID +ASM由于我没配置ASM,因此省略此步。
6 删除内容。
运行regedit命令,删除下面内容:HKEY_LOCAL_MACHINE|SOFTWARE|ORACLE键,删除此键。
HKEY_LOCAL_MACHINE|SYSTEM|CurrentControlSet|Services,删除Services键下所有以oracle为首的键。
我的系统上没找到相关的项。
HKEY_LOCAL_MACHINE|SYSTEM|CurrentControlSet|Services|Eventlog|Application, 删除此键下所有以oracle为首的键。
我的系统上没找到相关的项。
HKEY_CLASSES_ROOT,删除此键下所有以Ora,Oracle,Orcl,EnumOra 为前缀的键。
我的系统上没找到相关的项HKEY_CURRENT_USER|Software| Microsoft|Windows|CurrentVersion|Explorer|MenuOrder|Start Menu|Programs, 删除此键下所有以oracle为首的键。
HKEY_LOCAL_MACHINE|SOFTWARE|ODBC|ODBCINST.INI键,删除了Microsoft ODBC FOR ORACLE键以外的所有有Oracle字样的键值。
HKEY_我的系统上没找到相关的项LOCAL_MACHINE|SYSTEM|CurrentControlSet|Services,删除以Oracle或OraWeb为前缀的键。
我的系统上没找到相关的项7 删除环境变量。
删除环境变量CLASSPATH,PATH中含有Oracle字样的值。
我的系统上没找到相关的项8 删除“开始|程序”中还有ORACLE字样的组和图表。
通过OUI卸载后,我的系统已经没有ORACLE的组和图表了。
9 最后在文件系统内删除ORACLE相关的文件及目录:删除系统盘符:\Progrm Files\Oracle目录;删除ORACLE_BASE目录。
我无法删除D:\oracle目录,重新启动机器之后才删除。
若OUI装在非默认目录下,删除这个非默认目录;系统盘符:\ Document and Settings\用户\Local Settings\Temp目录下删除临时文件
如果上面的方法不能解决你的问题,可以通过下面的文章再加工一下
windows下如何完全彻底卸载Oracle10G
1、如果数据库配置了自动存储管理(ASM),应该先删除聚集同步服务CSS(Cluster Synchronization Services)。删除CSS服务的方法是在DOS命令下执行如下命 令: localconfig delete
2、在“服务”窗口中停止Oracle的所有服务。
3、在“开始”菜单中依次选择“程序”/“Oracle-oraDb10g_home1”/“oracle installation products”/“universal installer”,打开oracle universal installer(oui)窗口,单击“卸载产品”,选中要删除的oracle产品,删除。
4、如有,则删除自动存储管理(ASM),在DOS下执行:
oracle –delete –asmsid +asm
5、运行regedit命令,打开窗口,删除与oracle有关的内容:
删除HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE目录。
删除HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/services中所有以oracle或OraWeb开头的键。
删除HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Eventlog/Application中所有以oracle开头的键,
删除HKEY_CLASSES_ROOT目录下所有以Ora、Oracle、Orcl或EnumOra为前缀的键。
删除HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Explorer/MenuOrder/StartMenu/Proguams中所有以oracle开头的键。
其中,有些项可能已经在卸载oracle时删除。
删除环境变量中的PATH和CLASSPATH中包含Oracle的值。开始->设置->控制面板->系统->高级->环境变量 删除环境变量CLASSPATH和PATH中有关Oracle的设定
删除“开始”/“程序”中所有Oracle的组和图标。
删除所有与oracle相关的目录,包括:
C:\program files\oracle目录
删除与Oracle有关的文件,选择Oracle所在的缺省目录C:\Oracle,删除这个入 口目录及所有子目录,并从C:\WINDOWS下删除以下文 件ORACLE.INI、oradim73.INI、oradim80.INI、oraodbc.ini等等。 13、 WIN.INI文件中若有[ORACLE]的标记段,删除该段
如有必要,删除所有Oracle相关的ODBC的DSN
到事件查看器中,删除Oracle相关的日志 说明: 如果有个别DLL文件无法删除的情况,则不用理会,重新启动,开始新的安装, 安装时,选择一个新的目录,则,安装完毕并重新启动后,老的目录及文件就可以删除掉了。
Oracle_base目录。
C:\Documents and settings\系统用户名\localSettings\temp目录下的临时文件。
删除HKEY_LOCAL_MACHINE/Software/ODBC/ODBCINST.INI中除microsoft odbc for oracle键以外的所有含Oracle的键。
6、重启计算机

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Solutions to Oracle cannot be opened include: 1. Start the database service; 2. Start the listener; 3. Check port conflicts; 4. Set environment variables correctly; 5. Make sure the firewall or antivirus software does not block the connection; 6. Check whether the server is closed; 7. Use RMAN to recover corrupt files; 8. Check whether the TNS service name is correct; 9. Check network connection; 10. Reinstall Oracle software.

The method to solve the Oracle cursor closure problem includes: explicitly closing the cursor using the CLOSE statement. Declare the cursor in the FOR UPDATE clause so that it automatically closes after the scope is ended. Declare the cursor in the USING clause so that it automatically closes when the associated PL/SQL variable is closed. Use exception handling to ensure that the cursor is closed in any exception situation. Use the connection pool to automatically close the cursor. Disable automatic submission and delay cursor closing.

In Oracle, the FOR LOOP loop can create cursors dynamically. The steps are: 1. Define the cursor type; 2. Create the loop; 3. Create the cursor dynamically; 4. Execute the cursor; 5. Close the cursor. Example: A cursor can be created cycle-by-circuit to display the names and salaries of the top 10 employees.

To stop an Oracle database, perform the following steps: 1. Connect to the database; 2. Shutdown immediately; 3. Shutdown abort completely.

Oracle database paging uses ROWNUM pseudo-columns or FETCH statements to implement: ROWNUM pseudo-columns are used to filter results by row numbers and are suitable for complex queries. The FETCH statement is used to get the specified number of first rows and is suitable for simple queries.

Building a Hadoop Distributed File System (HDFS) on a CentOS system requires multiple steps. This article provides a brief configuration guide. 1. Prepare to install JDK in the early stage: Install JavaDevelopmentKit (JDK) on all nodes, and the version must be compatible with Hadoop. The installation package can be downloaded from the Oracle official website. Environment variable configuration: Edit /etc/profile file, set Java and Hadoop environment variables, so that the system can find the installation path of JDK and Hadoop. 2. Security configuration: SSH password-free login to generate SSH key: Use the ssh-keygen command on each node

SQL statements can be created and executed based on runtime input by using Oracle's dynamic SQL. The steps include: preparing an empty string variable to store dynamically generated SQL statements. Use the EXECUTE IMMEDIATE or PREPARE statement to compile and execute dynamic SQL statements. Use bind variable to pass user input or other dynamic values to dynamic SQL. Use EXECUTE IMMEDIATE or EXECUTE to execute dynamic SQL statements.

When Oracle log files are full, the following solutions can be adopted: 1) Clean old log files; 2) Increase the log file size; 3) Increase the log file group; 4) Set up automatic log management; 5) Reinitialize the database. Before implementing any solution, it is recommended to back up the database to prevent data loss.
