How To Install Oracle XE in Ubuntu 64 Bit

May 12th, 2008

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:

Comments

11 Responses to “How To Install Oracle XE in Ubuntu 64 Bit”

  1. Dave’s Tech Blog » Blog Archive » Installing Oracle XE on Ubuntu 64bit on May 26th, 2008 3:07 am

    [...] 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 [...]

  2. addchild314 on June 11th, 2008 7:04 am

    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!

  3. Venka A on June 19th, 2008 12:14 am

    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

  4. little brain on June 19th, 2008 8:17 am

    thank you :)
    I’ll add to the post

  5. M.B. on June 28th, 2008 10:26 am

    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?

  6. little brain on June 28th, 2008 9:41 pm

    M.B
    thank you ;)
    have you start the db?

    sudo /etc/init.d/oracle-xe start

  7. M.B. on June 29th, 2008 5:03 am

    Starting the database does not do anything, still can’t access the home page from FF or Opera.

  8. little brain on June 29th, 2008 12:39 pm

    any spesific error?

  9. morph on July 3rd, 2008 4:01 am

    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 ;-)

  10. A Quick 64 bit Update « Maclochlainn’s Weblog on July 27th, 2008 2:08 am

    [...] 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. [...]

  11. Gerben de Vries on August 22nd, 2008 9:35 pm

    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

Leave a Reply