Quick start to acessing Oracle`

R

Ross Parker

I am looking at replacing Perl with Ruby. I like to use Perl for a lot of
db stuff and am most interested in get Ruby to talk to an Oracle database.
I have been poking around on the net looking for a quick start guide to
installing a Ruby lib for Oracle and have come up short.

Can anyone direct me to a quick start resource for accessing Oracle with
Ruby?

Thanks
 
J

Jason Sweat

I am looking at replacing Perl with Ruby. I like to use Perl for a lot of
db stuff and am most interested in get Ruby to talk to an Oracle database.
I have been poking around on the net looking for a quick start guide to
installing a Ruby lib for Oracle and have come up short.

Can anyone direct me to a quick start resource for accessing Oracle with
Ruby?

Hi Ross,

I have used this:
http://www.jiubao.org/ruby-oci8/
sucessfully to talk to Oracle 8.1.7 and 7.3.4 databases.

Regards,
Jason
http://blog.casey-sweat.us/
 
D

Dan Janowski

A word of caution, the OCI8 package is more capable than the older one.
It can be used direct or with its DBI. Among other things it handles
async calls to Oracle which coordinate with Ruby's threads very well.
Dan
 
J

Jason Sweat

Does anybody know how to make Ruby talk to Oracle on HPUX?

My Linux compiled Ruby talks to Oracle running on HPUX fine, but I
know that is not the question you are asking.

I have not yet deployed any application running Ruby, so I have not
yet tortured our Unix admin into compiling Ruby yet :)

Regards,
Jason
http://blog.casey-sweat.us/
 
P

Pit Capitain

Dan said:
A word of caution, the OCI8 package is more capable than the older one.
It can be used direct or with its DBI. Among other things it handles
async calls to Oracle which coordinate with Ruby's threads very well.

This interests me. What do you exactly mean by "async" calls?

Regards,
Pit
 
D

Dan Janowski

This interests me. What do you exactly mean by "async" calls?

Regards,
Pit

The OCI8 library can exec to Oracle in polling mode, i.e. the OCI call
does not block in the oracle layer. The ruby interface uses polling to
allow other ruby green threads to run. The only restriction is one
polled exec per connection to the database. For multiple query threads,
you must open a connection session for each query.

Dan
 
P

Pit Capitain

Dan said:
The OCI8 library can exec to Oracle in polling mode, i.e. the OCI call
does not block in the oracle layer. The ruby interface uses polling to
allow other ruby green threads to run. The only restriction is one
polled exec per connection to the database. For multiple query threads,
you must open a connection session for each query.

Thanks Dan, I had never heard of the polling mode. When reading about it
in the Oracle docs I also found a publish / subscribe mechanism, where
the client can be asynchronously notified of server events. Interesting
stuff! I wish it would be available in JDBC too, but it doesn't seem so.

Regards,
Pit
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,170
Messages
2,570,925
Members
47,464
Latest member
Bobbylenly

Latest Threads

Top