[Oracle] Analysis of maddening ORA-01555 Problems

Source: Internet
Author: User

Therefore, in the daily maintenance of the database, if only one or two encounter ORA-01555 errors, generally ignore, But if you often encounter this error, make some adjustments to avoid this error from happening again.

1. Why is a ORA-01555 error?
This error is caused by the Read consistency of the database. When querying the data to be accessed, it will go to the undo to access the pre-image of the data, if the previous image is overwritten, the query statement returns an error for the ORA-01555.

2. What are the main causes of ORA-01555 errors?
1) undo is too small
The intuitive solution is to tell the database application how long it takes to query the longest, set UNDO_RETENTION to this value, and increase the undo tablespace size accordingly.
However, to fundamentally solve the problem of undo being too small, you must start with application code optimization to reduce the query running time.

2) Delayed block clearing
This situation is rare, especially in the OLTP system, which may be encountered in the OLAP system. The solution is to use the DBMS_STATS package to scan related objects after a large number of insert or update operations.

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.