[Mono-dev] my web page cann't access oracle.
Daniel Morgan
monodanmorg at yahoo.com
Tue Mar 7 09:09:31 EST 2006
System.Data.OracleClient uses OCI library. On Linux, this would be something like libclntsh.so
It may even have a version number in the shared library name, for example, libclntsh.so.10.0
You need to make sure this library can be found in your PATH. (or LD_LIBRARY_PATH). Basically, its however shared libraries are normally found on Linux (anyone feel free to jump in and correct me).
Make sure your ORACLE_HOME is set.
I do not have Linux in front of me right now to answer your question fully.
zhulijun <lijunzhu at 263.net> wrote:
My error message as follows:
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 <0x00049> System.Data.OracleClient.OracleConnectionPoolManager:CreateConnection (OracleConnectionInfo info) in <0x0003f> System.Data.OracleClient.OracleConnectionPool:CreateConnection () in <0x0010a> System.Data.OracleClient.OracleConnectionPool:GetConnection () in <0x000e3> System.Data.OracleClient.OracleConnection:Open () in (wrapper remoting-invoke-with-check)
System.Data.OracleClient.OracleConnection:Open () in <0x000e2> SiteView.ServerPage.ExecSql:Button1_Click (System.Object sender, System.EventArgs e)
my OS is Redhat Enterprise AS4
and database is 10201_database_linux32
Apache and mono information as follows
httpd-2.0.55.tar.gz
mono-1.1.13.2.tar.gz
mod_mono-1.1.13.tar.gz
xsp-1.1.13.tar.gz
==========================
263µç×ÓÓʼþ£­ÐÅÀµÓÊ×Ôרҵ_______________________________________________
Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list
---------------------------------
Yahoo! Mail
Bring photos to life! New PhotoMail makes sharing a breeze.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060307/98610a06/attachment.html
More information about the Mono-devel-list
mailing list