[MonoDevelop] Mono 3.6.0 Exception: libclntsh.so at (wrapper managed-to-native) System.Data.OracleClient.Oci.OciCalls/OciNativeCalls:OCIEnvCreate
Hari
phariparam at gmail.com
Fri Aug 29 15:41:04 UTC 2014
I have resolved the issue by creating a sysmbolic to the file :
*libclntsh.so*
ln -s /opt/instantclient_11_2/libclntsh.so.11.1
'/usr/local/lib/mono/gac/System.Data.OracleClient/2.0.0.0__b77a5c561934e089/libclntsh.so
Thanks
On Fri, Aug 29, 2014 at 9:38 AM, Hari <phariparam at gmail.com> wrote:
> Hello MonoDevelopers,
>
>
>
>
>
> I have developed Mono application(64 bit) using Monodevelop 4.2 which
> works fine in my Linux development machine. Now I am trying to run this
> application in other Linux machines.
>
>
>
> I am getting the following exception while connecting to the Oracle 11g
> database using Oracle Client Libraries:
>
>
>
> *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
> <filename unknown>:0
>
> at System.Data.OracleClient.Oci.OciEnvironmentHandle..ctor
> (OciEnvironmentMode mode) [0x00000] in <filename unknown>:0
>
> at System.Data.OracleClient.Oci.OciGlue.CreateConnection
> (OracleConnectionInfo conInfo) [0x00000] in <filename unknown>:0
>
> at
> System.Data.OracleClient.OracleConnectionPoolManager.CreateConnection
> (OracleConnectionInfo info) [0x00000] in <filename unknown>:0
>
> at System.Data.OracleClient.OracleConnectionPool.CreateConnection ()
> [0x00000] in <filename unknown>:0
>
> at System.Data.OracleClient.OracleConnectionPool.GetConnection ()
> [0x00000] in <filename unknown>:0
>
> at System.Data.OracleClient.OracleConnection.Open () [0x00000] in
> <filename unknown>:0
>
>
>
>
>
> The Oracle Client Library (64 bit) is installed and configured:
>
>
>
> echo /opt/ocilib/ >/etc/ld.so.conf.d/ocilib.conf
>
>
>
> I enabled the debug in mono and run the application as ex: *MONO_LOG_LEVEL=debug
> mono MyApp.exe*
>
> The debug logs displayed the following errors: I don't know why mono is
> trying to load the library from
> '/usr/local/lib/mono/gac/System.Data.OracleClient/2.0.0.0__b77a5c561934e089/libclntsh.so
>
>
>
> Mono: DllImport attempting to load: 'libclntsh.so'.
>
> Mono: DllImport error loading library
> '/usr/local/lib/mono/gac/System.Data.OracleClient/2.0.0.0__b77a5c561934e089/libclntsh.so': '/usr/local/lib/mono/gac/System.Data.OracleClient/2.0.0.0__b77a5c561934e089/libclntsh.so:
> cannot open shared object file: No such file or directory'.
>
> Mono: DllImport error loading library
> '/usr/local/lib/mono/gac/System.Data.OracleClient/2.0.0.0__b77a5c561934e089/libclntsh.so':
> *'/usr/local/lib/mono/gac/System.Data.OracleClient/2.0.0.0__b77a5c561934e089/libclntsh.so:
> cannot open shared object file: No such file or directory'.*
>
> Mono: DllImport error loading library 'libclntsh.so': 'libclntsh.so:
> cannot open shared object file: No such file or directory'.
>
> Mono: DllImport error loading library 'libclntsh.so': 'libclntsh.so:
> cannot open shared object file: No such file or directory'.
>
> Mono: DllImport error loading library 'libclntsh.so': 'libclntsh.so:
> cannot open shared object file: No such file or directory'.
>
> Mono: DllImport unable to load library 'libclntsh.so: cannot open shared
> object file: No such file or directory'.
>
>
>
> Thanks in advance for your help.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodevelop-list/attachments/20140829/efe3f62e/attachment.html>
More information about the Monodevelop-list
mailing list