How To Install Oracle XE in Ubuntu 64 Bit
While you’re thinking by installing 64 bit linux you’re standing in the edge of new technology era, it sucks knowing our 64 bit system is less supported than the old 32 bit system. We have to install 32 bit flash since Adobe didn’t have the 64 bit one. We have to install 32 bit oracle xe since Oracle also didn’t have 64 bit version.
And now I will try explain how to install oracle xe into the 64 bit system, ubuntu way. Of course we couldn’t follow the guide from oracle, since apt-get will detect our system architecture and we won’t get the 32 bit packages list.
Before we start, make sure you have the 32 bit library installed. It’s in reposity, all you have to do is
sudo apt-get install libc6-i386
The next thing to do is download the files needed. It’s libaio_0.3.104-1_i386.deb and oracle-xe-universal_10.2.0.1-1.1_i386.deb. You could use wget for this
wget -c http://oss.oracle.com/debian/dists/unstable/main/binary-i386/libaio_0.3.104-1_i386.deb http://oss.oracle.com/debian/dists/unstable/non-free/binary-i386/oracle-xe-universal_10.2.0.1-1.1_i386.deb.
After your downloads are finished, we continue to the main issue, forcing the package to be installed. You could try to install with usual dpkg -i first to make sure your system is really 64 bit.
sudo dpkg -i libaio_0.3.104-1_i386.deb
You’ll get error,
dpkg: error processing libaio_0.3.104-1_i386.deb (--install):
package architecture (i386) does not match system (amd64)
Errors were encountered while processing:
libaio_0.3.104-1_i386.deb
Added guide from Venka A
sudo apt-get install bc
To force the installation, do these
dpkg -i --force-architecture libaio_0.3.104-1_i386.deb
dpkg -i --force-architecture oracle-xe-universal_10.2.0.1-1.1_i386.deb
And after the installation is finished, you need to configure it
sudo /etc/init.d/oracle-xe configure
and edit your ~/.bashrc
ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_HOME
export ORACLE_SID=XE
export PATH
And, voila, the oracle xe is ready. You could go to http://127.0.0.1:8080/apex from your browser.
References:


[...] trust myself to remember « Installing Oracle on UbuntuInstalling Oracle XE on Ubuntu 64bithttp://littlebrain.org/2008/05/12/how-to-install-oracle-xe-in-ubuntu-64-bit/ Published in:Uncategorized |on May 26th, 2008 |You can leave a response, or trackback from your [...]
Thanks so much for this guide! I have been trying to install compiere, which, of course, only runs with Oracle (for now). I spent hours trying to configure the full version of oracle, until I stumbled across this! It was so easy, then.
Thanks again!
Great guide! I used this to install Oracle XE on an Ubuntu 8 AMD64 linux box. Just wanted to point out that I needed to add the BC package by running this command:
sudo apt-get install bc
before running these commands:
sudo dpkg -i –force-architecture libaio_0.3.104-1_i386.deb
sudo dpkg -i –force-architecture oracle-xe-universal_10.2.0.1-1.1_i386.deb
thank you
I’ll add to the post
Hi…This tutorial is invaluable. I followed all the steps and installed Oracle 10g XE on an amd64 Ubuntu Feisty, one problem though.
During the configuration, I chose NOT to start the db upon start up. While everything worked when I installed, once I rebooted, I can not connect to the DB home page from FireFox. I did a little diggin’ and it seems that the listener did not start. When I try to re-configure via:
[b]sudo /etc/init.d/oracle-xe configure[/b]
I get [b]Oracle Database 10g Express Edition is already configured
[/b]
Any idea how to solve this?
M.B
thank you
have you start the db?
sudo /etc/init.d/oracle-xe startStarting the database does not do anything, still can’t access the home page from FF or Opera.
any spesific error?
Hi.
At first, thanks for the great tutorial.
It worked great until the next reebot ;-).
Then I had the same problem like M.B.
The only successfull way to solve the problem, was the following:
dpkg -purge “oracle package name”
and reinstall oracle with the the option “run on startup”.
After that I was able to reconfigure it.
For shure this is not the cleanest way to solve the problem, but after searching for hours the most effective
[...] Pet peeves include: (1) The Microsoft patching progrm auto detects x64 and chooses to install IE x64 when Flash is 32 bit and inoperable with 64 bit browsers; (2) VMWare Workstation disallows installation of 64 bit OS when running on Vista Home x64 (appears to require Vista Business or Ultimate); and (3) the work arounds required to install Oracle XE on Ubuntu x64. [...]
Reconfiguring can be done by editing the file /etc/default/oracle-xe.
Change true in the line: ‘CONFIGURE_RUN=true’ to false
i.e.with: sudo gedit /etc.default/oracle-xe