您好,登錄后才能下訂單哦!
這篇文章主要為大家展示了“如何刪除oracle數(shù)據(jù)庫軟件”,內(nèi)容簡而易懂,條理清晰,希望能夠幫助大家解決疑惑,下面讓小編帶領(lǐng)大家一起研究并學(xué)習(xí)一下“如何刪除oracle數(shù)據(jù)庫軟件”這篇文章吧。
1.關(guān)閉數(shù)據(jù)庫
SQL> shutdown immediate
2.關(guān)閉數(shù)據(jù)庫監(jiān)聽
lsnrctl stop
3.使用./deinstall 刪除數(shù)據(jù)庫,在oracle用戶下操作一下命令
[oracle@togogo ~]$ cd /u01/app/oracle/product/11.2.0/db_1/deinstall/
[oracle@togogo deinstall]$ ls
bootstrap.pl deinstall deinstall.pl deinstall.xml jlib readme.txt response sshUserSetup.sh
[oracle@togogo deinstall]$ ./deinstall
.....................................
####################### CLEAN OPERATION SUMMARY #######################
Updated Enterprise Manager configuration for database orcl
Successfully de-configured the following database instances : orcl
Following Single Instance listener(s) were de-configured successfully: LISTENER
Cleaning the config for CCR
As CCR is not configured, so skipping the cleaning of CCR configuration
CCR clean is finished
Successfully detached Oracle home '/u01/app/oracle/product/11.2.0/db_1' from the central inventory on the local node.
Successfully deleted directory '/u01/app/oracle/product/11.2.0/db_1' on the local node.
Successfully deleted directory '/u01/app/oracle/oraInventory' on the local node.
Oracle Universal Installer cleanup was successful.
Run 'rm -rf /etc/oraInst.loc' as root on node(s) 'togogo' at the end of the session.
Run 'rm -rf /opt/ORCLfmap' as root on node(s) 'togogo' at the end of the session.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################
############# ORACLE DEINSTALL & DECONFIG TOOL END #############
4.刪除相關(guān)的目錄或文件夾 切換到root用戶刪除
把/usr/local/bin 下的三個(gè)文件夾 dbhome oraenv coraenv 刪掉
cd /usr/local/bin
rm -f dbhome
rm -f oraenv
rm -f coraenv
把/etc 下面的 oratab 和 orainst.loc 刪掉
cd /etc
rm -f oratab
rm -f oraInst.loc
把/opt 下面 ORCLfmap 刪掉
cd /opt
rm -fR ORCLfmap
5、 刪除相關(guān)用戶和組
把 oracle 用戶和 oinstall 和 dba oper 刪掉
必須先刪 oracle 用戶
userdel -r oracle
groupdel oinstall
groupdel dba
groupdel oper
6、 刪除家目錄
rm -rf /u01
以上是“如何刪除oracle數(shù)據(jù)庫軟件”這篇文章的所有內(nèi)容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內(nèi)容對(duì)大家有所幫助,如果還想學(xué)習(xí)更多知識(shí),歡迎關(guān)注億速云行業(yè)資訊頻道!
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。