[Mono-dev] Oracle + clntsh
Daniel Morgan
monodanmorg at yahoo.com
Thu Dec 15 20:40:47 EST 2005
Make sure the OCI shared library libclntsh.so
can be found in your PATH.
Make sure you have your ORACLE_HOME set up correctly too.
You can map it to libclntsh.so
Arnhoffer Károly <karnhoffer at ecron.hu> wrote: Hi,
I try to run the first example at http://www.mono-project.com/Oracle and I get the following error:
Unhandled Exception: System.DllNotFoundException: clntsh
in (wrapper managed-to-native) OciNativeCalls:OCIEnvCreate (intptr&, System.Data.OracleClient.Oci.OciEnvironmentMode,intptr,intptr,intptr,
intptr,int,intptr)
in <0x0001f> System.Data.OracleClient.Oci.OciCalls:OCIEnvCreate
(System.IntPtr envhpp, OciEnvironmentMode mode, IntPtr ctxp, IntPtr
malocfp, IntPtr ralocfp, IntPtr mfreep, Int32 xtramem_sz, IntPtr
usrmempp)
in <0x0003c> System.Data.OracleClient.Oci.OciEnvironmentHandle:.ctor
(OciEnvironmentMode mode)
in <0x0006b> System.Data.OracleClient.Oci.OciGlue:CreateConnection
(OracleConnectionInfo conInfo)
in <0x00042> System.Data.OracleClient.OracleConnectionPoolManager:
CreateConnection (OracleConnectionInfo info)
in <0x00038> System.Data.OracleClient.OracleConnectionPool:
CreateConnection ()
in <0x0010a> System.Data.OracleClient.OracleConnectionPool:
GetConnection ()
in <0x000ce> System.Data.OracleClient.OracleConnection:Open () in (wrapper remoting-invoke-with-check) System.Data.OracleClient. OracleConnection:Open () in <0x00061> Test:Main (System.String[] args)
I have examinded my linux (SuSE 9.2 with Oracle 9i, Mono 1.1.10) and found that there is a line in /etc/mono/config saying:
.
What should this be? I tried /opt/oracle/920/lib/libclntsh.so.9.0 instead of clntsh here but I got errors again:
Unhandled Exception: System.Data.OracleClient.OracleException: Could
not allocate the Oracle environment.
in <0x00291> System.Data.OracleClient.Oci.OciGlue:CreateConnection
(OracleConnectionInfo conInfo)
in <0x00042> System.Data.OracleClient.OracleConnectionPoolManager:
CreateConnection (OracleConnectionInfo info)
in <0x00038> System.Data.OracleClient.OracleConnectionPool:
CreateConnection ()
in <0x0010a> System.Data.OracleClient.OracleConnectionPool:
GetConnection ()
in <0x000ce> System.Data.OracleClient.OracleConnection:Open () in (wrapper remoting-invoke-with-check) System.Data.OracleClient. OracleConnection:Open () in <0x00061> Test:Main (System.String[] args)
Thanks:
Károly
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list
---------------------------------
Yahoo! Shopping
Find Great Deals on Holiday Gifts at Yahoo! Shopping
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20051215/7ed8fa05/attachment.html
More information about the Mono-devel-list
mailing list