Search · Index

II.3.2 Install Oracle 10g XE on debian

This is a slimmed down version of the installation instructions particularily targeted towards getting you up and running in Oracle FAST, not with the full instructions which are outdated but can be found at

This instructions owe a lot to the excellent Guide for "Installing Oracle XE on Debian" from David Pashley.

Oracle is resource hungry, so you better make sure you have enough swap space for the installation:

  1. Determine the size of the new swap file and multiple by 1024 to determine the block size. For example, the block size of a 1024 MB swap file is 1048576.

  2. At a shell prompt as root, type the following command with count being equal to the desired block size:

    dd if=/dev/zero of=/swapfile bs=1024 count=1048576
  3. Setup the swap file with the command:

    mkswap /swapfile
  4. To enable the swap file immediately but not automatically at boot time:

    swapon /swapfile
  5. After adding the new swap file and enabling it, make sure it is enabled by viewing the output of the command cat /proc/swaps or free.

To download and install Oracle XE, you need to add the following line to your /etc/apt/sources.list file:

deb http://oss.oracle.com/debian unstable main non-free

Then you can install it

wget http://oss.oracle.com/el4/RPM-GPG-KEY-oracle  -O- | sudo apt-key add -
apt-get update
apt-get install oracle-xe

We should now do what the install script said and run /etc/init.d/oracle-xe configure to do the final set up of the database.

db-server:/# /etc/init.d/oracle-xe configure

Oracle Database 10g Express Edition Configuration
This will configure on-boot properties of Oracle Database 10g Express
Edition. The following questions will determine whether the database should
be starting upon system boot, the ports it will use, and the passwords that
will be used for database accounts. Press <Enter> to accept the defaults.
Ctrl-C will abort.

Specify the HTTP port that will be used for Oracle Application Express [8080]:<enter>

Specify a port that will be used for the database listener [1521]:<enter>

Specify a password to be used for database accounts. Note that the same
password will be used for SYS and SYSTEM. Oracle recommends the use of
different passwords for each database account. This can be done after
initial configuration:password
Confirm the password:password

Do you want Oracle Database 10g Express Edition to be started on boot (y/n) [y]:<enter>

Starting Oracle Net Listener...Done
Configuring Database...Done
Starting Oracle Database 10g Express Edition Instance...Done
Installation Completed Successfully.
To access the Database Home Page go to ""

Make sure that all users can access the SQLPlus command and that other Oracle Environment Variables are setup correctly:

echo "source /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.sh" >>/etc/profile


And that's it, you are ready to use Oracle. If you need Oracle on a different machine then your AOLserver than you can take a look at the full documentation for this at http://cognovis.de/developer/en/oracle-xe-installation