[aklug] Oracle and Rails

From: barsalou <barjunk@attglobal.net>
Date: Thu Dec 20 2007 - 14:21:06 AKST

I've recently had an opportunity to get some oracle training and have
been able to get rails running with oracle.

The platform is Rails 2.0.2 and Ruby 1.8.5 from RHEL4.

There was some stumbling about getting rails installed because I wanted
to have a version of ruby greater than 1.8.1 (the default for RHEL4).

This involved putting yum on the box (RHEL4) and also adding a testing
repository.

Also, there was no rpm that I could find for rubygems so I installed
that from the tarball on the rubyforge site.

Then updated it using: gem update --system

Additionally, there was a small patch that was needed to get the newest
of oracle adapters to work...it seemed to be missing a particular
method.

It was an easy patch, but it is disappointing that it was necessary.

Configuring Oracle was interesting, because their concept of a database
is somewhat different than mysql.

Since there was already data that came with oracle in the form of an
example, I wanted to migrate that to use rails. This actually caused
problems, because I didn't want to delete the existing data.

Rails is by default setup to start from scratch, so I had to do some
modifying of some default things just to get it working.

All in all it wasn't too bad, but if you've never used oracle before,
it is a pretty steep learning curve.

The biggest part of getting all of this configured was getting the
software onto the Virtual machine that I was using.

Mike B.

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Thu Dec 20 14:21:45 2007

This archive was generated by hypermail 2.1.8 : Thu Dec 20 2007 - 14:21:45 AKST