Install Oracle on Ubuntu/Debian server

Oracle is a powerfull database managment system, probably the powerfull solution to process a lot of data. In the past the install of this service was difficult, but now it’s not enough a problem. Oracle has released built-in packages for his free DBMS version, this package are available for almost all Linux plateform.

In this post I will explain how install this service on an Debian-based distribution, like Ubuntu.

Step 1 : Add the repository to the apt

Open file /etc/apt/source.list, and append the following line :

deb unstable main non-free

After that import the key of this repository :

$ wget -O- | sudo apt-key add -


Step 2 : Ensure that you’ve enough swap

Oracle need at least 1GB of swap, if you don’t have enough swap, do the following commands :

$ sudo dd if=/dev/zero of=/moreSwap bs=1M count=1000
$ sudo mkswap /
$ sudo swapon /moreSwap

Step 3 : Install Oracle

We use the apt command to do that :

sudo apt-get update && sudo apt-get install oracle-xe-universal

Be patient, this installation can be long (around 250MB to download)

After that we need to configure Oracle with the following command :

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

Here, the program will ask you some informations like port number, administrator password, …

As written in the last line of this program, you can access to the database home page on the following URL : (may change if you’ve change the port)

Share and Enjoy:
  • Print
  • Facebook
  • Digg
  • Sphinn
  • Mixx
  • Google Bookmarks
  • Add to favorites
  • MSN Reporter
  • MySpace

Tags: , , , ,

Leave a Reply