[Mono-list] Connecting to Oracle database from service at boot

Robert Jordan robertj at gmx.net
Mon Oct 5 09:34:00 EDT 2009


nzsaint wrote:
> I have a windows service running using mono-service on openSUSE 11.1. The
> service attempts to start using the init script I have configured ok but
> then generates the following error during the first attempt to access an
> Oracle XE (10g) database. 
> 
> Could not allocate the Oracle environment.   at
> System.Data.OracleClient.Oci.OciGlue.CreateConnection (OracleConnectionInfo

Your init script is laking the necessary Oracle environment
variables.

Unfortunately I don't know where SUSE is storing these
variables (maybe in /etc/profile.d/oracle?), but even
if you don't find the script, you could simply re-export
all ORA and LD_LIBRARY_PATH variables you can find when
you open a shell and invoke "printenv|grep ORA".

Robert



More information about the Mono-list mailing list