From: Brian Candler Date: 2009-07-21T23:42:45+09:00 Subject: Re: Ruby/Oracle connectivity Dheeraj Gambhir wrote: > C:\ruby>ruby -r oci8 -e "OCI8.new('mlbread', 'mlbread', > 'MLBD').exec('select * f > rom bam_order.ec_invoice where order-id>2316027') do |r| puts r.join(' | > '); end > " > c:/ruby/lib/ruby/site_ruby/1.8/oci8.rb:52:in `init': OCI Library > Initialization > Error (OCIError) > from c:/ruby/lib/ruby/site_ruby/1.8/oci8.rb:52 This is probably worth raising on the ruby-oci8 list, where I suggest you report the exact version of ruby-oci8 you installed, e.g. was it one of the ruby-oci8-x86-mswin32 files from rubyforge? Check the documentation to see what the prerequisites are in terms of Oracle client libraries. Also, you might have issues if you are using 32bit OCI8 vs 64bit Oracle libraries, or vice versa. You appear not to be using the gem version of ruby-oci8, so perhaps "gem install ruby-oci8" would work better. Googling for "ruby-oci8 windows" suggested this. -- Posted via http://www.ruby-forum.com/.