下面我在网上找的,以前试着做过,没有问题,所以自己备份了,可惜是英文的,看过来有点慢===================================== how to uninstall oracle under windows following is the next part C. 16-bit --------- The default Oracle Home for Windows 3.X is orawin. 1. If the database is running, then shut it down. 2. Deinstall all Oracle products with the Oracle Installer. a) Run orainst.exe from your Oracle Home. The Oracle Software Asset Manager window is displayed. b) Select all of the Oracle products that are listed in the right window pane. c) Click the [REMOVE] button. 3. Delete your ORACLE_HOME directory. 4. Use your favorite text editor and edit win.ini. a) Locate the ora_config parameter. Remove the file that ora_config points to. b) Delete all references to Oracle from the win.ini file. Good Luck!you first perform a backup, if required, of certain files like: SQL*Nnet configuration files Database files Self-written scripts that are stored under the oracle home directory, etc. 2) The following procedures require the editing of Windows registry, which is a potentially dangerous operation. There is no undo option in the Registry Editor. Content ------- A. 32-bit on Windows NT B. 32-bit on Win95/Win98 C. 16-bit A. 32-bit on Windows NT ----------------------- 1. Ensure that you are logged in as a user with Administrator privileges. 2. Stop all Oracle-related services and all Oracle programs. 3. Remove the database services via the oradim command. This can be done via ORADIMXX -DELETE -SID <SID> or via the 'SC' tool of the resource kit. For a full explanation on using the ORADIM command, see [NOTE:61621.1]. As from 8.1.6, the method for deinstalling is to first run Net8CA in Deinstall mode, then run DBCA to delete a database, then run OUI to deinstall the products. At this point, all services should be removed. 4. Start the ODBC administrator applet, if installed, and remove any Oracle DSN definitions. 5. Remove the Oracle software via the Oracle installer or the Universal Installer (8.1.5 and onwards). Make sure that all services related to Oracle are stopped first. Note that you cannot remove the installer itself. If Legato Storage Manager is installed on the system, then remove it via the uninstaller executable that is shipped with Legato. Start->Programs->Networker->Uninstall Networker Caution: If Legato Storage Manager was installed independently of Oracle, DO NOT REMOVE LSM, because your system's backup environment may be adversely affected. 6. Start the Event Viewer, Log->Application, and clean up the application logs for Oracle. 7. Start the registry editor. This can be done via regedit or regedt32. a) If the Oracle Universal Installer (OUI) was used, go to HKEY_LOCAL_MACHINE\Software\Oracle and write down the value of the INST_LOC variable. This shows you where the OUI software is installed. This can then be used to remove the OUI from the machine afterwards. b) Go to HKEY_LOCAL_MACHINE\Software and remove the ORACLE key, look into the ODBC key for any 'leftovers' of Oracle. If they exist, then remove them as well. c) Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services and verify that all services that start with 'Oracle' are removed. If this is not the case, then remove the services starting with 'Oracle' (database related) and the ones that start with 'OraWeb' (Oracle Application Server related). No entries will not be removed from the services dialog box until you reboot. d) Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\ Application and look for keys t hat start with 'Oracle'. Normally, they should have been removed in Step 5. e) Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion \Uninstall and remove all entries related to Oracle Typical entries to found there are: Oracle JInitiator 1.1.x.x f) Close the registry editor. 8. Remove any Oracle related .INI files that may exist in the Windows NT Boot directory. The Windows NT boot directory may be found by entering "SET WINDIR" from a command prompt. Typical Oracle .INI files include ORADIM73.INI, ORADIM80.INI, ORACLE.INI, ORAODBC.INI 9. Go to Start->Settings->control Panel->System->Environment. * Select in the 'System Variables' window the PATH variable and remove the %ORACLE_HOME%\BIN directory. If JRE was installed by Oracle, then remove the JRE path as well. (For example: ...;C:\Orant\Bin;C:\Program Files\Oracle\jre\1.1.7\bin;...) * Check the ‘User Variables for user xxx’ section also for Oracle entries to remove. * Check as well the ‘System Variables’ as ‘User Variables for user xxx’ windows for Oracle variable to remove: typical entries could be: ORACLE_SID, TNS_ADMIN, … 10. Remove any icons and references from the start menu. They are listed into the C:\Winnt\Profiles\All Users\Start Menu\Programs directory. Normally, they should be removed by the Oracle Installer in Step 4. 11. Remove the %ORACLE_HOME% directory from the machine, either by using the Windows NT Explorer or from the command prompt. 12. If the Oracle products were installed via the Oracle Universal Installer, then remove this also from the system. By default, it is installed under the Oracle directory in C:\Program Files, although you could have specified an alternative directory when you installed the Oracle Universal Installer (OUI). In that case, look at the INST_LOC parameter you have noted down in Step 6a. 13. Reboot your computer. B. 32-bit on Win95/Win98 ------------------------ 1. Stop all Oracle programs. 2. Start the ODBC administrator applet, if installed, and remove any Oracle DSN definitions. 3. Remove the Oracle software via the Oracle installer or the Universal Installer (8.1.5 and onwards). Note that you cannot remove the installer itself. If Legato Storage Manager is installed on the system, then remove it via the uninstaller executable that is shipped with Legato. Start->Programs->Networker->Uninstall Networker Caution: If Legato Storage Manager was installed independently of Oracle, then DO NOT REMOVE LSM, because your system's backup environment may be adversely affected. 4. Start the registry editor. This can be done via regedit or regedt32. a) If the Oracle Universal Installer (OUI) was used, go to HKEY_LOCAL_MACHINE\Software\Oracle and write down the value of the INST_LOC variable. This is showing you where the OUI software is installed. This can then be used to remove the OUI from the machine afterwards. b) Go to HKEY_LOCAL_MACHINE\Software and remove the ORACLE key, look into the ODBC key for any 'leftovers' of Oracle, if they exist remove them as well. c) Go to HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\ CurrentVersion\Uninstall and remove all entries related to Oracle. 5. Close the registry editor. 6. Edit your AUTOEXEC.BAT file and remove the %ORACLE_HOME%\bin and JRE paths from the PATH. (For example: ...;C:\Orant\Bin;C:\Program Files\Oracle\jre\1.1.7\bin;...) Check if any Oracle variables are set in the AUTOEXEC.BAT. If there are, then remove them. 7. Remove any icons and references from the Start menu. They are listed in the C:\Windows\Start Menu\Programs directory via Windows Explorer. These are not always removed by the Oracle installer in Step 2. 8. Remove the %ORACLE_HOME% directory from the machine, either by using the Windows Explorer or from the command prompt. 9. If the Oracle products were installed via the Oracle Universal Installer, remove this also from the system. By default, it is installed under the Oracle directory in C:\Program Files, although you could have specified an alterna
好多好多。
总之很麻烦,不知道有没有人写过自动完全卸载oracle数据库的小软件。
how to uninstall oracle under windows
following is the next part C. 16-bit
--------- The default Oracle Home for Windows 3.X is orawin. 1. If the database is running, then shut it down. 2. Deinstall all Oracle products with the Oracle Installer. a) Run orainst.exe from your Oracle Home. The Oracle Software
Asset Manager window is displayed. b) Select all of the Oracle products that are listed in the
right window pane. c) Click the [REMOVE] button. 3. Delete your ORACLE_HOME directory. 4. Use your favorite text editor and edit win.ini. a) Locate the ora_config parameter.
Remove the file that ora_config points to. b) Delete all references to Oracle from the win.ini file. Good Luck!you first perform a backup, if required, of
certain files like:
SQL*Nnet configuration files
Database files
Self-written scripts that are stored under the oracle home directory, etc. 2) The following procedures require the editing of Windows registry, which is a
potentially dangerous operation. There is no undo option in the Registry
Editor. Content
------- A. 32-bit on Windows NT
B. 32-bit on Win95/Win98
C. 16-bit A. 32-bit on Windows NT
-----------------------
1. Ensure that you are logged in as a user with Administrator privileges. 2. Stop all Oracle-related services and all Oracle programs. 3. Remove the database services via the oradim command. This can be
done via ORADIMXX -DELETE -SID <SID> or via the 'SC' tool of the
resource kit.
For a full explanation on using the ORADIM command, see [NOTE:61621.1]. As from 8.1.6, the method for deinstalling is to first run Net8CA
in Deinstall mode, then run DBCA to delete a database, then run OUI
to deinstall the products. At this point, all services should be
removed. 4. Start the ODBC administrator applet, if installed, and remove any
Oracle DSN definitions. 5. Remove the Oracle software via the Oracle installer or the
Universal Installer (8.1.5 and onwards). Make sure that all
services related to Oracle are stopped first.
Note that you cannot remove the installer itself. If Legato Storage Manager is installed on the system, then remove it via
the uninstaller executable that is shipped with Legato.
Start->Programs->Networker->Uninstall Networker Caution: If Legato Storage Manager was installed independently of
Oracle, DO NOT REMOVE LSM, because your system's backup
environment may be adversely affected. 6. Start the Event Viewer, Log->Application, and clean up the
application logs for Oracle. 7. Start the registry editor. This can be done via regedit or
regedt32. a) If the Oracle Universal Installer (OUI) was used, go to
HKEY_LOCAL_MACHINE\Software\Oracle and write down the value of
the INST_LOC variable. This shows you where the OUI
software is installed. This can then be used to remove the OUI
from the machine afterwards. b) Go to HKEY_LOCAL_MACHINE\Software and remove the ORACLE key,
look into the ODBC key for any 'leftovers' of Oracle. If they
exist, then remove them as well. c) Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services and
verify that all services that start with 'Oracle' are removed.
If this is not the case, then remove the services starting with
'Oracle' (database related) and the ones that start with
'OraWeb' (Oracle Application Server related).
No entries will not be removed from the services dialog box
until you reboot. d) Go to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\
Application and look for keys t hat start with 'Oracle'.
Normally, they should have been removed in Step 5. e) Go to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion
\Uninstall
and remove all entries related to Oracle Typical entries to found there are:
Oracle JInitiator 1.1.x.x f) Close the registry editor. 8. Remove any Oracle related .INI files that may exist in the Windows
NT Boot directory. The Windows NT boot directory may be found by
entering "SET WINDIR" from a command prompt. Typical Oracle .INI files include ORADIM73.INI, ORADIM80.INI,
ORACLE.INI, ORAODBC.INI 9. Go to Start->Settings->control Panel->System->Environment.
* Select in the 'System Variables' window the PATH variable and
remove the %ORACLE_HOME%\BIN directory. If JRE was installed by
Oracle, then remove the JRE path as well.
(For example: ...;C:\Orant\Bin;C:\Program Files\Oracle\jre\1.1.7\bin;...)
* Check the ‘User Variables for user xxx’ section also for Oracle
entries to remove.
* Check as well the ‘System Variables’ as ‘User Variables for user
xxx’ windows for Oracle variable to remove: typical entries could
be: ORACLE_SID, TNS_ADMIN, … 10. Remove any icons and references from the start menu. They are
listed into the C:\Winnt\Profiles\All Users\Start Menu\Programs
directory.
Normally, they should be removed by the Oracle Installer in Step 4. 11. Remove the %ORACLE_HOME% directory from the machine, either by
using the Windows NT Explorer or from the command prompt. 12. If the Oracle products were installed via the Oracle Universal
Installer, then remove this also from the system. By default, it is
installed under the Oracle directory in C:\Program Files, although
you could have specified an alternative directory when
you installed the Oracle Universal Installer (OUI). In that case,
look at the INST_LOC parameter you have noted down in Step 6a. 13. Reboot your computer.
B. 32-bit on Win95/Win98
------------------------ 1. Stop all Oracle programs. 2. Start the ODBC administrator applet, if installed, and remove any
Oracle DSN definitions. 3. Remove the Oracle software via the Oracle installer or the
Universal Installer (8.1.5 and onwards). Note that you cannot remove
the installer itself.
If Legato Storage Manager is installed on the system, then remove it via
the uninstaller executable that is shipped with Legato.
Start->Programs->Networker->Uninstall Networker Caution: If Legato Storage Manager was installed independently of
Oracle, then DO NOT REMOVE LSM, because your system's backup
environment may be adversely affected. 4. Start the registry editor. This can be done via regedit or
regedt32. a) If the Oracle Universal Installer (OUI) was used, go to
HKEY_LOCAL_MACHINE\Software\Oracle and write down the value of
the INST_LOC variable. This is showing you where the OUI
software is installed. This can then be used to remove the OUI
from the machine afterwards. b) Go to HKEY_LOCAL_MACHINE\Software and remove the ORACLE key,
look into the ODBC key for any 'leftovers' of Oracle, if they
exist remove them as well. c) Go to HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\
CurrentVersion\Uninstall and remove all entries related to
Oracle. 5. Close the registry editor. 6. Edit your AUTOEXEC.BAT file and remove the %ORACLE_HOME%\bin and
JRE paths from the PATH.
(For example: ...;C:\Orant\Bin;C:\Program Files\Oracle\jre\1.1.7\bin;...)
Check if any Oracle variables are set in the AUTOEXEC.BAT. If there are,
then remove them. 7. Remove any icons and references from the Start menu. They are
listed in the C:\Windows\Start Menu\Programs directory via Windows
Explorer. These are not always removed by the Oracle installer in
Step 2. 8. Remove the %ORACLE_HOME% directory from the machine, either by
using the Windows Explorer or from the command prompt. 9. If the Oracle products were installed via the Oracle Universal
Installer, remove this also from the system. By default, it is
installed under the Oracle directory in C:\Program Files, although
you could have specified an alterna
2、ORACLE安装路径为:C:\ORACLE
实现方法:
3、 开始->设置->控制面板->管理工具->服务
停止所有Oracle服务。
4、 开始->程序->Oracle - OraHome81->Oracle Installation Products->
Universal Installer
卸装所有Oracle产品,但Universal Installer本身不能被删除
5、 运行regedit,选择HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE,按del键删除这个入口。
6、 运行regedit,选择HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services,滚动
这个列表,删除所有Oracle入口。
7、 运行refedit,
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application,
删除所有Oracle入口。
8、 开始->设置->控制面板->系统->高级->环境变量
删除环境变量CLASSPATH和PATH中有关Oracle的设定
9、 从桌面上、STARTUP(启动)组、程序菜单中,删除所有有关Oracle的组和图标
10、 删除\Program Files\Oracle目录
11、 重新启动计算机,重起后才能完全删除Oracle所在目录
12、 删除与Oracle有关的文件,选择Oracle所在的缺省目录C:\Oracle,删除这个入
口目录及所有子目录,并从Windows 2000目录(一般为C:\WINNT)下删除以下文
件ORACLE.INI、oradim73.INI、oradim80.INI、oraodbc.ini等等。
13、 WIN.INI文件中若有[ORACLE]的标记段,删除该段
14、 如有必要,删除所有Oracle相关的ODBC的DSN
15、 到事件查看器中,删除Oracle相关的日志
说明:
如果有个别DLL文件无法删除的情况,则不用理会,重新启动,开始新的安装,
安装时,选择一个新的目录,则,安装完毕并重新启动后,老的目录及文件就可以删除掉了。