File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Data size bigger than the max size for this type; Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "Data size bigger than the max size for this type;" Watch "Data size bigger than the max size for this type;" New topic
Author

Data size bigger than the max size for this type;

grace chow
Greenhorn

Joined: Oct 25, 2004
Posts: 13
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,
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

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).


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Data size bigger than the max size for this type;
 
Similar Threads
Large data entry issue
entity bean problem
difficulty in inserting value into oracle "long" datatype column
Long Raw data type
Data size error - urgent