Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Connecting to Oracle error
EZ
2/16/2007 2:35:00 AM
Hi,
I just downloaded Ruby and Watir as well and my local XE Oracle database
and trying a basic connection to Oracle database and I am getting this
error: "custom_require.rb:27:in `gem_original_require': no such file to
load -- oci8 (LoadError)."
Here is my code:
require 'oci8'
connection = OCI8.new('ops$etfiop', 'etfiop', 'XE')
connection.exec("select * from dual") do |row|
puts 'dummy: ' + row[0] # outputs "dummy: X"
end
connection.logoff
Any ideas???
Thanks,
EZ
--
Posted via
http://www.ruby-...
.
1 Answer
Alin Popa
2/16/2007 6:49:00 AM
0
EZ wrote:
> Hi,
>
> I just downloaded Ruby and Watir as well and my local XE Oracle database
> and trying a basic connection to Oracle database and I am getting this
> error: "custom_require.rb:27:in `gem_original_require': no such file to
> load -- oci8 (LoadError)."
>
> Here is my code:
>
> require 'oci8'
>
> connection = OCI8.new('ops$etfiop', 'etfiop', 'XE')
> connection.exec("select * from dual") do |row|
> puts 'dummy: ' + row[0] # outputs "dummy: X"
> end
> connection.logoff
>
> Any ideas???
>
> Thanks,
> EZ
Hi EZ,
It seems that you don't have oci8 library installed.
In order to do that, go to:
http://ruby-oci8.rubyfor...
and
follow the steps that are described there.
Best regards,
Alin
Seems that you don't have oci8 library installed.
In order to
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Connecting to Oracle error
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password