linux下刪除oracle11g

tolilong發表於2013-09-26
linux下刪除oracle11g[@more@]

1: 停資料庫

SQL*Plus: Release 11.2.0.3.0 Production on Mon Apr 9 15:22:13 2012 Copyright (c) 1982, 2011, Oracle. All rights reserved. Enter user-name: /as sysdba Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> shutdown immediate Database closed. Database dismounted. ORACLE instance shut down.

SQL>

2: 停監聽和EM

[oracle@cloud ~]$ lsnrctl stop

[oracle@cloud ~]$ emctl stop dbconsole

3: 停止http服務 [root@cloud ~]# service httpd stop

4: 刪除安裝目錄

[root@cloud ~]#rm -rf /u01/app/oracle

5: 將/usr/bin下的檔案刪除

[root@cloud oracle]# cd /usr/local/bin

[root@cloud bin]# ls coraenv dbhome oraenv

[root@cloud bin]# rm -rf *

6: 將/etc/oraInst.loc刪除

[root@cloud etc]# rm /etc/oraInst.loc

7: 將/etc/oratab的最後一行刪除

8: 將oracle使用者和使用者組刪除

[root@cloud etc]# userdel -r oracle

[root@cloud etc]# groupdel oinstall

[root@cloud etc]# groupdel dba

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24237320/viewspace-1060939/,如需轉載,請註明出處,否則將追究法律責任。

相關文章