firstruby

Master ruby with us

Archive for June, 2009

Configuration for Oracle with Ruby On Rails on Windows

Posted by firstruby on June 26, 2009

To configure the Oracle with Ruby on Rails (RoR) applications, we need to do following setting,

Download Oracle 10g from http://download.oracle.com/otn/nt/oracle10g/xe/10201/OracleXEUniv.exe (to download Oracle setup, you need to create an account)

Install following gems,

gem install activerecord-oracle_enhanced-adapter
gem install ruby-oci8

Then modify the /config/database.yml as following for the current environment,


adapter: oracle_enhanced
host: localhost
username: db_user_name
password: db_password
encoding: utf8

Advertisements

Posted in firstruby, Useful Links | Tagged: , , | Leave a Comment »