There are two methods to do it.
Automatic
Run the following scripts as root user.
cd $ORA_CRS_HOME/install/
[root@vmlinux1 install]# sh rootdelete.sh
CRS-0210: Could not find resource 'ora.vmlinux1.LISTENER_VMLINUX1.lsnr'.
Shutting down Oracle Cluster Ready Services (CRS):
Stopping resources.
Successfully stopped CRS resources
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
Shutdown has begun. The daemons should exit soon.
Checking to see if Oracle CRS stack is down...
Oracle CRS stack is not running.
Oracle CRS stack is down now.
Removing script for Oracle Cluster Ready services
Updating ocr file for downgrade
Cleaning up SCR settings in '/etc/oracle/scls_scr'
[root@vmlinux1 install]# sh rootdeinstall.sh
Removing contents from OCR mirror device
2560+0 records in
2560+0 records out
Removing contents from OCR device
2560+0 records in
2560+0 records out
If you encounter any errors then clear clusterware installation manually.
Manual
On RedHat Linux.
rm /etc/oracle/*
rm -f /etc/init.d/init.cssd
rm -f /etc/init.d/init.crs
rm -f /etc/init.d/init.crsd
rm -f /etc/init.d/init.evmd
rm -f /etc/rc2.d/K96init.crs
rm -f /etc/rc2.d/S96init.crs
rm -f /etc/rc3.d/K96init.crs
rm -f /etc/rc3.d/S96init.crs
rm -f /etc/rc5.d/K96init.crs
rm -f /etc/rc5.d/S96init.crs
rm -Rf /etc/oracle/scls_scr
rm -f /etc/inittab.crs
cp /etc/inittab.orig /etc/inittab
Check for the EVM,CRS and CSS processes and kill them.
ps -ef | grep d.bin
If the oracle services like listener,database etc are not running,
then remove the files from the following locations.
rm -f /var/tmp/.oracle/*
rm -f /tmp/.oracle/*
Remove ocr.loc from "/etc/oracle"
rm -f /etc/oracle
Deinstall crs home using oracle universal installer
$ORA_CRS_HOME/oui/bin/runInstaller
Remove crs directory.
clean OCR and voting disks
Clear cluvfy related files.
rm -f /tmp/CVU*
Restart the node before doing anything else.
Reference: Oracle Metalink
0 comments:
Post a Comment