Oracel 10g XE on Ubuntu 10.10 (64bit)

So this post is based on the article form the following site
http://littlebrain.org/2008/05/12/how-to-install-oracle-xe-in-ubuntu-64-bit/ and an addition to my previous blog how to install Oracle XE and GlassFish on an Ubuntu Linux.

When you have a Ubuntu 64bit system you probably get the following error during the installation which was base on my previous post during an apt-get update.

W: Failed to fetch http://oss.oracle.com/debian/dists/unstable/Release
Unable to find expected entry  main/binary-amd64/Packages in
Meta-index file (malformed Release file?)

E: Some index files failed to download, they have been
ignored, or old ones used instead.

Or when you install the packages manually you would get the following 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

So you have the download the packages libaio_0.3.104-1_i386.deb and oracle-xe-universal_10.2.0.1-1.1_i386.deb.

After that we must force the installation with option –force-architecture.

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

Now we can configure the Oracle XE.

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

In this configuration we change the apex default port from 8080 to 8081 because when you want to install GlassFish later there will be no conflict. GlassFish use 8080 as the default port an we want to keep it that way.

Specify the HTTP port that will be used for
Oracle Application Express = 8081

Specify a port that will be used for the
database listener = 1521

Specify a password to be used for database
accounts (SYS and SYSTEM) = system

Do you want Oracle Database 10g Express
Edition to be started on boot  = yes

After that we only must add the ORACLE_HOME and modify the PATH variable in our bashrc file.

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

To install GlassFish an use with a Orcle XE Database go back to my previous post:
http://blog.rueedlinger.ch/2010/09/glassfish-3-and-oracle-10g-xe-on-ubuntu-linux-9-10/

Reference:
How To Install Oracle XE in Ubuntu 64 Bit, Aldiantoro Nugroho, 2008, http://littlebrain.org/2008/05/12/how-to-install-oracle-xe-in-ubuntu-64-bit/