Undo_retention parameter and guarantee

Source: Internet
Author: User

In Oracle10g, for dba_tablespace, an additional column is added as retention.

Recall that before Oracle 10 Gb, in the automatic undo management mode, we all know that the undo_retention parameter is used to control the Undo information retention time after the transaction is committed. The undo information can be used to construct the consistent read and for a series of Flash recovery, and enough undo information can reduce the occurrence of classic ORA-01555 errors, in Oracle 9r1, the default value of this value is 900 seconds. After Oracle 9r2, this value is increased to 10800 seconds. Even if we set the undo_retention parameter, This Is A noguarantee restriction by default. That is to say, I will undo_retention = 10800, so I thought that after a transaction commit, the previous Undo can be saved for 10800 seconds before it can be overwritten by another transaction DML, I do not know that when there are other transaction DML processing processes that require undo space, it is precisely at this time not enough space for Undo, that is, I did not allow automatic expansion of Undo tablespace. Since our retention is noguarantee, transaction DML will ignore this retention time limit and directly repeat and overwrite our undo information, this result is not expected in many cases.

After 10 Gb of Oracle, Oracle proposed a feature: Undo guarantee, which forces Oracle to provide the Undo information of guarantee, that is, if the transaction DML of a session needs the Undo space, even if the Undo space is insufficient, this session will not forcibly overwrite the Undo information protected by undo_retention. Therefore, this transaction DML reports an error and exits automatically due to insufficient undo space.

In Oracle10g, how can I modify the guarantee mode?

 

Alter tablespace undo_samll retention guarantee;

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.