Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem connecting to Oracle

 
Andrew Cane
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


the above code gave me an error :
C:/test/Ruby/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`initialize': wrong number of arguments (2 for 0..1) (ArgumentError)

I've tried the connection string using above credentials with sqlplus with no problem at all.
Can anybody tell me what's causing this error?
thanks
 
Sumit Bisht
Ranch Hand
Posts: 331
Python Ruby Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you verify whether you are using the oracle instant client (http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html).
It is required as it contains the dlls which are referenced by the ruby application.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic