Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread

 

By: Kubo Takehiro
RE: Ruby oracle (oci8) connection [ reply ]  
2009-11-15 23:20
Where is the Oracle client library, OCI.DLL and required nls resources, ORAOCIEI11.DLL or ORAOCIICUS11.DLL?
What is the value of environment variable PATH?
Does any other OCI.DLL in the PATH?

By: Suyog Lokhande
Ruby oracle (oci8) connection [ reply ]  
2009-11-11 16:36
Hi,

I have a ruby 1.8.6 [i386-mswin32] on Virtual machine and I need to connect to Oracle. I have installed Oracle Instant Client (Basic + SDK)(11.1.0) on it. I installed oci8 gem version = 2.0.2

When I try to run
require 'oci8'

I get the following error message:
:/build/ruby-oci8-2.0.2/ext/oci8/oci8lib.c:164:in oci8lib.so: OCI Library Initialization Error (OCIError)
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from c:/ruby/lib/ruby/gems/1.8/gems/ruby-oci8-2.0.2-x86-mswin32-60/lib/oci8.rb:25
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from connectingtoOracle.rb:1


How, I can get rid of this error? any help is greatly appreciated.

~Suyog