删除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

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/31485142/viewspace-2150571/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/31485142/viewspace-2150571/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值