From: Dheeraj Gambhir Date: 2009-07-22T14:40:23+09:00 Subject: Re: OCIError: OCI Library Initialization Error Hi, i am using: Ruby 1.8.6 Oracle 9i Windows XP and i am done with "ruby ruby-oci8-0[1].1.13-mswin.rb" But when i run this code to check whether i am able to connect to the Oracle database server or not: ruby -r oci8 -e "OCI8.new('mlbread', 'mlbread', 'MLBD').exec('select * from bam_order.ec_invoice where order-id>2316027') do |r| puts r.join (' | '); end" Here mlbread=username, mlbread=password and MLBD=schema name It gives me the following error: C:\ruby>ruby -r oci8 -e "OCI8.new('mlbread', 'mlbread', 'MLBD').exec ('select * f rom bam_order.ec_invoice where order-id>2316027') do |r| puts r.join(' | '); end " c:/ruby/lib/ruby/site_ruby/1.8/oci8.rb:52:in `init': OCI Library Initialization Error (OCIError) from c:/ruby/lib/ruby/site_ruby/1.8/oci8.rb:52 Plase help me and let me know where i am wrong. Regards D G -- Posted via http://www.ruby-forum.com/.