Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Data size bigger than the max size for this type;

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.

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.
Then YOU must do the pig's work! Read this tiny ad. READ IT!
the value of filler advertising in 2020
    Bookmark Topic Watch Topic
  • New Topic