Use whatever the shared library filename of your IBM
DB2 call level interface library.  Do you even have
the IBM DB2 client software installed?

If you do not, Download the DB2 Driver for ODBC and
CLI.

http://www-306.ibm.com/software/data/db2/udb/db2express/download.html

Mono's ODBC data provider is found in the System.Data
assembly and namespace System.Data.Odbc.

Read here for more info:
http://www.mono-project.com/ODBC

See if you have unixODBC or iODBC installed.  If not,
you can download unixODBC from unixodbc.org.

http://www.unixodbc.com/doc/db2.html

--- Jesse Sightler <[EMAIL PROTECTED]> wrote:

> Actually, I don't see any db2_xx.so files in my db2
> installation at all.
> 
> Anyway, is there any documentation for going the
> ODBC route?
> 
> Thanks,
> Jess
> 
> 
> On 9/2/06, Daniel Morgan <[EMAIL PROTECTED]>
> wrote:
> > Take a look at you mono_prefix/etc/mono/config
> file.
> >
> > The filename is just config.
> >
> > Look for a dllmap entry.
> > Change the target to whatever shared library you
> have.
> >
> > If there is no entry there add it.
> > An example:
> >
> > <dllmap dll="db2cli" target="db2_36.so"/>
> >
> > Or.
> >
> > <dllmap dll="db2_36" target="db2_90.so"/>
> >
> > Or.
> >
> > <dllmap dll="db2_36.dll" target="db2_90.so"/>
> >
> > dll is the library it is looking for or whatever
> it is
> > defined in the DllImport attribute.
> > target is the library filename to map the dll to.
> >
> > By the way, the DB2 provider is unmaintained. 
> Unless,
> > you care to provide patches.
> > So, I recommend using the ODBC provider instead.
> >
> >
> > --- Jesse Sightler <[EMAIL PROTECTED]>
> wrote:
> >
> > > Hi All,
> > >
> > > I just tried running a test against DB2 from
> Mono
> > > using the
> > > IBM.Data.DB2 provider in Mono, and received the
> > > following error:
> > >
> > > Unhandled Exception:
> System.DllNotFoundException:
> > > db2_36
> > >
> > > I am assuming this is because I do not have the
> > > db2_36.so library.
> > > What is interesting, though, is that the DB2 V9
> > > ExpressC installation
> > > that I am trying to run this against also does
> not
> > > seem to have this
> > > library (or any other db2_xx.so libs).
> > >
> > > Is there a version of Mono that will work with
> DB2
> > > 9?  Or is there
> > > some other workaround available?
> > >
> > > I saw the page at
> > > http://www.mono-project.com/IBM_DB2 but it is
> very
> > > light on details (version numbers).
> > >
> > > Thanks,
> > > Jess
> > > _______________________________________________
> > > Mono-list maillist  - 
> [email protected]
> > >
> http://lists.ximian.com/mailman/listinfo/mono-list
> > >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> >
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to