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 an Architect (an "IC6") in the Fusion Middleware Central Development Team at Oracle. Mark's job is to make Fusion Middleware easy to use in the cloud and at home, for developers and operations folks, with special focus on continuous delivery, configuration management and provisioning - making it simple to manage the configuration of complex environments and applications built with Oracle Database, Fusion Middleware and Fusion Applications, on-premise and in the cloud. Before joining this team, Mark was a senior member of the A-Team since 2010, and worked in Sales Consulting at Oracle since 2006 and various roles 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 Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s