• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

Data size bigger than the max size for this type;

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear ,
When I insert data into blob and long raw field of oracle database table.
always having the error:
java.sql.SQLException: Data size bigger than max size for this type:

I am using Oracle 9i. and I know that my program code in Oracle 8 is fine without any error..
Therefore, the problem occurs in Oracle 9i. Do you have any suggestion that I have to modify my program code in order to fit the Oracle 9i.

Thanks,
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
LONG RAW is a legacy data type in Oracle. Use an appropriate LOB datatype instead - LONGs can store 2GB, LOBs can store 4GB (plus there are other good reasons for favouring LOB over LONG RAW, which you will be able to read about in the Oracle documentation).
 
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The best reason of using LOB over LONG RAW is, you can only have one column of type LONG RAW in your table, on the other hand LOB is not like that.
 
Attractive, successful people love this tiny ad:
Sauce Labs - World's Largest Continuous Testing Cloud for Websites and Mobile Apps
https://coderanch.com/t/722574/Sauce-Labs-World-Largest-Continuous
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!