• Home
  • RSS Feed
  • Log in

Age Mooij

Installing Oracle XE on Ubuntu JeOS on VMware Fusion on OS X Leopard
Posted by Age Mooij at around evening time: December 9th, 2007

It seems Oracle on linux is the only way to get Oracle on my Mac.

I recently switched from Ubuntu to OS X 10.5 (Leopard) as my main development OS and I quickly ran into a major hurdle, this being the fact that there is no reliable way to install an Oracle database server on Leopard. Oracle does offer a version for OS X but they are obviously not very serious about the Mac as a platform because it is an outdated version of 10g and, more importantly, it only really runs on OS X 10.3, a version that has been outdated for almost two years. I went on a Google hunt for information on how to install this older version on my shiny new Leopard-enabled MacBook Pro and I found some forum posts and an outdated site listing the tricks for getting it to work on 10.4, the previous version of OS X, but no clear instructions for getting it to work on Leopard.

So I went back to Ubuntu… or at least virtual Ubuntu. I installed Ubuntu’s new JeOS (Just Enough Operating System) as a virtual machine on VMware Fusion. JeOS has been optimized to run on VMware so this seemed like the perfect host for running my database. Installing it was not as easy as I thought though, because my first two attempts at creating a new VM with the JeOS iso (mounted as a cd drive) resulted in systems that would not boot. It turns out that JeOS does not like virtual SCSI disks so I had to create my VM with an IDE disk. VMware made this a little harder than you would think since the only way I got this to work was to first create the VM with a SCSI disk (you can’t choose IDE in the VM creation wizard), and then to delete that disk and create a new IDE disk.

When installing Ubuntu, make sure you create a swap partition at least twice the size of the amount of RAM you gave the VM since that’s about the only system requirement that the Oracle XE installer enforces. I gave my VM 340 MB so I made the swap partition a nice round 800 MB. With the basic system installed the only extra thing I installed was an SSH server (sudo apt-get intall openssh-server) for easier remote management. I configured my VM with NAT networking so it always has a unique private IP address and connecting to it through SSH or JDBC is easy.

I wanted to install the full Oracle Enterprise edition because the XE version can be somewhat limiting but it turns out that to install it you need to have a full memory hogging Gnome desktop installed. I wanted to keep the memory footprint of my VM as small as possible so I changed my mind and went for Oracle XE, which is extremely easy to install on Ubuntu.

The instructions I found on the net are so simple that I’ll reproduce them here:

Add the following line to your Ubuntu /etc/apt/sources.list file:

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

and then execute the following commands:

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

After the installer has downloaded and installed everything, it will tell you to run a simple configuration script and after that you’re basically done. You’ve got a small footprint VM with a fully functional Oracle database in it. You can install Oracle’s SQL Developer for OS X to browse and manage your databases and Oracle also offers something they call an “instant client“, which is a simple zip file containing good old SqlPlus.

So there you go, Oracle on OS X… sort of :)

Share

Filed under Java | 3 Comments »



3 Responses to “Installing Oracle XE on Ubuntu JeOS on VMware Fusion on OS X Leopard”



    Erik Rozendaal Says:
    Posted at: December 9, 2007 at 9:56 pm

    Cool. I’ve just done the same using Fedora 8 and the full Oracle 10g (not XE). No need to install gnome/X11 though. Just ssh into your virtual machine with X forwarding enabled (-X) and make sure you run Apple’s X11 server. Then you can run the Oracle graphical installer from your Leopard desktop.

    Reply


    Hilbert Schraal Says:
    Posted at: December 28, 2007 at 5:45 pm

    Stoere setup ;-)

    Ik snap alleen niet waarom Java developers kiezen voor OS-X. Slechte support qua JDK (versie 6 nog steeds niet final). En dus Oracle ook een drama. Ik blijf lekker bij Ubuntu.

    Reply


    Running Oracle for Development on the Mac » Ted Wise Says:
    Posted at: October 3, 2008 at 4:17 pm

    [...] of this information was pulled from these links: [1] https://help.ubuntu.com/community/JeOS [2] http://blog.xebia.com/2007/12/09/installing-oracle-xe-on-ubuntu-jeos-on-vmware-fusion-on-os-x-leopar... [3] http://djgraphite.com/articles/vmware-fusion-20-beta-1/   « Web Inspector [...]

    Reply


Leave a Reply

Click here to cancel reply.


Xebia Sites

  • Xebia Corporate
  • Xebia France
  • Xebia India
  • Xebia Sweden

Categories

  • Java (311)
  • Agile (181)
  • General (136)
  • Scrum (67)
  • Architecture (64)
  • Testing (59)
  • Performance (46)
  • Middleware (56)
    • Deployment (38)
  • Xebia Labs (39)
  • SOA (31)
  • Podcast (31)
  • Project Management (28)
  • Tools (26)
  • Uncategorized (20)
  • lean architecture (20)
  • Quality Assurance (17)
  • Articles (13)
  • Requirements Management (13)
  • Virtualization (19)

Tag Cloud

    TDD product owner JPA Scala SOA agile architectuur Maven Javascript JPA implementation patterns Scrum Xebia lean architecture XML Java Oracle ACT Eclipse Grails Frameworks Spring Moving to India Lean Flex Concurrency Control Agile Groovy Architecture Hibernate lean architectuur Ajax

Archives

  • February 2012
  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
Avatars by Sterling Adventures