Creating the test database
You need Oracle database (version 10.2 or later) with SYS and SYSTEM use access.
If you are on a Mac OS X 10.6 then use these instructions blog.rayapps.com/2009/09/14/how-to-install-oracle-database-10g-on-mac-os-x-snow-leopard to install local Oracle DB 10.2.0.4. Other option is to use Linux VM and install Oracle DB on it.
If you are on Linux (or will use Linux virtual machine) and need Oracle DB just for running tests then Oracle DB XE edition is enough. See www.oracle.com/technetwork/database/express-edition/downloads/index.html for download links and instructions.
If you are getting ORA-12520 errors when running tests then it means that Oracle cannot create enough processes to handle many connections (as during tests many connections are created and destroyed). In this case you need to log in as SYSTEM user and execute e.g.
alter system set processes=200 scope=spfile;
to increase process limit and then restart the database (this will be necessary if Oracle XE will be used as default processes limit is 40).
It is recommended to use RVM (rvm.beginrescueend.com) to run tests with different Ruby implementations. oracle_enhanced is mainly tested with MRI 1.8.7 (all Rails versions) and 1.9.2 (Rails 3) and JRuby 1.5.
Create Oracle database schema for test purposes. Review spec/spec_helper.rb to see default schema/user names and database names (use environment variables to override defaults)
If you use RVM then switch to corresponding Ruby (1.8.7, 1.9.2 or JRuby) and it is recommended to create isolated gemset for test purposes (e.g. rvm create gemset oracle_enhanced)
Install bundler with
gem install bundler
Set RAILS_GEM_VERSION to Rails version that you would like to use in oracle_enhanced tests, e.g.
Install necessary gems with
Run tests with