Ruby on Rails Thursday, August 29, 2013

Hello folks.

I'm new in Ruby also ROR.
I installed oracle intant client and test it it works fine. Now I wanna connect to oracle db. But its got some error. like this
custom_require.rb:36:in `require': cannot load such file -- oci8 (LoadError)

my code is here.

require 'oci8'
oci = OCI8.new('user','pass','ip:port/sid')
oci.exec('select * from table') do |record|
  puts record.join(',')
end

Pls help me. What's wrong ?

Regards.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAPs6WSebTp9RM0CBvoQEYheXA3HkUp3%2B04Piom0FQTtDDARDKw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment