File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ruby and the fly likes Problem connecting to Oracle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Languages » Ruby
Bookmark "Problem connecting to Oracle" Watch "Problem connecting to Oracle" New topic
Author

Problem connecting to Oracle

Andrew Cane
Ranch Hand

Joined: Aug 07, 2013
Posts: 91


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

Joined: Jul 02, 2008
Posts: 329

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.
 
 
subject: Problem connecting to Oracle
 
Similar Threads
Ruby 1.8 and MySql problem
JSF and Third Party Components
Database newbie question about logging in
Ruby on Rails question: yaml problem with scaffold generation
Can we disable javascript in IE programatically?