oraclexe-on-ubuntu

Post date: 07-Oct-2010 12:26:16

I've installed a fresh copy of Ubuntu 10.04 64-bit, Lucid Lynx on my Laptop and wanted to install oracle on it.

I wanted to do this for a long time but was a bit scared because installing non open source applications under Linux can be little painful.

Log in as root user (sudo su under Ubuntu)

First you have to add a repository to your sources.list (located at /etc/apt/sources.list):

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

No update you repository:

#apt-get update

And execute the command to install Oracle XE:

#apt-get install oracle-xe

Oracle XE will be downloaded now, you have to press Y a few times and finally you get the following message:

Let’s do that then. You’re now asked for the port numbers of

Oracle Application Express (apex) and the database listener.

Changing the portnumber can be done in sqlplus (located at /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin)

SQL> begin 2 dbms_xdb.sethttpport('8081'); 3 end; 4 / PL/SQL procedure successfully completed.

Conclusion

I never thought it would be this easy to install an

application like Oracle on Linux. I have some experience with Linux, but I

think anyone who can use Oracle can install it on Linux. The Debian package system works great, it

downloads all the dependencies and takes care of installation and uninstallation.