Ubuntu Linux Remove Oracle Express Edition

by on April 4, 2008 · 10 comments· LAST UPDATED April 24, 2009

in , ,

I know how to install Oracle XE on Debian / Ubuntu Linux. But, how do I remove Oracle Express edition under Ubuntu Linux?

You can use apt-get command to remove / delete Oracle express edition server from the Debian / Ubuntu Linux.

Open terminal.

Type the following command to delete it:
sudo apt-get remove oracle-xe

TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 10 comments… read them below or add one }

1 RobByrne April 24, 2009 at 2:13 pm

I think you may have meant rather: sudo apt-get remove oracle-xe

Also this works (not forgetting the client package): dpkg -r oracle-xe oracle-xe-client

Reply

2 nixCraft April 24, 2009 at 3:40 pm

Thanks for the heads up!

Reply

3 Han May 6, 2009 at 3:17 am

It’s apt-get remove oracle-xe-universal now. At least it is (or rather, ‘was’) on my Jaunty installation.

Reply

4 Nosferatu May 6, 2010 at 3:08 am

Thnk Han, From CR

Reply

5 jagan September 29, 2010 at 12:49 pm

Hi……. Sir,
I am getting the following Error while uninstaling the Oracle.
root@yogesh-desktop:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin# sudo apt-get remove oracle-xe
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package oracle-xe is not installed, so not removed
The following packages were automatically installed and are no longer required:
linux-headers-2.6.32-22 mlock libc-client2007e libqt3-mt linux-headers-2.6.32-22-generic
Use ‘apt-get autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 21 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up dkimproxy (1.2-3) …
addgroup: The group `dkimproxy’ already exists as a system group. Exiting.
The system user `dkimproxy’ already exists. Exiting.
* Starting inbound DomainKeys-filter dkimproxy.in Unknown option: hostname
Usage:
dkimproxy.in [options] LISTENADDR:PORT RELAYADDR:PORT
smtp options:
–conf_file=FILENAME
–listen=LISTENADDR:PORT
–relay=RELAYADDR:PORT
–reject-error

verification options:
–reject-fail
–hostname=HOSTNAME

daemon options:
–daemonize
–user=USER
–group=GROUP
–pidfile=PIDFILE

dkimproxy.in –help
to see a full description of the various options

[fail]
invoke-rc.d: initscript dkimproxy, action “start” failed.
dpkg: error processing dkimproxy (–configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
dkimproxy
E: Sub-process /usr/bin/dpkg returned an error code (1)

Reply

6 Ian December 9, 2010 at 3:01 pm

I am currently stuck with oracle on my system in order to be able to log in.

both apt-get and synaptic removal options leave something in Ubuntu 10.04 that is still looking for oracle files that do not exist after removal. It’s not the .bashrc because I removed .bashrc entries for the oracle path. Still Ubuntu fails to load gdm with an error about not finding the oracle files.

Anyone else had this problem and know the fix can you please add it to this post.

Thank you

Reply

7 Sathish March 11, 2011 at 10:35 am

Its too bad. Ther is no way to un-install oracle completely?!!

Reply

8 Ian March 12, 2011 at 4:23 pm

@Sathish apparently something still gets left behind even when I use the option to completely remove in synaptic. It’s been a while since then and maybe some updates have fixed the issue so I’ll try it again this weekend and see if it works. I’ve just been using my Ubuntu system with oracle installed and just never using it. Other than the oracle listener running in the background I don’t think it slows my system by being there. I’m actually working on learning oracle and linux by setting up the unbreakable linux from oracle on it’s own server so I don’t care about this one on my Ubuntu. Still it seems silly to have to just leave it so the rest of the OS can operate.

I’ll try uninstalling it again later today and see what happens.

Reply

9 devsathish March 17, 2011 at 8:30 am

@lan, thank you. I did something wrong during the setup. Now Ubuntu doesn’t able to recognize any commands.
commands like /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/sqlplus are giving No such file or directory… no issues with permissions…
I’d similar problem in my laptop; After going through many forums,, finally I re-installed the OS itself.

Reply

10 DucQuoc.wordpress.com December 31, 2011 at 2:06 pm

In some new versions of Ubuntu, apt-get remove will not work. We have to use the underlying dpkg of apt-get:

sudo /etc/init.d/oracle-xe stop
sudo dpkg -P oracle-xe-universal

It should remove all config files and /usr/lib/oracle stuff (unless some files, dirs are held by some process).
To make sure clean uninstallation,

rm -rf /usr/local/oracle

Then reboot

sudo shutdown -r 0

Now it should be done! You can re-install Oracle xe again:

sudo dpkg -i oracle-xe*.deb
sudo /etc/init.d/oracle-xe configure

good luck,

Reply

Leave a Comment

Tagged as: , , , , , , ,

Previous Faq:

Next Faq: