wood burning stoves 2.0*
The moose likes JDBC and the fly likes Bigger type length than maximum Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Bigger type length than maximum" Watch "Bigger type length than maximum" New topic
Author

Bigger type length than maximum

Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

We have an Oracle database that throws the "Bigger type length than maximum" SQLException when processing huge records. Sometimes it is able to process large number of records without errors, but other times this error is thrown, and we have to restart the transaction to get rid of this error. Of late we are unable to get rid of this error for a particular huge transaction. When the load is split into smaller records the transaction goes through, but it fails when the record count is huge.

I want to know if there is any other solution to go by, other than upgrading the database. Our current oracle build is 9.0.1.4. Which build should I upgrade to to fix this ? I am also not convinced that upgrading the DB will fix the error. Patch sets seem to fix the "Bigger type length than maximum" errors that occur on CLOBs, which we dont use. I was told that the Oranxo driver fixes this error but introduces some errors of its own. Any one solved this ?
[ March 17, 2007: Message edited by: John Meyers ]

SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Gaurav Chikara
Ranch Hand

Joined: Jun 09, 2000
Posts: 410
You can try using batch inserts,updates etc. If that doesn't seem to be solution you are looking then run batch programs through CRON jobs schedulers so that you can periodcally keep on pinging databse and doing your stuff


SCJP,SCWCD,SCBCD<br />If Opportunity doesn't knock then build the door
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Bigger type length than maximum
 
Similar Threads
java.sql.SQLException: Bigger type length than Maximum
ERROR OGG-01163 Bad column length, and CHAR data type
Error: when upgrade WAS 6.0 to WAS 6.0.2
Data size error - urgent
Error: Bigger Type Length Than Maximum