ITPub博客

首页 > 数据库 > Oracle > linux下删除oracle11g

linux下删除oracle11g

原创 Oracle 作者:tolilong 时间:2013-09-26 15:18:23 0 删除 编辑
linux下删除oracle11g[@more@]

1: 停数据库

SQL*Plus: Release 11.2.0.3.0 Production on Mon Apr 9 15:22:13 2012 Copyright (c) 1982, 2011, Oracle. All rights reserved. Enter user-name: /as sysdba Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> shutdown immediate Database closed. Database dismounted. ORACLE instance shut down.

SQL>

2: 停监听和EM

[oracle@cloud ~]$ lsnrctl stop

[oracle@cloud ~]$ emctl stop dbconsole

3: 停止http服务 [root@cloud ~]# service httpd stop

4: 删除安装目录

[root@cloud ~]#rm -rf /u01/app/oracle

5: 将/usr/bin下的文件删除

[root@cloud oracle]# cd /usr/local/bin

[root@cloud bin]# ls coraenv dbhome oraenv

[root@cloud bin]# rm -rf *

6: 将/etc/oraInst.loc删除

[root@cloud etc]# rm /etc/oraInst.loc

7: 将/etc/oratab的最后一行删除

8: 将oracle用户和用户组删除

[root@cloud etc]# userdel -r oracle

[root@cloud etc]# groupdel oinstall

[root@cloud etc]# groupdel dba

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

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

注册时间:2010-07-13

  • 博文量
    406
  • 访问量
    1208666