The moose likes JDBC and Relational Databases and the fly likes Error: Bigger Type Length Than Maximum Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Error: Bigger Type Length Than Maximum" Watch "Error: Bigger Type Length Than Maximum" New topic

Error: Bigger Type Length Than Maximum

Rajeev Iyer
Ranch Hand

Joined: Jun 19, 2002
Posts: 42
I am coming across a typical error in oracle (oracle 9i), whenever fetching a large amount od data, as error is thrown, which is

Bigger Type Length Than Maximum

The error comes randomly and happens for large set of records.
Has this problem been faced by anyone before ?
Please help..
Rashid Darvesh
Ranch Hand

Joined: Feb 13, 2004
Posts: 189
i too have the same error. i am executing a query which generates 13,000 rows it gives tthe following excepotion

Exception in thread "main" java.lang.RuntimeException: SQLException Bigger type length than Maximum
at com.edmunds.xmlSearch.databaseLoader.VehicleProcessor.processDocuments(
at com.edmunds.xmlSearch.databaseLoader.VehicleProcessor.main(

Any idea , is it a driver problem or somethign i have to do at the database level

Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33102

Are any of those fields large? Maybe you are trying to put a really large number into an integer (or something like that) ?

There isn't an inherent limitation on the number of rows you can retrieve. You can prove this by picking a simple column and doing "select id, id, id, id, id, id, id from table". Just substitue the number of "id"s with the number of columns you have in your real query.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: Error: Bigger Type Length Than Maximum
It's not a secret anymore!