Installing Oracle XE database on 64-bit Ubuntu

After many years, I took a fresh look at Ubuntu, and I found it to be great!  So naturally, I wanted to install Oracle XE database to play around with.  But this comes as a 32-bit rpm.  What to do?

Fortunately, I found a great post over at littlebrain.org that describes the process and pitfalls in some details.  I wont repeat the whole post here, just the key steps, but I strongly encourage you to head on over and take a look at Aldiantoro’s post!

sudo apt-get install libc6-i386
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
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
sudo /etc/init.d/oracle-xe configure

Then 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

About Mark Nelson

Mark Nelson is a Developer Evangelist at Oracle, focusing on microservices and AI. Mark has served as a Section Leader in Stanford's Code in Place program that has introduced tens of thousands of people to the joy of programming, he is a published author, a reviewer and contributor, a content creator and a lifelong learner. He enjoys traveling, meeting people and learning about foods and cultures of the world. Mark has worked at Oracle since 2006 and before that at IBM since 1994.
This entry was posted in Uncategorized and tagged , . Bookmark the permalink.

3 Responses to Installing Oracle XE database on 64-bit Ubuntu

  1. Pingback: Installing WebLogic Server 10.3.3 on Ubuntu (64-bit) | RedStack

  2. Maybe this is useful for somebody:
    Had some problems in this step:
    sudo dpkg -i –force-architecture oracle-xe-universal_10.2.0.1-1.1_i386.deb

    Errors were encountered while processing:
    oracle-xe-universal:i386

    To solve them I had to edit control inside the .deb package:

    dpkg -e oracle-xe-universal_10.2.0.1-1.1_i386.deb
    cd DEBIAN/
    vi control
    (Here remove libc6, the line should eventually read:
    Depends: libaio (>= 0.3.96) | libaio1 (>= 0.3.96)
    )
    tar -czvf control.tar.gz *
    mv control.tar.gz ..
    cd ..
    ar r oracle-xe-universal_10.2.0.1-1.1_i386.deb control.tar.gz

    After that I could finally install oracle xe in ubuntu 64 bit

    Sources:
    http://ubuntuforums.org/archive/index.php/t-1759118.html (tonyozr)
    http://ubuntuforums.org/showthread.php?t=475127 (Nick)

Leave a comment