I have installed Oracle 10g xe from a deb file on linux, and then started to configure it using this terminal command
sudo /etc/init.d/oracle-xe configure
The problem is solved... While removing the oracle I used
sudo apt-get remove oracle-xe-universal
and then remove the configurations using
sudo rm -rf /usr/lib/oracle
but these commands don't remove the configurations completely, the solution is to remove the oracle-xe-universal from Synaptic Manager and mark for Complete Removal.
Then install oracle-xe-universal again from the deb file then configure it.
Thanks,