I have resolved all the problems with OCI8Errors (you should see
http://rubyforge.org/forum/forum.php?thread_id=47776&forum_id=1078 for
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:
In Ruby DBI: Database Access ,
“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?