[Mono-list] Unhandled Exception: System.DllNotFoundException: libclntsh.so
Bojan Rajkovic
severedcross at gmail.com
Mon Mar 21 00:01:01 EDT 2011
On Mar 20, 2011, at 11:06 PM, wildabdat wrote:
> hi, i'm new on mono develop, trying to make application to connect to oracle
> DB, i found basic program examples on
> http://www.mono-project.com/Oracle#Examples
> http://www.mono-project.com/Oracle#Examples , and when i run it get
> following error message
>
> Unhandled Exception: System.DllNotFoundException: libclntsh.so
> at (wrapper managed-to-native)
> System.Data.OracleClient.Oci.OciCalls/OciNativeCalls:OCIEnvCreate
> (intptr&,System.Data.OracleClient.Oci.OciEnvironmentMode,intptr,intptr,intptr,intptr,int,intptr)
> at System.Data.OracleClient.Oci.OciCalls.OCIEnvCreate (System.IntPtr&
> envhpp, OciEnvironmentMode mode, IntPtr ctxp, IntPtr malocfp, IntPtr
> ralocfp, IntPtr mfreep, Int32 xtramem_sz, IntPtr usrmempp) [0x00000] in :0
> at System.Data.OracleClient.Oci.OciEnvironmentHandle..ctor
> (OciEnvironmentMode mode) [0x00000] in :0
> at System.Data.OracleClient.Oci.OciGlue.CreateConnection
> (OracleConnectionInfo conInfo) [0x00000] in :0
> at System.Data.OracleClient.OracleConnectionPoolManager.CreateConnection
> (OracleConnectionInfo info) [0x00000] in :0
> at System.Data.OracleClient.OracleConnectionPool.CreateConnection ()
> [0x00000] in :0
> at System.Data.OracleClient.OracleConnectionPool.GetConnection ()
> [0x00000] in :0
> at System.Data.OracleClient.OracleConnection.Open () [0x00000] in :0
> at (wrapper remoting-invoke-with-check)
> System.Data.OracleClient.OracleConnection:Open ()
> at con.MainClass.Main (System.String[] args) [0x0000f] in
> /home/wildabdat/Projects/con/con/Main.cs:16
>
> here is my environment
>
> ubuntu maverick 10.10 64 bit
> Oracle 10g Express Edition (on the same machine with mono)
>
> can anyone solve this problem? because i dont wanna back to Windows just to
> develop .Net Application
>
> thanks...
>
> --
> @wildabdat
Set your LD_LIBRARY_PATH to point to the ./lib/ folder under $ORACLE_HOME, where libclntsh.so is located.
—Bojan
More information about the Mono-list
mailing list