Hi Tsolmon,
Have u installed ruby-oci8 gem package
Regards
Mehdi
On 8/29/13, Tsolmon Narantsogt <mnts26@gmail.com> wrote:
> 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.
>
--
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/CABRbsVk5GCMZx%2BQLTCYD2j5AoQ%2Bigg5gwq5%2BcQDVGZ3a%3D5szgw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment