A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Problem connecting to Oracle
Joined: Aug 07, 2013
Sep 18, 2013 22:39:25
require 'yaml' require 'sequel' @db = Sequel.connect(:adapter=>'oracle',:user=>'user1', :password=>'password',:database=>'testing')
the above code gave me an error :
`initialize': wrong number of arguments (2 for 0..1) (ArgumentError)
I've tried the connection
using above credentials with sqlplus with no problem at all.
Can anybody tell me what's causing this error?
Joined: Jul 02, 2008
Sep 25, 2013 03:51:06
Could you verify whether you are using the oracle instant client (
It is required as it contains the dlls which are referenced by the ruby application.
I agree. Here's the link:
subject: Problem connecting to Oracle
JSF and Third Party Components
Ruby on Rails question: yaml problem with scaffold generation
Database newbie question about logging in
Ruby 1.8 and MySql problem
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014