Error connecting to Oracle 10g w/ ActiveRecord

All -

I’m attempting to connect to an Oracle 10g DB with ActiveRecord. The
code is working fine on a different machine, so I’m assuming I’ve
somehow installed oci (although this machine is on an office internal
network). Up to this point, I’ve installed oci, ActiveSupport and
ActiveRecord. I also have instantclient installed and added to my path
and I have copied the two necessary .dll files from instantclient to
/ruby/bin. The error I’m receiving is below.

Thanks in advance,
Drew

OCIError: ORA-12705: Cannot access NLS data files or invalid environment
specified
from c:/ruby/lib/ruby/site_ruby/1.8/oci8.rb:184:in logon' from c:/ruby/lib/ruby/site_ruby/1.8/oci8.rb:184:ininitialize’
from
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.2/lib/active_recor
d/connection_adapters/oracle_adapter.rb:584:in new' from c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.2/lib/active_recor d/connection_adapters/oracle_adapter.rb:584:innew_connection’
from
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.2/lib/active_recor
d/connection_adapters/oracle_adapter.rb:620:in initialize' from c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.2/lib/active_recor d/connection_adapters/oracle_adapter.rb:35:innew’
from
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.2/lib/active_recor
d/connection_adapters/oracle_adapter.rb:35:in oracle_connection' from c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.2/lib/active_recor d/connection_adapters/oracle_adapter.rb:41:inoci_connection’
from
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.2/lib/active_recor
d/connection_adapters/abstract/connection_specification.rb:262:in send' from c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.2/lib/active_recor d/connection_adapters/abstract/connection_specification.rb:262:inconnection_wi
thout_query_cache=’
from
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.2/lib/active_recor
d/query_cache.rb:54:in connection=' from c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.2/lib/active_recor d/connection_adapters/abstract/connection_specification.rb:230:inretrieve_conn
ection’
from
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.2/lib/active_recor
d/connection_adapters/abstract/connection_specification.rb:78:in
connection' from c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.2/lib/active_recor d/base.rb:1140:inadd_limit!’
from
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.2/lib/active_recor
d/base.rb:1102:in construct_finder_sql' from c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.2/lib/active_recor d/base.rb:997:infind_every’
from
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.2/lib/active_recor
d/base.rb:991:in find_initial' from c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.2/lib/active_recor d/base.rb:417:infind’
from (irb):2

On Mar 5, 4:22 pm, Drew O. [email protected] wrote:

All -

I’m attempting to connect to an Oracle 10g DB with ActiveRecord. The
code is working fine on a different machine, so I’m assuming I’ve
somehow installed oci (although this machine is on an office internal
network). Up to this point, I’ve installed oci, ActiveSupport and
ActiveRecord. I also have instantclient installed and added to my path
and I have copied the two necessary .dll files from instantclient to
/ruby/bin. The error I’m receiving is below.

It’s not an AR issue. There’s an issue with your Oracle client setup.
See Resolving ORA-12705: Cannot access NLS data files or invalid environment specified

Regards,

Dan

Daniel B. wrote:

On Mar 5, 4:22 pm, Drew O. [email protected] wrote:

All -

I’m attempting to connect to an Oracle 10g DB with ActiveRecord. The
code is working fine on a different machine, so I’m assuming I’ve
somehow installed oci (although this machine is on an office internal
network). Up to this point, I’ve installed oci, ActiveSupport and
ActiveRecord. I also have instantclient installed and added to my path
and I have copied the two necessary .dll files from instantclient to
/ruby/bin. The error I’m receiving is below.

It’s not an AR issue. There’s an issue with your Oracle client setup.
See Resolving ORA-12705: Cannot access NLS data files or invalid environment specified

Regards,

Dan

Dan -

Thanks, I saw that just after posting. Maybe I should talk to my friend
Google first next time.

-Drew