aspose 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
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem connecting to Oracle