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

nzsaint chrisbrown76 at hotmail.com
Mon Oct 5 02:48:42 EDT 2009


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
conInfo) [0x00000] 
  at System.Data.OracleClient.OracleConnectionPoolManager.CreateConnection
(OracleConnectionInfo info) [0x00000] 
  at System.Data.OracleClient.OracleConnectionPool.CreateConnection ()
[0x00000] 
  at System.Data.OracleClient.OracleConnectionPool.GetConnection ()
[0x00000] 
  at System.Data.OracleClient.OracleConnection.Open () [0x00000] 
  at System.Data.Common.DbDataAdapter.Fill (System.Data.DataTable dataTable,
IDbCommand command, CommandBehavior behavior) [0x00000] 
  at System.Data.Common.DbDataAdapter.Fill (System.Data.DataTable dataTable)
[0x00000] 
  at (wrapper remoting-invoke-with-check)
System.Data.Common.DbDataAdapter:Fill (System.Data.DataTable)
  at
MonoTestService.MonoTest_XETableAdapters.GENERALTableAdapter.GetGeneralSettings
() [0x00000] 
  at MonoTestService.MonoTest.OnStart (System.String[] args) [0x00000] 

If I login as root and stop the service and restart it then it runs without
problems and the database is accessed successfully. I cant understand why it
runs successfully when I start it manually but won't do so at boot. Can
anyone help?

-- 
View this message in context: http://www.nabble.com/Connecting-to-Oracle-database-from-service-at-boot-tp25745892p25745892.html
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list