Thanks for a quick response. After installing oci8, it works now.

Thanks,
Luan

On Apr 11, 12:07 pm, Jeremy Evans <[email protected]> wrote:
> On Apr 11, 7:41 am, Luan <[email protected]> wrote:
>
>
>
> > Hi,
>
> > I am getting this error while connecting to oracle.
>
> > Here is my code:
>
> > require 'rubygems'
> > require 'sequel'
>
> > DB = Sequel.oracle('orcl', :user => 'test', :password => 'test', :host
> > => 'localhost', :port =>'1521');
> > ...
> > /usr/lib/ruby/gems/1.8/gems/sequel-2.12.0/lib/sequel/database.rb:
> > 105:in `adapter_class': Could not load oracle adapter:
> > (Sequel::AdapterNotFound)
> >   no such file to load -- oci8
> >         from /usr/lib/ruby/gems/1.8/gems/sequel-2.12.0/lib/sequel/
> > database.rb:138:in `connect'
> >         from /usr/lib/ruby/gems/1.8/gems/sequel-2.12.0/lib/sequel/
> > core.rb:98:in `connect'
> >         from /usr/lib/ruby/gems/1.8/gems/sequel-2.12.0/lib/sequel/
> > core.rb:201:in `adapter_method'
> >         from (eval):1:in `oracle'
> >         from o.rb:9
>
> > I think the connection code is correct. Am I missing something?
>
> Like the error message states, you don't have oci8 installed.  Try
> installing that first.
>
> Jeremy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to