[Oracle] maddening ORA-01555 Problems

Source: Internet
Author: User

[Oracle] The first thing to note about the maddening ORA-01555 problem is that a ORA-01555 error is a "secure" error that won't cause data loss or corruption, only make the query that receives this error Unable to continue, therefore, in the routine maintenance work of the database, if only one or two encounter ORA-01555 error, generally ignore first, however, if this error is frequently encountered, 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) The undo is too small. The intuitive solution is that DBA tells the database application how long it takes to query the longest, sets UNDO_RETENTION to this value, and increases the size of the undo tablespace 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 is rare, especially in OLTP systems, which may be encountered in OLAP systems. Solution: after a large number of insert or update operations, remember to use the DBMS_STATS package to scan related objects.

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.