
安装后选择软件管理-软件卸载
如果在列表中找到了这个软件可以进行一键卸载的,如果没有的话你就丝毫不用担心啦
如果直接把OracleHome删掉,杀掉所有相关进程,重启机器也可以解决问题,不过我认为这是一种比较粗暴的方式。1. stop and delete RAC instance, drop the database2. stop and delete ASM instance3. stop and delete listener4. stop crs stack and clean related resource5. clean ocr context6. change permission and remove related ORACLE directory and Clusterware directory 其中4,5都可以直接利用Clusterware 目录install下面的脚本进行,所以这里主要介绍1,2,3,6.1. stop and drop database#!/bin/kshdb=`srvctl config database`echo “db=$db”nl=`srvctl config databaes -d $db | awk ‘{print $2}’`echo “nl=$nl”srvctl stop database -d $dbsrvctl remove database -d $db -ffor n in $nldoecho “stop and remove instance on instance $n”srvctl stop instance -d $db -i $nsrvctl remove instance -d $db -i $n -fdoneecho “stop and remove database instance done”2. stop and drop asm instance#!/bin/kshnl=`olsnodes`for n in $nldosrvctl stop asm -n $nsrvctl remove asm -n $ndoneecho “stop and remove asm done”3. stop and drop listenerlsnr=`crs_stat |grep lsnr | cut -d= -f2`for l in $lsnrdocrs_stop $lcrs_unregister $ldoneecho “stop and remove listener done”4. stop crs stack and clean related resource 这里需要注意的是,这里的 *** 作必须一个节点一个节点的执行,不能并行 *** 作,就如同安装的时候执行root.sh一样!切记切记.on local node:$ORA_CRS_HOME/install/rootdelete.sh local nosharedvar nosharedhomeon remote nodes:$ORA_CRS_HOME/install/rootdelete.sh remote nosharedvar nosharedhome5. clean ocronly execute this on local node:$ORA_CRS_HOME/install/rootdeinstall.sh6. change permission and remove directory这里之所以要更改权限是因为安装后期运行root.sh的时候会把ORA_CRS_HOME的父目录改为root权限,下次安装的时候必须修改为oracle用户chown -Rf ractest:oinstall $ORA_CRS_HOME/../../../欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)