当前位置:数据库 > Oracle >>

Manual Oracle Uninstall

Manual Oracle Uninstall
 
Manual Oracle Uninstall
手动卸载oracle
A number of people have contacted me regarding problems uninstalling Oracle products. The two methods listed below should only be used as a last resort and will remove *all* Oracle software allowing a re-install. If you make any mistakes they can be quite destructive so be careful.
Windows
UNIX
Windows
In the past I've had many problems uninstalling all Oracle products from Windows systems. Here's my last resort method:
在之前我已经windows 系统上卸载oracle时碰到了很多问题以下是我最新整理的一些方法:
Uninstall all Oracle components using the Oracle Universal Installer (OUI).
使用oui来卸载搜有组件
Run regedit.exe and delete the HKEY_LOCAL_MACHINE/SOFTWARE/Oracle key. This contains registry entires for all Oracle products.
命令行下运行  regedit,在注册表中删除     HKEY_LOCAL_MACHINE/SOFTWARE/Oracle   键。这里包含了oracle 产品所有的注册记录。
If you are running 64-bit Windows, you should also delete the HKEY_LOCAL_MACHINE/SOFTWARE/Wow6432Node/Oracle key if it exists.
64位的windows,需要删除    HKEY_LOCAL_MACHINE/SOFTWARE/Wow6432Node/Oracle  (如果有的话)
Delete any references to Oracle services left behind in the following part of the registry (HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Ora*).
删除所有与oracle 服务相关的记录,也就是 (HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Ora*). 遗留下来的记录
          It should be pretty obvious which ones relate to Oracle.
           记录内容应当与oracle紧密相关。
 
Reboot your machine.
重启服务器
Delete the "C:\Oracle" directory, or whatever directory is your ORACLE_BASE.
删除$oracle_home 下所有的目录
Delete the "C:\Program Files\Oracle" directory.
删除 "C:\Program Files\Oracle 所有内容
If you are running 64-bit Wiindows, you should also delete the "C:\Program Files (x86)\Oracle" directory.
如果是64位的系统,需要额外删除   C:\Program Files (x86)\Oracle
Empty the contents of your "C:\temp" directory.
清空   C:\temp
Empty your recycle bin.
清空回收站
At this point your machine will be as clean of Oracle components as it can be without a complete OS reinstall.
Remember, manually editing your registry can be very destructive and force an OS reinstall so only do it as a last resort.
手工编辑注册表是一项非常危险的操作。
If some DLLs can't be deleted, try renaming them, the after a reboot delete them.
如果某些ddls不能被删除,可以尝试重命名他们,或者重启后再去删除它们。
UNIX
Uninstalling all products from UNIX is a lot more consistent. If you do need to resort to a manual uninstall you should do something like:
Uninstall all Oracle components using the Oracle Universal Installer (OUI).
使用oui卸载oracle组件
Stop any outstanding processes using the appropriate utilities.
停掉所有与oracle相关的进程
# oemctl stop oms user/password
# agentctl stop
# lsnrctl stop
Alternatively you can kill them using the kill -9 pid command as the root user
          你也可以使用kill -9 pid 来杀进程。.
Delete the files and directories below the $ORACLE_HOME.
删除 $ORACLE_HOME. 目录
# cd $ORACLE_HOME
# rm -Rf *
With the exception of the product directory, delete directories below the $ORACLE_BASE
.一些特殊情况下,删除$ORACLE_BASE
# cd $ORACLE_BASE
# rm -Rf admin doc jre o*
Delete the /etc/oratab file. If using 9iAS delete the /etc/emtab file also.
删除 /etc/oratab 文件,如果使用了9iAS 还需删除 /etc/emtab
# rm /etc/oratab /etc/emtab
Hope this helps. Regards Tim...
 
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,