Re: [Mono-list] Problems with System.Data.OracleClient under mod_mono

2004-12-17 Thread Trygve Falch
On Fri, 2004-12-17 at 19:26 +0100, Trygve Falch wrote:

 I have checked the environment variables for mod_mono, I have checked
 that the dll-map in /etc/mono/config is correct without any success.

Ok, I'm replying to my self now. I'm sorry, but after some 'try' and
'catch'-magic around the dbcon.Open() it is indeed reporting that I'm
getting a System.DllNotFoundException: oci. 

I'm very confused now, because this works perfectly from the commandline
(with the same environment variables as I have for the apache instance).

Are there any OTHER places that mono looks for the dllmap-information
except from /etc/mono/config? I mean, mod-mono-server is executed by
mono so it should read it. 

I'm running 1.0.5 of mono downloaded from go-mono.org.

My brain hurts.

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Problems with System.Data.OracleClient

2004-12-10 Thread Alois Bělaška
Oetjen, Michael wrote:
Hello,
please could you tell me how System.Data.OracleClient works on Linux 
Here my environment : 

OS : SuSE 9.0 with Mono 1.04 and Oracle Client 9.2.0.1 

For testing I used the testprogram down on /www.go-mono.com/oracle.html 
with modification for connecting my oracle database 
Compilation was succesfull 

When I run -mono test.exe- I' ve got this message 

Unhandled Exception: System.DllNotFoundException: oci 
in 0x00053 (wrapper managed-to-native) OciNativeCalls:OCIEnvCreate
(intptr,System.Data.OracleClient.Oci.OciEnvironmentMode,intptr,intptr,i
ntptr,intptr,int,intptr)
in 0x00020 System.Data.OracleClient.Oci.OciCalls:OCIEnvCreate
(intptr,System.Data.OracleClient.Oci.OciEnvironmentMode,intptr,intptr,i
ntptr,intptr,int,intptr)
in 0x0005d System.Data.OracleClient.Oci.OciEnvironmentHandle:.ctor
(System.Data.OracleClient.Oci.OciEnvironmentMode) 
in 0x0003c System.Data.OracleClient.Oci.OciGlue:CreateConnection
(System.Data.OracleClient.OracleConnectionInfo) 
in 0x0002b System.Data.OracleClient.OracleConnection:Open () 
in 0x0004f (wrapper remoting-invoke-with-check)
System.Data.OracleClient.OracleConnection:Open () 
in 0x0006a Test:Main (string[]) 

Then I tried it with 

OS : SuSE 9.1 with Mono 1.04 and Oracle Client from Version 10g 

... same problems will appear :-( 

what's wrong ? ... does a file like oci.dll on linux exist ? 
please help me 

best regards 
Mike 

Hi,
	problem is your program cannot find oracle libraries, so you need to 
set up ORACLE environment to run your program correctly.

Example:
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=$ORACLE_BASE/product/9.2.0.1.0
export PATH=$ORACLE_HOME/bin:$PATH
export ORACLE_OWNER=oracle
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/opt/oracle/product/9.2.0.1.0/lib
export 
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/network/jlib

Lojza
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


RE: [Mono-list] Problems with System.Data.OracleClient

2004-12-10 Thread Jörg Rosenkranz
Hello Michael,

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Oetjen, Michael
 
 When I run -mono test.exe- I' ve got this message 
 
 Unhandled Exception: System.DllNotFoundException: oci 
 in 0x00053 (wrapper managed-to-native) OciNativeCalls:OCIEnvCreate
 ...
 what's wrong ? ... does a file like oci.dll on linux exist ? 

oci.dll is mapped to libclntsh.so under Linux (see 
$MONO_PATH/etc/mono/config). This lib has to be in the path.

Joerg.
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list