Viktor Zacek <usenet2009 / zacek.de> wrote:

> Took a quick search... take a look at the following link:
> http://www.wit-eye.nl/weblog/2006/01/06/starting-with-ruby-and-oracle/

Prerequisites:
- have clean ruby 1.8.6 installation
- have running oracle client

download:
ruby-oci8-1.0.6-mswin32.rb from http://rubyforge.org/project/ruby-oci8/

install with:
ruby ruby-oci8-1.0.6-mswin32.rb
Accept question with "Yes"

now use the following ruby-script:
require 'oci8'

begin
  conn = OCI8.new("system","manager","db")
  conn.exec('select host_name, instance_name from v$instance') do |r|
    puts r
  end
  conn.logoff
end


Best regards,
Viktor