# More trouble connecting Rails to Oracle

**URL:** <https://www.ruby-forum.com/t/more-trouble-connecting-rails-to-oracle/143379>\
**Category:** Rails\
**Created:** [July 17, 2008, 9:36pm UTC](https://www.ruby-forum.com/t/more-trouble-connecting-rails-to-oracle/143379 "2008-07-17T21:36:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![christina](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/b9bd4f/32.png) [@christina](https://www.ruby-forum.com/u/christina)\
**Post date:** [July 17, 2008, 9:36pm UTC](https://www.ruby-forum.com/t/more-trouble-connecting-rails-to-oracle/143379/1 "2008-07-17T21:36:27Z")

</div>

Hi,

I have an application under development that I have been working on with  
a PC. I have just checked out the code on a Mac, and I cannot get my  
server to start. I am using Rails 2.0.2. Below is the error:

wireless:events me$ ruby script/server  
=\> Booting Mongrel (use ‘script/server webrick’ to force WEBrick)  
=\> Rails application starting on [http://0.0.0.0:3000](http://0.0.0.0:3000)  
=\> Call with -d to detach  
=\> Ctrl-C to shutdown server  
\*\* Starting Mongrel listening at 0.0.0.0:3000  
\*\* Starting Rails with development environment…  
Exiting  
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/yaml.rb:133:in  
`load': syntax error on line 1, col 9: ` adapter: oracle’  
(ArgumentError)  
from  
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/yaml.rb:133:in  
`load' from /Library/Ruby/Gems/1.8/gems/rails-2.0.2/lib/initializer.rb:506:in `database\_configuration’  
from /Library/Ruby/Gems/1.8/gems/rails-2.0.2/lib/initializer.rb:233:in  
`initialize_database' from /Library/Ruby/Gems/1.8/gems/rails-2.0.2/lib/initializer.rb:94:in `process’  
from /Library/Ruby/Gems/1.8/gems/rails-2.0.2/lib/initializer.rb:49:in  
`send' from /Library/Ruby/Gems/1.8/gems/rails-2.0.2/lib/initializer.rb:49:in `run’  
from /htdocs/events/config/environment.rb:13  
from /Library/Ruby/Site/1.8/rubygems/custom\_require.rb:27:in  
`gem_original_require' ... 25 levels... from /Library/Ruby/Gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39 from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in `gem\_original\_require’  
from /Library/Ruby/Site/1.8/rubygems/custom\_require.rb:27:in `require’  
from script/server:3

I have the activerecord-oracle-adapter (1.0.0.9250) installed, and below  
is the pertinent code from my database.yml file (with the appropriate  
db, username and password per my working PC code):

development:  
adapter: oracle  
database: mydatabase  
username: myusername  
password: mypassword

Any ideas what the problem could be?

---

<div class="post-metadata">

**Author:** ![christina](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/b9bd4f/32.png) [@christina](https://www.ruby-forum.com/u/christina)\
**Post date:** [August 15, 2008, 6:56pm UTC](https://www.ruby-forum.com/t/more-trouble-connecting-rails-to-oracle/143379/2 "2008-08-15T18:56:51Z")

</div>

[http://www.carakan.com/2008/01/14/conectarse-de-rails-202-a-oracle/](http://www.carakan.com/2008/01/14/conectarse-de-rails-202-a-oracle/)

este me sirvio
