Linux AS4下卸載單機Oracle 10.2.0.1資料庫

來源:互聯網
上載者:User

1 使用SQL*PLUS停止資料庫

1.1 停止執行個體

[oracle@standby1 ~]$ sqlplus /nolog

SQL*Plus: Release 10.2.0.1.0 - Production on 星期三 6月 11 17:53:02 2008

Copyright (c) 1982, 2005, oracle. All rights reserved.

SQL> conn /as sysdba

Connected.

SQL> shutdown

Database closed.

Database dismounted.

ORACLE instance shut down.

SQL> exit

1.2 停止Listener

[oracle@standby1 ~]$ lsnrctl stop

2 刪除檔案(root身份執行)

/app/oracle/product/10.2.1/db_1/bin/localconfig delete

[root@standby1 ~]# /app/oracle/product/10.2.0/db/bin/localconfig delete

/etc/oracle does not exist. Creating it now.

/app/oracle/product/10.2.0/db/bin/localconfig: line 715: /etc/init.d/init.cssd: No such file or directory

(路徑/app/oracle/ 是我的$ORACLE_HOME)

 

[root@standby1 ~]# rm -rf /app/oracle/*

[root@standby1 ~]# rm -rf /oradata/*

[root@standby1 ~]# rm -f /etc/oraInst.loc /etc/oratab

[root@standby1 ~]# rm -rf /etc/oracle

[root@standby1 ~]# rm -f /etc/inittab.cssd

[root@standby1 ~]# rm -f /usr/local/bin/coraenv /usr/local/bin/dbhome /usr/local/bin/oraenv

(其中/app/oracle是我的$ORACLE_BASE,/oradata/存放了oracle資料。)

3 刪除使用者與使用者組

3.1 刪除oracle使用者(若要重新安裝,可以不刪除)

[root@standby1 ~]# userdel -r oracle

3.2 刪除使用者組 (若要重新安裝,可以不刪除)

[root@standby1 ~]# groupdel oinstall

[root@standby1 ~]# groupdel dba

4 刪除對應的服務

[root@ora920 /root]# chkconfig --del oracle

 

select userenv('language') from dual;

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.