Troubleshooting an Oracle compute overflow problem (not a divisor of zero!)

Source: Internet
Author: User

The problem has occurred in the previous period:

The table has a column number type rec_recordlength (two time interval length/sec)

Some data statistics This field will appear "Calculate the operation Overflow" error, it is a headache, can not find the reason

And then

Today again, and then constantly troubleshooting, troubleshooting, found that there is a data caused by,

Then this data is removed and reinserted.

Then think of the only thing that moved this data is the Rec_recordlength update, the following actions:

Update  set rec_recordlength=86400*(rec_endtime-where rec _c_id=' 178598 ';

Retry this statement, sure enough is this UPDATE statement, resulting in rec_recordlength statistics save "Calculate the operation Overflow";

I can't figure it out ... is 86400* (rec_endtime-rec_starttime) calculated not the value?

All right, add a conversion:
Update  set rec_recordlength=to_number (86400*(rec_endtime-   where rec_c_id=' 178598 '

There's no problem.

Don't know if this is a bug ....

Ps:oracle 11g

Troubleshooting an Oracle compute overflow problem (not a divisor of zero!)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.