# ActiveRecord::AdapterNotFound - oci8 problems

**URL:** <https://www.ruby-forum.com/t/activerecord-adapternotfound-oci8-problems/188180>\
**Category:** Rails\
**Created:** [May 6, 2010, 10:28pm UTC](https://www.ruby-forum.com/t/activerecord-adapternotfound-oci8-problems/188180 "2010-05-06T22:28:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ybr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/df788c/32.png) [@Ybr](https://www.ruby-forum.com/u/Ybr)\
**Post date:** [May 6, 2010, 10:28pm UTC](https://www.ruby-forum.com/t/activerecord-adapternotfound-oci8-problems/188180/1 "2010-05-06T22:28:34Z")

</div>

I have resolved all the problems with OCI8Errors (you should see  
[http://rubyforge.org/forum/forum.php?thread\_id=47776&forum\_id=1078](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](http://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?

---

<div class="post-metadata">

**Author:** ![Ybr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/df788c/32.png) [@Ybr](https://www.ruby-forum.com/u/Ybr)\
**Post date:** [May 8, 2010, 2:11pm UTC](https://www.ruby-forum.com/t/activerecord-adapternotfound-oci8-problems/188180/2 "2010-05-08T14:11:56Z")

</div>

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 ruby-oci8 Ð¸ activerecord-oracle\_enhanced-  
adapter and reconfig database.yml.
