I\'m trying to install Oracle Database in (X)ubuntu 13.04 64-bit using this guide. Everything goed well until I get to the following step:
$ sudo /etc/init.d/ora
I was in the same boat, trying to configure XE on a virtual machine (openSUSE 13.01 64bit).
The solution in my case was the missing hostname in /etc/hosts
.
You can examine the errors in /u01/app/oracle/product/11.2.0/xe/config/log/CloneRmanRestore.log
at the very beginning (the path depends on your XE version).
Search for an info similar to:
ORA-00119: invalid specification for system parameter LOCAL_LISTENER ORA-00130: invalid listener address '(ADDRESS=(PROTOCOL=TCP)(HOST=linux-cn65.site)(PORT=1521))
So linux-cn65.site (the VM host) was missing. Add your host in /etc/hosts (as root):
127.0.0.1 linux-cn65.site
<-- your host here
and run the configuration again (as root): sh /etc/init.d/oracle-xe configure
Additional trickery
if you do not have the error files in the log folder, you may re-install XE without h flag, like this:
sudo rpm -qa | grep -i oracle
sudo rpm -e oracle-xe-11.2.0-1.0.x86_64
<-- your package hereinstall again without h flag: sudo rpm -iv oracle-xe-11.2.0-1.0.x86_64.rpm
oh, replace the version (oracle-xe-11.2.0-1.0.x86_64.rpm) with yours. Cheers ;)