茫茫網海中的冷日
         
茫茫網海中的冷日
發生過的事,不可能遺忘,只是想不起來而已!
 恭喜您是本站第 1670319 位訪客!  登入  | 註冊
主選單

Google 自訂搜尋

Goole 廣告

隨機相片
IMG_60D_00003.jpg

授權條款

使用者登入
使用者名稱:

密碼:


忘了密碼?

現在就註冊!

DB研討會 : [轉貼]Manual Oracle Uninstall

發表者 討論內容
冷日
(冷日)
Webmaster
  • 註冊日: 2008/2/19
  • 來自:
  • 發表數: 15771
[轉貼]Manual Oracle Uninstall

Manual Oracle Uninstall

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

In the past I've had many problems uninstalling all Oracle products from Windows systems. Here's my last resort method:

  • Uninstall all Oracle components using the Oracle Universal Installer (OUI).
  • Run regedit.exe and delete the HKEY_LOCAL_MACHINE/SOFTWARE/Oracle key. This contains registry entires for all Oracle products.
  • If you are running 64-bit Windows, you should also delete the HKEY_LOCAL_MACHINE/SOFTWARE/Wow6432Node/Oracle key if it exists.
  • Delete any references to Oracle services left behind in the following part of the registry (
    HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Ora*). It should be pretty obvious which ones relate to Oracle.
  • Reboot your machine.
  • Delete the " C:\Oracle" directory, or whatever directory is your ORACLE_BASE.
  • Delete the " C:\Program Files\Oracle" directory.
  • If you are running 64-bit Wiindows, you should also delete the " C:\Program Files (x86)\Oracle" directory.
  • Remove any Oracle-related subdirectories from the "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\" directory.
  • Empty the contents of your " C:\temp" directory.
  • 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.

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).
  • Stop any outstanding processes using the appropriate utilities.



    # oemctl stop oms user/password
    # agentctl stop
    # lsnrctl stop
    Alternatively you can kill them using the
    kill -9 pid command as the root user.
  • Delete the files and directories below the $ORACLE_HOME.



    # cd $ORACLE_HOME
    # rm -Rf *

  • With the exception of the product directory, delete directories below the $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.

    # rm /etc/oratab /etc/emtab

Hope this helps. Regards Tim...


原文出處: ORACLE-BASE - Manual Oracle Uninstall
冷日
(冷日)
Webmaster
  • 註冊日: 2008/2/19
  • 來自:
  • 發表數: 15771
[轉貼]移除 Oracle Client 11G
實現方法:
1、 開始 -> 設置->控制面板 -> 管理工具 -> 服務停止所有Oracle服務。
2、 開始 -> 程序 -> Oracle - OraHome81 -> Oracle Installation Products -> Universal Installer卸裝所有Oracle產品,但Universal Installer本身不能被刪除
3、 運行regedit,選擇HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE,按del鍵刪除這個入口。
4、 運行regedit,選擇HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services,滾動這個列表,刪除所有Oracle入口。
5、 運行regedit,HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application,刪除所有Oracle入口。
6、 開始 -> 設置 -> 控制面板 -> 系統 -> 高級 -> 環境變量,刪除環境變量CLASSPATH和PATH中有關Oracle的設定
7、 從桌面上、STARTUP(啓動)組、程序菜單中,刪除所有有關Oracle的組和圖標
8、 刪除\Program Files\Oracle目錄
9、 重新啓動計算機,重起後才能完全刪除Oracle所在目錄
10、 刪除與Oracle有關的文件,選擇Oracle所在的缺省目錄C:\Oracle,刪除這個入口目錄及所有子目錄,並從Windows 2000目錄(一般爲C:\WINNT)下刪除以下文件ORACLE.INI、oradim73.INI、oradim80.INI、oraodbc.ini等等。
11、 WIN.INI文件中若有[ORACLE]的標記段,刪除該段
12、 如有必要,刪除所有Oracle相關的ODBC的DSN
13、 到事件查看器中,刪除Oracle相關的日誌

這個方法對windows下不同版本oracle的卸載都是通用的,但實際沒有這麼複雜,我們所需要做的,也就是上面步驟中提到的1、2、3、4、5、8、9就可以了。
以上第二步筆者在服務器上操作時遇到過提示需要在命令行中刪除的情況,按照提示執行即可,命令行中需要輸入監聽名,和全局數據庫名。不知道這是不是服務器跟個人電腦上的區別。
注意:在刪除安裝目錄下oracle相關文件的時候可能存在個別文件無法刪除的現象,比如說BIN目錄下的oci.dll文件,這個是軟件安裝後(不管成功與否)自動加載到系統中的。解決這個問題的唯一方法就是重啓系統,然後再次對此文件進行刪除。這樣就算是徹底刪乾淨oracle軟件了。

原文出處:移除Oracle Client 11G @ lichangying 's Blog :: 隨意窩 Xuite日誌
前一個主題 | 下一個主題 | 頁首 | | |



Powered by XOOPS 2.0 © 2001-2008 The XOOPS Project|