Tech and travel

Using Oracle with Ruby on Rails

2007-03-14

If you want to use the Ruby Oracle OCI driver with Ruby on Rails, you might run into problems with the configuration. In the database.yml file, the following should be used to specify the host :

host: localhost/mydatabase

The mydatabase part is the the name of your database. For the adapter ‘oci’ should be specified. The database, username and password fields should be filled in as usual.

Thanks to Duane’s Brain for pointing that out.

Copyright (c) 2024 Michel Hollands