-->
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.  [ 9 posts ] 
Author Message
 Post subject: NHibernate Oracle problem
PostPosted: Wed Feb 15, 2006 7:03 am 
Beginner
Beginner

Joined: Tue Jan 17, 2006 12:55 pm
Posts: 49
I am using NHibernate. On all our developer machines, all the unit tests run fine, but on our test server, none of the tests run.

In a nutshell, I always get the following error:

---> System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation. ----> System.DllNotFoundException : Unable to load DLL 'OraOps10.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
NHibernate.ADOException : Could not execute query ----> System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation. ----> System.DllNotFoundException : Unable to load DLL 'OraOps10.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

I have tried with both the OracleClientDriver and OracleClientDataDriver.

I know this is more of an Oracle question, but I think my problem may be related to how NHibernate uses ADO.NET?

I have tried the following, as per all the (minimal) documentation I can find:

Setting Read and Execute access to the account running the tests.
Setting the ORACLE_HOME environment variable.

The funny thing is that it works fine when I run the tests manually from the NUnitGUI.

FYI: The unit tests are being run from NAnt as part of a CruiseControl build.

Does anyone else have any suggestions as to how to start to resolve this one?

Thanks in advance, (hopefully!)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 15, 2006 8:41 am 
Senior
Senior

Joined: Sat May 14, 2005 8:40 am
Posts: 130
You might try to reboot the test server. I've encountered this issue a few times in the past and it drove me nuts. All permissions were set right, but still the error. Finally, after a reboot everything went smoothly. Don't ask me why, but it did help...

_________________
Cuyahoga


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 15, 2006 6:11 pm 
Beginner
Beginner

Joined: Tue Jan 17, 2006 12:55 pm
Posts: 49
Thanks.. that was one of the other things I've already tried!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 21, 2006 7:40 am 
Beginner
Beginner

Joined: Mon Jan 09, 2006 8:02 am
Posts: 22
Try copying oraops to the bin directory manually. else register the same with GAC. That should work...


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 21, 2006 12:55 pm 
Beginner
Beginner

Joined: Tue Jan 17, 2006 12:55 pm
Posts: 49
I have done everything possible according to all the answers here and out there in other Google searches... still nothing works.

I am having more and more problems getting Oracle working... I have wasted the whole day today as well as previous days!

Oracle is so unhelpful for developers.. OTN is useless, and that is the best documentation available!

Grrrrrrr!!!!!!!

I'm going to ensure that I get back to SQL Server for my next contract!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 21, 2006 3:56 pm 
Beginner
Beginner

Joined: Sun Jun 19, 2005 2:21 pm
Posts: 21
Try setting Everyone Full Access to the directory holding oracle client installation. Afterwards, boot the machine.

I was having the same issues and I solved them this way.

Regards,
Robert


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 03, 2006 6:53 pm 
Beginner
Beginner

Joined: Tue Jan 17, 2006 12:55 pm
Posts: 49
I tried everything.. I give up.. I'm using the OracleClient at the moment.. maybe I'll try again when I get more time.. maybe get a witch doctor in...

I'm getting sick of trying to solve Oracle problems......


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 23, 2006 9:07 am 
Newbie

Joined: Mon Jun 27, 2005 7:41 am
Posts: 1
If you use ODP.NET uninstall it (and removing the files remaining in your home directory by hand after restarting, but backup your tnsnames.ora and sqlnet.ora before doing that) and install your ODP.NET completely new. If you use ODP.NET 10.1.4.00 also install the patch 10.1.4.01 which you can find on the Oracle developer site.

I had the same problem without using NHibernate and that helped for me.

Marco


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 23, 2006 3:58 pm 
Regular
Regular

Joined: Tue Feb 07, 2006 4:27 pm
Posts: 69
I had a similar issue with just using standard ADO.Net with the Oracle .Net libraries.

This was for an ASP.Net web application. As soon as I granted more access to the account that runs the IIS service everything worked fine.

I think you may still have some kind of a security issue here.

thnx


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 9 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.