-->
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.  [ 2 posts ] 
Author Message
 Post subject: Oracle 10g blob to byte[], no UserType
PostPosted: Fri May 13, 2005 4:37 am 
Newbie

Joined: Fri Sep 17, 2004 3:07 pm
Posts: 14
Here's one config to run Hibernate 3 & Oracle 10g byte[] / blob / thin with no coding required.

-JBoss 3.2.5
-JDK 1.4.2_06 (relevant for the JDBC driver, I guess)

Hibernate version:
3.0b2 (needs upgrading to a proper version but I don't think that's relevant, since this does seem to work...)
Mapping documents:
<property
name="docFileContents" type="binary">
<column name="FILE_CONTENTS" sql-type="blob"/>
</property>


hibernate.jdbc.use_streams_for_binary=true
(Make sure your config does set this property....)

Name and version of the database you are using:
- Oracle 10.1.0.2
- corresponding thin driver
- seems to be no 4k limit here



Hope this helps somebody skimming through 4k workarounds, OCI, UserTypes, contents turning into garbage, etc. stuff relevant for other versions/ requirements... No idea how this would perform, though, vs. other (UserType? Blob?) implementations, equal or worse. Will do some profiling anyways...

- BTW, I'm using Oracle9Dialect since there is none for 10g. Everything seems to run fine, and I suppose this dialect could take advantage of some new features in Oracle9 also present in 10g ? Should I to go back to generic OracleDialect to be safe?


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 14, 2005 2:32 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Oracle dialect is for Oracle DB < 9

_________________
Emmanuel


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