linux下完全刪除Oracle
linux下完全刪除Oracle
1.用oracle使用者登入
如果要再次安裝, 最好先做一些備份工作。
包括使用者的登入指令碼,自動啟動關閉的指令碼,和Listener自動啟動的指令碼。
要是有可能連建立資料庫的指令碼也儲存下來
2.使用SQL*PLUS停止資料庫
[root@test~ ]$ sqlplus /nolog
SQL> connect / as sysdba
SQL> shutdown [immediate]
SQL> exit
3.停止Listener
[root@test~ ]$ lsnrctl stop
4.停止HTTP服務
[root@test~ ]$ $ORACLE_HOME/Apache/Apache/bin/apachectl stop
5.用su或者重新登入到root(如想重新安裝可以保留oracle使用者,省得輸入環境變數了)
6.將安裝目錄刪除
[root@test~]# rm -rf /opt/oracle/
7.將/usr/bin下的檔案刪除
[root@test~ ]# rm /usr/bin/dbhome
[root@test~ ]# rm /usr/bin/oraenv
[root@test~ ]# rm /usr/bin/coraenv
8.將/etc/oratab刪除
[root@test~ ]# rm /etc/oratab
9.將/etc/oraInst.loc刪除
[root@ora920 /root]# rm /etc/oraInst.loc
10.將oracle使用者刪除(若要重新安裝,可以不刪除)
[root@test~ ]# userdel –r oracle
11.將使用者組刪除(若要重新安裝,可以不刪除)
[root@test~ ]# groupdel oinstall
[root@test~ ]# groupdel dba
12.將啟動服務刪除
[root@test~ ]# chkconfig --del dbora
RAC叢集刪除
刪 目錄
rm -rf /etc/oracle
rm -rf /var/tmp/.oracle
rm -rf /tmp/O*
rm -rf /etc/oratab
rm -rf /etc/oraInst.loc
rm -rf /u01/app/
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28371090/viewspace-2064241/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- windows下Oracle資料庫完全刪除WindowsOracle資料庫
- 如何完全刪除linux cudaLinux
- 刪除linux下的oracle資料庫LinuxOracle資料庫
- Linux下完全刪除使用者Linux
- linux和windows作業系統下完全刪除oracle資料庫LinuxWindows作業系統Oracle資料庫
- linux下恢復誤刪除oracle的資料檔案LinuxOracle
- 在WIN下刪除LINUXLinux
- Oracle 檔案意外刪除恢復(Linux)OracleLinux
- 完全解除安裝刪除 GitLabGitlab
- 完全解除安裝刪除gitlabGitlab
- Linux下刪除資料夾的命令Linux
- oracle刪除日誌Oracle
- 【Linux】linux下刪除/清空資料夾/檔案命令Linux
- linux 下vim中關於刪除某段,某行,或全部刪除的命令Linux
- 刪除oracle重複值Oracle
- Oracle 增加 修改 刪除 列Oracle
- oracle級聯刪除使用者,刪除表空間Oracle
- Linux下刪除亂碼或特殊字元檔案Linux字元
- oracle刪除重資料方法Oracle
- oracle大資料量分批刪除Oracle大資料
- linux刪除資料夾下所有檔案命令是什麼 linux刪除資料夾下內所有內容怎麼操作Linux
- [20200414]Linux下快速刪除大量檔案(補充).txtLinux
- Linux下使用LVM管理(擴充套件/縮小/刪除)LinuxLVM套件
- Linux技巧--刪除某列Linux
- Linux批量刪除檔案Linux
- Linux刪除檔案命令Linux
- Linux刪除多餘核心Linux
- oracle rac 12徹底刪除,徹底刪除該死的racOracle
- linux的刪除檔案命令和強制刪除命令Linux
- Oracle快速找回被刪除的表Oracle
- oracle使用小記、刪除恢復Oracle
- Oracle 11g刪除庫重建Oracle
- Linux下用rm刪除的檔案的恢復方法Linux
- linux系統下檔案誤刪除該如何恢復?Linux
- 解決:rm: 無法刪除"tomcat": 裝置或資源忙,linux下資料夾不能刪除TomcatLinux
- Linux下刪除指定資料夾下指定字尾名的檔案Linux
- Linux 刪除資料夾命令Linux
- linux 模糊批量刪除檔案Linux
- linux 刪除問題 一次刪除多個目錄下的相同副檔名的檔案Linux