I haven't blogged for a while as I've been holidaying in Thailand, but I thought it's time to get back into nerding instead of laying on beaches. (Did I just say that?!)
So, first thing I try to do is deinstall one of my Oracle Database XE installs, but I'd done a few things to the file system that made it impossible to remove using the standard deinstall procedure. After searching through the Oracle XE doc, I found this little gem to manually remove XE. I wanted to share it as I've had to do this a couple of times now. The first time I didn't know this trick and had to reinstall the o/s, just before a demo at a conference. It was a tiny bit stressful.
First off, check to see what Oracle RPMs are installed, and try removing them.
rpm -qa | grep oracle
rpm -e oracle-xe-univ
If you get an error here, move on to the next steps to manually remove XE. Remove the XE directories.
rm -Rf /usr/lib/oracle/xe
rm -Rf /etc/oratab
rm -Rf /etc/init.d/oracle-xe
rm -Rf /etc/sysconfig/oracle-xe
Hey presto! Your system no longer has any XE files and you can start again. Like I'm doing right now.
Comments (2)
thanks, good tips, i would put this in shell script and run it.
Posted by OracleTube.com | February 4, 2008 10:08 AM
Posted on February 4, 2008 10:08
This way you are going to corrupt the RPM repository database and you will have problems later...
If you just need to remove XE to reinstall it afterward, you should instead do something like:
rpm -e --force --nodeps oracle-xe-univ
Good luck!!!
Posted by PaoloM | July 2, 2008 6:25 PM
Posted on July 2, 2008 18:25