您好,登录后才能下订单哦!
这篇文章主要为大家展示了“如何删除oracle数据库软件”,内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让小编带领大家一起研究并学习一下“如何删除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数据库软件”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注亿速云行业资讯频道!
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。