views:

306

answers:

2
+1  Q: 

Haskell & Oracle

I reviewed different means for connecting to oracle db from Haskell. I found one, ODBC. Ideally, I wish to use an oracle client to connect. Do you know any other way?

Thank you.

+2  A: 

Takusen provides direct access to Oracle DBs, however, the ODBC-enabled libraries, such as HDBC may be easier to use.

Look on Hackage for more options.

Don Stewart
i installed Takusen. But the Oracle modules i did not find
Anton
I think you have to compile it with a -foracle or some thing like it flag.
Don Stewart
+2  A: 

I have written an Oracle driver for HDBC largely inspired by Takusen and HSQL. It uses Oracle's OCI library for interfacing with the database.

I consider it experimental for now. But if you want to try it, you can find a darcs repo for it at http://thiagoarrais.com/repos/hdbc-oracle/.

Thiago Arrais
Have you used this on linux, or only on windows? I'm playing with it now, and having some trouble getting everything to link...
sclv
On linux, the "Extra-Libraries" line of the .cabal file should list `clntsh` rather than `oci`. By the way, thanks for the lib!
sclv