Linux5下卸载Oracle11g步骤

来源:互联网 发布:手机如何举报淘宝卖家 编辑:程序博客网 时间:2024/05/21 04:19
原文地址:Linux5下卸载Oracle11g步骤作者:stoperp

1:停数据库

 

SQL*Plus: Release11.2.0.3.0 Production on Mon Apr 9 15:22:13 2012

Copyright (c) 1982, 2011,Oracle.  All rights reserved.

Enter user-name: /assysdba

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 -Production
With the Partitioning, OLAP, Data Mining and Real ApplicationTesting 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@cloudoracle]# 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: 将oracle用户和用户组删除
[root@cloud etc]# userdel -r oracle
[root@cloud etc]# groupdel oinstall
[root@cloud etc]# groupdel dba

0 0
原创粉丝点击