共計 1834 個字符,預計需要花費 5 分鐘才能閱讀完成。
這篇文章主要為大家展示了“如何刪除 oracle 數據庫軟件”,內容簡而易懂,條理清晰,希望能夠幫助大家解決疑惑,下面讓丸趣 TV 小編帶領大家一起研究并學習一下“如何刪除 oracle 數據庫軟件”這篇文章吧。
1. 關閉數據庫
SQL shutdown immediate
2. 關閉數據庫監聽
lsnrctl stop
3. 使用./deinstall 刪除數據庫, 在 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. 刪除相關的目錄或文件夾 切換到 root 用戶刪除
把 /usr/local/bin 下的三個文件夾 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、刪除相關用戶和組
把 oracle 用戶和 oinstall 和 dba oper 刪掉
必須先刪 oracle 用戶
userdel -r oracle
groupdel oinstall
groupdel dba
groupdel oper
6、刪除家目錄
rm -rf /u01
以上是“如何刪除 oracle 數據庫軟件”這篇文章的所有內容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內容對大家有所幫助,如果還想學習更多知識,歡迎關注丸趣 TV 行業資訊頻道!