These days encounter an error, I do not know if it's wrong, because there is no error, but the operating table in a sudden just 2 minutes suddenly reduced, causing the software to restart. To view the alert log there is no error, but in the ASH TOP SQL box with an error like me baffled. View the SQL statement is simply an update and does not need to be optimized. Finally, Baidu, google help finally found the cause of the error, the original settings with UNDO. First to introduce under undo_retention parameter, the parameter is the removal of the section of the minimum retention time, the default Oracle will be based on the size of the table space and historical usage, automatically adjust the undo information is saved time, while ignoring the value of undo_retention undo_retention guarantee feature is enabled is to execute the following command:
ALTER TABLESPACE UNDOTBS RETENTION GUARANTEE;
In the case of automatic adjustment enabled, the the actual revocation minimum retention time to get by query V $ UNDOSTAT view on TUNED_UNDORETENTION column. Often the shortest retention time is much greater than the setting the UNDO_RETENTION. The UNDO automatic optimization function can maximize the use of the undo tablespace to meet most of the sql execution, but also poses a problem: a lot of transaction is finished, UNDO tablespace in a long time has been to maintain the utilization rate is close to 100% active state very little. This close to the state can not manually contraction, or even restart the database instance can not be mitigated, often receive undo tablespace monitoring alarm.来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/91975/viewspace-2105160/ ,如需转载,请注明出处,否则将追究法律责任。