Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 300023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T06:52:35+00:00 2026-05-12T06:52:35+00:00

I been working the whole week to troubleshot a production error. I have eventually

  • 0

I been working the whole week to troubleshot a production error.

I have eventually got the the point where I can find the culprit record which is causing all the mess.

I’ve got the following error message:

java.sql.SQLException: [BEA][Oracle JDBC Driver][Oracle]ORA-01438: value larger than specified precision allows for this column

Eventuall from all the info I think this might be the wrong data, the system is trying to insert:

10385274000

Into a NUMBER(10)

How can I know if that value fits or no?

Thank you

EDIT

As per Michel Todd suggestion:

create table xyz( testfield number( 10 ) );

insert into xyz values( 10385274000 )


Error: ORA-01438: value larger than specified precision allowed for this column

Thank you guys!!!

Thank you stackoverflow

EDIT

Notes to my self ( not to forget what was the problem )

I had this Oracle product which stores in a database table the time of an event

START_TIME|END_TIME

It turns out everynight it backups this information into another table but performs a trnsformation in the process. It does store as:

TOTALTIME

The problem comes when this field is calculated by subtracting ENDTIME – STARTTIME. The resulting number is stored in this column which is defined as: NUMBER(10)

Well, it turns out if END_TIME-START_TIME are too far away in the time ( about 4 months or so ) the value ( in milliseconds ) would be SO big it won’t fit in the target column ( I guess it has something like endTime.getTime() – startTime.getTime() inside the code )

All this sounds too easy and too silly now, but it took me 4 day+ to find out, because since this is a closed application I didn’t have a clue of what was happening, the only thing I’ve got was the stacktrace.

I had to reverse engineer ( in the OLD sense of the word, by hand and obviously with out the source) the entire process to find this out.

When I did it, I’ve got the same error in my “hand coded migrator” and find out how to solve it!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T06:52:35+00:00Added an answer on May 12, 2026 at 6:52 am

    The number 10 in NUMBER(10) specifies the field size. That means that the field can hold a number up to 10 characters long. Your number has 11 digits and thus the value is to large to fit. Anything smaller than (<) 10 billion (10 000 000 000) can be inserted without trouble. That’s what you need to check for if you want to validate the value before inserting.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.