萬盛學電腦網

 萬盛學電腦網 >> 服務器教程 >> Linux平台上手動卸載Oracle數據庫

Linux平台上手動卸載Oracle數據庫

   系統環境:

  Red Hat Enterprise Linux Server release 5.5 (Tikanga)

  Oracle Database 11g Enterprise Edition Release 11.2.0.1.0

  步驟如下:

  1.停止所有Oracle進程

  $ sqlplus / as sysdba

  //for asm instance

  $ sqlplus / as sysasm

  SQL> shutdonw immediate

  $ lsnrctl stop

  2.刪除Oracle安裝目錄

  # rm -rf /u01/app

  3.刪除相關的用戶和用戶組

  # userdel -r oracle

  # groupdel oinstall

  # groupdel dba

  # groupdel oper

  //for asm instance

  # userdel -r grid

  # groupdel asmadmin

  # groupdel asmdba

  # groupdel asmoper

  4.刪除相關配置文件

  # rm -rf /etc/oratab

  # rm -rf /etc/oraInst.loc

  # rm -rf /etc/oracle

  //for grid RAC

  # rm -rf /etc/init.d/init.ohasd

  //for grid RAC

  # rm -rf /usr/local/bin/dbhome

  # rm -rf /usr/local/bin/oraenv

  # rm -rf /usr/local/bin/coraenv

copyright © 萬盛學電腦網 all rights reserved