However, when I attempt to connect via ODBC from Ruby on Rails, I get
the following error when starting the web server:
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/
active_record/connection_adapters/abstract/connection_specification.rb:
34: uninitialized class variable @@allow_concurrency in
ActiveRecord::Base (NameError)
In addition to the ODBC binding mentioned above, I have also installed
OpenLink’s ODBC adapter for Ruby on Rails (http://odbc- rails.rubyforge.org/).
I’m running Rails 1.2.3 on Mac OS X 10.4.9 (Intel). My Oracle
database is version 10g.
Have you seen this error and/or do you have any idea why it may be
occuring?
Can you share any resources describing how people have successfully
used an Oracle ODBC driver with Ruby on Rails?
I am using Oracle 10g with the ruby-oci adapter. I have had no problems
with this adapter. I use it on Windows. I don’t know if there is an OS X
version.
However, when I attempt to connect via ODBC from Ruby on Rails, I get
the following error when starting the web server:
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/
active_record/connection_adapters/abstract/connection_specification.rb:
34: uninitialized class variable @@allow_concurrency in
ActiveRecord::Base (NameError)
In addition to the ODBC binding mentioned above, I have also installed
OpenLink’s ODBC adapter for Ruby on Rails (http://odbc- rails.rubyforge.org/).
I’m running Rails 1.2.3 on Mac OS X 10.4.9 (Intel). My Oracle
database is version 10g.
Have you seen this error and/or do you have any idea why it may be
occuring?
Can you share any resources describing how people have successfully
used an Oracle ODBC driver with Ruby on Rails?
Thanks Andrew. The problem is that the Mac OS X Oracle products are
compiled for PPC, not for Intel. I can actually run the Oracle
Instant Client independently (it is supported via Rosetta), but
apparently it doesn’t play with Ruby or Rails – that’s why I’m giving
ODBC a try.
The error occurs when loading OpenLink’s ODBC ActiveRecord Adapter
(which is a layer between ActiveRecord and the ODBC driver). I was
not aware that OpenLink has ODBC drivers for Oracle. Perhaps I’ll
give that a shot.