ITPub博客

首页 > 数据库 > Oracle > 删除oracle数据库软件的方法

删除oracle数据库软件的方法

原创 Oracle 作者:波仔strong 时间:2018-01-27 18:56:11 0 删除 编辑
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博客 ” ,链接:https://blog.itpub.net/31485142/viewspace-2150571/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: ORACLE静默安装
请登录后发表评论 登录
全部评论

注册时间:2017-08-25

  • 博文量
    87
  • 访问量
    91918