The solution is:

[QUOTE="happs74"]I use rails & oracle on xp. To get it all working I
did

Gem install ruby-oci8
Gem install activerecord-oracle_enhanced-adapter
add  config.gem "activerecord-oracle_enhanced-adapter", :lib =>
"active_record/connection_adapters/oracle_enhanced_adapter" to
environment.rb
set your adapter in database.yml to be oracle_enhanced and see how you
get on.[/QUOTE]
I have installed [I]ruby-oci8[/I] и [I]activerecord-oracle_enhanced-
adapter[/I] and reconfig [I]database.yml[/I].

On May 6, 11:25 pm, Ybr <[email protected]> wrote:
> I have resolved all the problems with OCI8Errors (you should 
> seehttp://rubyforge.org/forum/forum.php?thread_id=47776&forum_id=1078for
> more information). Now there is connecting to my DBMS without
> errors :)))
>
> OS: Win_XP_home
> DBMS: Oracle XE 10g
>
> Well. When I connect to DBMS by command line, it’s ok. When I am
> starting a webserver in rails application (in NetBeans), it isn’t ok.
> I see an error:
>
> ==========================================
> => Booting WEBrick...
> C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.3/lib/active_record/
> connection_adapters/abstract/connection_specification.rb:80:in
> `establish_connection': database configuration specifies nonexistent
> oci8 adapter (ActiveRecord::AdapterNotFound)
> from C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.3/lib/
> active_record/connection_adapters/abstract/connection_specification.rb:
> 58:in `establish_connection'
> from C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.3/lib/
> active_record/connection_adapters/abstract/connection_specification.rb:
> 53:in `establish_connection'
> from C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.3/lib/initializer.rb:
> 392:in `initialize_database'
> from C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.3/lib/initializer.rb:
> 139:in `process'
> from C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.3/lib/initializer.rb:
> 112:in `send'
> from C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.3/lib/initializer.rb:
> 112:in `run'
> from C:/Documents and Settings/helios/Мои документы/NetBeansProjects/
> TempApp/config/environment.rb:13
> from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require'
> ... 10 levels...
> from C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.3/lib/commands/server.rb:
> 49
> from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require'
> from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> `require'
> from script/server:3
> ==========================================
>
> I have googled this error and found 1 good solution:
>
> Inhttp://www.troubleshooters.com/codecorn/ruby/database/index.htm,
> "Round up the usual suspects".
> According to this advise, I have installed Ruby-DBI (oci8 installed
> ages ago)
> But the error above doesn’t disappear.
>
> Do you know how to resolve this problem?
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Ruby on Rails: 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 
> athttp://groups.google.com/group/rubyonrails-talk?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: 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/rubyonrails-talk?hl=en.

Reply via email to