Home Database Mysql Tutorial Windows下ORACLE 10g完全卸载的方法分析

Windows下ORACLE 10g完全卸载的方法分析

Jun 07, 2016 pm 06:07 PM
oracle

最近有朋友在群里问如何完全卸载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、重启计算机
Statement of this Website
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to import oracle database How to import oracle database Apr 11, 2025 pm 08:06 PM

Data import method: 1. Use the SQLLoader utility: prepare data files, create control files, and run SQLLoader; 2. Use the IMP/EXP tool: export data, import data. Tip: 1. Recommended SQL*Loader for big data sets; 2. The target table should exist and the column definition matches; 3. After importing, data integrity needs to be verified.

How to check tablespace size of oracle How to check tablespace size of oracle Apr 11, 2025 pm 08:15 PM

To query the Oracle tablespace size, follow the following steps: Determine the tablespace name by running the query: SELECT tablespace_name FROM dba_tablespaces; Query the tablespace size by running the query: SELECT sum(bytes) AS total_size, sum(bytes_free) AS available_space, sum(bytes) - sum(bytes_free) AS used_space FROM dba_data_files WHERE tablespace_

How to create a table in oracle How to create a table in oracle Apr 11, 2025 pm 08:00 PM

Creating an Oracle table involves the following steps: Use the CREATE TABLE syntax to specify table names, column names, data types, constraints, and default values. The table name should be concise and descriptive, and should not exceed 30 characters. The column name should be descriptive, and the data type specifies the data type stored in the column. The NOT NULL constraint ensures that null values ​​are not allowed in the column, and the DEFAULT clause specifies the default values ​​for the column. PRIMARY KEY Constraints to identify the unique record of the table. FOREIGN KEY constraint specifies that the column in the table refers to the primary key in another table. See the creation of the sample table students, which contains primary keys, unique constraints, and default values.

How to add table fields to oracle How to add table fields to oracle Apr 11, 2025 pm 07:30 PM

Use the ALTER TABLE statement, the specific syntax is as follows: ALTER TABLE table_name ADD column_name data_type [constraint-clause]. Where: table_name is the table name, column_name is the field name, data_type is the data type, and constraint-clause is an optional constraint. Example: ALTER TABLE employees ADD email VARCHAR2(100) Add an email field to the employees table.

What to do if the oracle can't be opened What to do if the oracle can't be opened Apr 11, 2025 pm 10:06 PM

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.

How to solve garbled code in oracle How to solve garbled code in oracle Apr 11, 2025 pm 10:09 PM

Oracle garbled problems can be solved by checking the database character set to ensure they match the data. Set the client character set to match the database. Convert data or modify column character sets to match database character sets. Use Unicode character sets and avoid multibyte character sets. Check that the language settings of the database and client are correct.

How to re-query oracle How to re-query oracle Apr 11, 2025 pm 07:33 PM

Oracle provides multiple deduplication query methods: The DISTINCT keyword returns a unique value for each column. The GROUP BY clause groups the results and returns a non-repetitive value for each group. The UNIQUE keyword is used to create an index containing only unique rows, and querying the index will automatically deduplicate. The ROW_NUMBER() function assigns unique numbers and filters out results that contain only line 1. The MIN() or MAX() function returns non-repetitive values ​​of a numeric column. The INTERSECT operator returns the common values ​​of the two result sets (no duplicates).

How to set up users of oracle How to set up users of oracle Apr 11, 2025 pm 08:21 PM

To create a user in Oracle, follow these steps: Create a new user using the CREATE USER statement. Grant the necessary permissions using the GRANT statement. Optional: Use the RESOURCE statement to set the quota. Configure other options such as default roles and temporary tablespaces.

See all articles