首页 > 数据库 > Oracle > undo_retention的作用
ORA-31693: Table data object "SCHEMA"."TABLE" failed to load/unload and is being skipped due to error:
ORA-02354: error in exporting/importing data
ORA-01555: snapshot too old: rollback segment number 26 with name "_SYSSMU26_2551973035$" too small
Oracle 提供的事务隔离级别,默认的隔离级别是Read committed Isolation level。
Read committed isolation level
Serializable isolation level
Read-Only Isolation level
导出的表大小为70G, UNDO 表空间的大小为25G。
开始以为在进行expdp 导出操作时会将整个大表读入到undo 表空间中。如果表过大,UNDO 表空间没有表大时,会报ORA-01555。
其实不是, 只有在进行insert,delete, update操作时会将被修改的前数据保存一份到UNDO 中。
在此次expdp 导出数据时报ORA-01555错的原因是表过大,导出时间长,超过undo_retention的设置,有些段会失效所致。
将undo_retention 的值设置的大一些就能解决此问题。
修改undo_retention 的值:
alter system set undo_retention=10800 scope=both;
参考链接:
undo_retention作用
https://blog.csdn.net/fenglin20115588/article/details/50818216
修改默认的undo_retention参数设置
https://www.cnblogs.com/lcword/p/5982527.html
ORA-01555快照过旧说明
https://www.cnblogs.com/lcword/p/5982507.html
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/21374452/viewspace-2843859/ ,如需转载,请注明出处,否则将追究法律责任。