tag:blogger.com,1999:blog-2408596563749101958.post3116680974222948612..comments2015-04-06T02:01:59.104-04:00Comments on Notes from the Basilet: NHibernate, Oracle & ClobsCarlos Cubashttp://www.blogger.com/profile/07960176790508336898noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-2408596563749101958.post-88576038205668622482015-04-06T02:01:59.104-04:002015-04-06T02:01:59.104-04:00OMG. I wasted so much time on a workaround for th...OMG. I wasted so much time on a workaround for this problem before I saw your post. Switching to NHibernate.Driver.OracleDataClientDriver worked for me. Had to make sure that Oracle.DataAccess was referenced in my project and any other project in the solution referencing my project with Copy Local = True in the properties. Then it finally worked.Greg Bonneyhttps://www.blogger.com/profile/05983858937979448691noreply@blogger.comtag:blogger.com,1999:blog-2408596563749101958.post-72662837924695104442013-07-09T13:42:14.706-04:002013-07-09T13:42:14.706-04:00Hi guys, i'm having the same problem whith a C...Hi guys, i'm having the same problem whith a CLOB field in a Oracle database, could you help me?. I dont understand what i have to do... Thank youAnonymoushttps://www.blogger.com/profile/01383658587840395552noreply@blogger.comtag:blogger.com,1999:blog-2408596563749101958.post-83388940627206577792013-01-29T09:23:37.498-05:002013-01-29T09:23:37.498-05:002013, and still the same issue.
In my case, since...2013, and still the same issue.<br /><br />In my case, since it's a seldomly used field, I just settled for padding the value to get it above 4000 chars:<br /><br />if (entity.Content.Length >= 2000 && entity.Content.Length <= 4000)<br />{<br /> entity.Content = entity.Content.PadRight(4001, ' ');<br />}<br />Kevin Gossehttp://blog.wpdev.frnoreply@blogger.comtag:blogger.com,1999:blog-2408596563749101958.post-71102070184728586532011-10-28T10:02:14.160-04:002011-10-28T10:02:14.160-04:00I will eat a lunch free because of you.
Thank'...I will eat a lunch free because of you.<br />Thank'sRene Felixhttps://www.blogger.com/profile/06587531918051633999noreply@blogger.comtag:blogger.com,1999:blog-2408596563749101958.post-60504733234356381852011-08-30T00:48:26.915-04:002011-08-30T00:48:26.915-04:00Ye this is a pretty surprising. I got this one to...Ye this is a pretty surprising. I got this one too. A way i found round this was to simply use Oracle's client driver.<br /><br />I used <br />NHibernate.Driver.OracleDataClientDriver instead of <br />NHibernate.Driver.OracleClientDriver<br /><br />I also needed the following to ensure that Nhibernate found the driver: <br /><br /><br /><br /> <br /> <br /> <br /> <br /> <br /><br />you will need to check the details of your driver in your GAC (ie you might be using a different version number).<br /><br />hope this helps someone <br /><br />cheersIbstahttps://www.blogger.com/profile/08732083608648354562noreply@blogger.com