如何删除oracle数据库软件


这篇文章主要为大家展示了“如何删除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.pldeinstalldeinstall.pldeinstall.xmljlibreadme.txtresponsesshUserSetup.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 invent免费云主机域名ory 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 -foraInst.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数据库软件”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注百云行业资讯频道!

相关推荐: Oracle 19C+13.4EMCC数据库监控

Oracle 19C+13.4EMCC 数据库监控 添加数据库 目标- 数据库 – 搜索列表 添加 -Oracle 数据库 – 选择主机 配置身份证明 – 监视口令、监听配置 搜索列表,添加 免费云主机域名 数据库— 诊断 — 实例健康状况 性能主页 …

免责声明:本站发布的图片视频文字,以转载和分享为主,文章观点不代表本站立场,本站不承担相关法律责任;如果涉及侵权请联系邮箱:360163164@qq.com举报,并提供相关证据,经查实将立刻删除涉嫌侵权内容。

(0)
打赏 微信扫一扫 微信扫一扫
上一篇 01/10 10:27
下一篇 01/10 10:27