From: Cetric Blue Date: 2008-10-29T05:41:19+09:00 Subject: Re: oracle_enhanced adapter 'uninitialized constant' error Todd Benson wrote: > On Tue, Oct 28, 2008 at 2:36 PM, Todd Benson > wrote: >> On Tue, Oct 28, 2008 at 2:02 PM, Cetric Blue wrote: >>> Todd, >>> Yes, the database is definitely running, although it is through the >>> network, but I have the port specified in ":host => "abc.def.jkl:1521". >>> >>> I moved require 'rubygems' to the top of the code, same error remains... >> >> Cetric, >> Have you tried :port => 1521 as part of the hash? > > I think that might have to be :port => "1521" (in quotes). Untested, > BTW. > > Todd Todd, Thanks for all your help, it turns out to be I didn't setup LD_LIBRARY_PATH correctly for all users. Although now I fixed the path, but it gave me a new error: /usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/runner.rb:45: env.c:257:in oci8lib.so: ORA-12154: TNS:could not resolve the connect identifier specified (O CIError) But that's totally something else. I'll do some further investigation on that. Thanks! -- Posted via http://www.ruby-forum.com/.