
Are there Oracle bindings for HDBC anywhere? The HDBC project page talks about Oracle backends but there isn't an Oracle-specific driver listed (I assume one can reach an Oracle backend through the ODBC interface?). I started writing Oracle bindings for HDBC based on the Takusen code. It was done mostly for playing than for anything else and certainly isn't production ready, but it is available in a darcs repo at http://thiagoarrais.com/repos/hdbc-oracle in case anyone is interested. This code isn't ready for prime time yet and I'm looking for some that *is*. Is there such a thing already? Cheers, Thiago Arrais -- Enjoy Chaos - http://blog.thiagoarrais.com Thoughts, ideas and useless ranting about software development and technology

On Thu, 30 Oct 2008, Thiago Arrais wrote:
Are there Oracle bindings for HDBC anywhere? The HDBC project page talks about Oracle backends but there isn't an Oracle-specific driver listed (I assume one can reach an Oracle backend through the ODBC interface?).
I started writing Oracle bindings for HDBC based on the Takusen code. It was done mostly for playing than for anything else and certainly isn't production ready, but it is available in a darcs repo at http://thiagoarrais.com/repos/hdbc-oracle in case anyone is interested.
I've also tried to access Oracle from Haskell a few months ago. I could connect from Takusen, HSQL/Oracle, but I had no success getting ODBC to run with the Oracle Instant Client, and thus could not use HDBC. Eventually I was told to use the latest version of the Instant Client (i.e. 11), but didn't try. http://www.haskell.org/pipermail/haskell-cafe/2008-June/044507.html

Thiago Arrais wrote:
Are there Oracle bindings for HDBC anywhere? The HDBC project page talks about Oracle backends but there isn't an Oracle-specific driver listed (I assume one can reach an Oracle backend through the ODBC interface?).
Yes, I was a bit confused by that, as well.
I started writing Oracle bindings for HDBC based on the Takusen code. It was done mostly for playing than for anything else and certainly isn't production ready, but it is available in a darcs repo at http://thiagoarrais.com/repos/hdbc-oracle in case anyone is interested.
This code isn't ready for prime time yet and I'm looking for some that *is*. Is there such a thing already?
Yes, HSQL supports Oracle natively, through OCI. hsql-oracle isn't on hackage, only in the repository. I don't know how Takusen's oci code looks, but I would suspect that porting HSQL Oracle code to HDBC could be simpler, because HDBC and HSQL are quite similar in their interfaces, unlike Takusen.

On Thu, Oct 30, 2008 at 11:53 AM, Daniil Elovkov
Yes, HSQL supports Oracle natively, through OCI. hsql-oracle isn't on hackage, only in the repository.
That's exactly what I was looking for, but for HDBC instead. Since OCI bindings for HDBC don't seem to exist, I guess I'll have to write my own instead.
I don't know how Takusen's oci code looks, but I would suspect that porting HSQL Oracle code to HDBC could be simpler, because HDBC and HSQL are quite similar in their interfaces, unlike Takusen.
Thanks for the tip. I really wasn't aware that HSQL already had OCI bindings. I'll take a look at the HSQL code, steal some ideas from it and hopefully make my little HDBC driver production ready some day. Cheers, Thiago Arrais -- Enjoy Chaos - http://blog.thiagoarrais.com Thoughts, ideas and useless ranting about software development and technology

On Thu, Oct 30, 2008 at 11:38:28AM -0300, Thiago Arrais wrote:
Are there Oracle bindings for HDBC anywhere? The HDBC project page talks about Oracle backends but there isn't an Oracle-specific driver listed (I assume one can reach an Oracle backend through the ODBC interface?).
That is the idea, and I believe some are doing it. If there is a problem connecting to Oracle via ODBC, that should be addressed at the ODBC layer. Once ODBC is working, HDBC should work fine. I have no Oracle databases under my mangement or available to me, so I unfortunately can't test. I would certainly happily reference anyone's native Oracle HDBC backend too, though! -- John

John,
On Thu, Oct 30, 2008 at 2:48 PM, John Goerzen
I would certainly happily reference anyone's native Oracle HDBC backend too, though!
You may want to reference mine, given that there aren't any others currently. Just be aware that it really isn't ready for mass consumption yet. Cheers, Thiago Arrais -- Enjoy Chaos - http://blog.thiagoarrais.com Thoughts, ideas and useless ranting about software development and technology

Hello Thiago, John. I've taken the Oracle HDBC driver at http://thiagoarrais.com/repos/hdbc-oracle modified it just a little to suite 6.10.4 and briefly looked if it works. It does, that's cool! Thanks Thiago! A question follows, maybe it's worth to mention it at the HDBC page and/or put it to Hackage? And another question: Thiago, John how do you think what is the appropriate place to put the function that sets prefetch row count? The thing is that (at least in my case) by default Oracle returns rows very slowly. Setting prefetch count speeds it up dramatically. It's not the case with MySQL, for example, but the functionality is never the less quite generic. For example, this method is part of JDBC api. Thiago Arrais wrote:
John,
On Thu, Oct 30, 2008 at 2:48 PM, John Goerzen
wrote: I would certainly happily reference anyone's native Oracle HDBC backend too, though!
You may want to reference mine, given that there aren't any others currently. Just be aware that it really isn't ready for mass consumption yet.
participants (4)
-
Daniil Elovkov
-
Henning Thielemann
-
John Goerzen
-
Thiago Arrais