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 http://oss.oracle.com/debian unstable main non-free

After that import the key of this repository :

$ wget http://oss.oracle.com/el4/RPM-GPG-KEY-oracle -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 /
moreSwap
$ 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 : http://127.0.0.1:8080/apex (may change if you’ve change the port)

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

Tags: , , , ,

Leave a Reply