-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: Oracle connection problem
PostPosted: Tue Feb 21, 2006 10:01 am 
Beginner
Beginner

Joined: Tue Jan 17, 2006 12:55 pm
Posts: 49
All my unit tests have been running fine for ages until today when I suddenly started to get the following error message when using the NHibernate.Driver.OracleClientDriver:

Quote:
NHibernate.ADOException: cannot open connection ---> NHibernate.ADOException: Could not create connection from Driver ---> System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.


Things get even worse when I change to the NHibernate.Driver.OracleDataClientDriver

I then get the even more obtuse error message:

Quote:
NHibernate.Util.ADOExceptionReporter - NHibernate.ADOException: cannot open connection ---> NHibernate.ADOException: Could not create connection from Driver ---> Oracle.DataAccess.Client.OracleException Data provider internal error(-3000)


I can't think what I've changed on the machine for this to happen, but no major changes or installations.

I have rebooted several times. I get the same errors when running from NUnit itself.

Has anyone had this and managed to solve it? Google searches reveal a long list of unanswered posts!

FYI config is as follows:

Code:
  <nhibernate>
    <add key="hibernate.connection.provider" value="NHibernate.Connection.DriverConnectionProvider" />
    <add key="hibernate.dialect" value="NHibernate.Dialect.Oracle9Dialect" />
    <add key="hibernate.connection.driver_class" value="NHibernate.Driver.OracleDataClientDriver" />
    <add key="hibernate.connection.connection_string" value="Data Source=LON_PTL3.WORLD;User ID=dmg_test;Password=dmg_test;Pooling=false" />
  </nhibernate>


Top
 Profile  
 
 Post subject: Same Problem - More Detailed NHibernate/Ora Docs Needed!
PostPosted: Thu Jul 20, 2006 2:47 pm 
Newbie

Joined: Thu Jul 20, 2006 2:36 pm
Posts: 2
I am having the very same issue: "Could not create the driver from NHibernate.Driver.OracleDataClientDriver." Anyone have help or ideas for this issue?

Also, why is there little documentation/examples for Oracle and NHibernate? I found a page on the Hibernate site pertaining to connection strings dialect settings for Nhibernate for and every supported database except for Oracle. There was some text there about Oracle, but no help like the others. >:(~

Is there any clear documentation about .NET based deployment configurations with NHibernate? All they mention in the quick start is using IIS and Squeel--er I mean--SQL Server 2K!

Thanks in advance!

-dw


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 20, 2006 3:31 pm 
Newbie

Joined: Fri Dec 09, 2005 2:22 pm
Posts: 16
Hi,

here is what I use:

<nhibernate>
<add key="hibernate.connection.provider" value="NHibernate.Connection.DriverConnectionProvider" />
<add key="hibernate.connection.driver_class" value="NHibernate.Driver.OracleClientDriver"/>
<add key="hibernate.connection.connection_string" value="Data Source=(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = ***)(PORT = 1539)))(CONNECT_DATA = (SID = ****)));User Id=****;Password=****;" />
<add key="hibernate.dialect" value="NHibernate.Dialect.Oracle9Dialect"/>
<add key="hibernate.show_sql" value="true"/>
<add key="hibernate.query.substitutions" value="true=1, false=0"/>
<add key="hibernate.cache.use_query_cache" value="true"/>
</nhibernate>

the oracle driver is installed on the machine


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 20, 2006 3:57 pm 
Newbie

Joined: Thu Jul 20, 2006 2:36 pm
Posts: 2
Thanks for the reply, I sincerely appreciate it!

Does this work for 10g? I noticed that you have Oracle9 as the dialect.

Thanks!
dw


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 20, 2006 4:03 pm 
Newbie

Joined: Fri Dec 09, 2005 2:22 pm
Posts: 16
yes, but you wont profit from the new features of 10g.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.