linux 卸载oracle 11.2.0.4

来源:互联网 时间:1970-01-01

1.使用SQL*PLUS停止数据库[[email protected] oracle]$ sqlplus /nologSQL> connect / as sysdbaSQL> shutdown [immediate]SQL> exit2.停止Listener[[email protected] oracle]$ lsnrctl stop3.停止HTTP服务[[email protected] /root]# service httpd stop4.用su或者重新登录到root(如想重新安装可以保留oracle用户,省得输入环境变量了)5.将安装目录删除[[email protected] /root]# rm -rf /u01/app/oracle/6.将/usr/bin下的文件删除[[email protected] /root]# rm /usr/local/bin/dbhome[[email protected] /root]# rm /usr/local/bin/oraenv[[email protected] /root]# rm /usr/local/bin/coraenv7.将/etc/oratab删除[[email protected] /root]# rm /etc/oratab8.将/etc/oraInst.loc删除[[email protected] /root]# rm /etc/oraInst.loc9.将oracle用户删除(若要重新安装,可以不删除)[[email protected] /root]# userdel –r oracle10.将用户组删除(若要重新安装,可以不删除)[[email protected] /root]# groupdel oinstall[[email protected] /root]# groupdel dba11.将启动服务删除[[email protected] /root]# chkconfig --del dbora到此为止重启后,你的Linux系统下的Oracle数据库已完全删除了!!!以上是CentOS5.4+Oracle 11g的环境。



相关阅读:
Top