ORA-01555:
快照太旧 问题原因:要查询的前镜像在
undo
中已经被覆盖
1. sql
语句执行
时间过长 处理办法:优化
sql
语句
2. undo
被覆盖
2.1 undo
太小 处理办法:增加
undo
表空间
2.1.2
:如果
undo
已经很大并且
sql
查询很重要,可以加
undo guarantee
,禁
止
undo
覆盖,但是这样可能会导致
dml
报错
SYS@orcl> alter tablespace undotbs2
retention guarantee; 2.2
频繁
commit
导致(因为
commit
会导致
active
状态
undo
变成
unexpired
状态,
unexpired
状态的
undo
是可以被覆盖的) 处理办法:减少
commit
次数
3.
延迟块清除
3.1
延迟块清除也会生成
undo
信息造成覆盖非
active
状态
undoORA-01555:
快照太旧 问题原因:要查询的前镜像在
undo
中已经被覆盖
1. sql
语
句执行时间过长 处理办法:优化
sql
语句
2. undo
被覆盖
2.1 undo
太小 处理办法:增
加
undo
表 空 间
2.1.2
: 如 果
undo
已 经 很 大 并 且
sql
查 询 很 重 要 , 可 以 加
undo
guarantee
, 禁 止
undo
覆 盖 , 但 是 这 样 可 能 会 导 致
dml
报 错
SYS@orcl> alter
tablespace undotbs2 retention guarantee; 2.2
频繁
commit
导致(因为
commit
会导致
active
状态
undo
变成
unexpired
状态,
unexpired
状态的
undo
是可以被覆盖
的) 处理办法:减少
commit
次数
3.
延迟块清除
3.1
延迟块清除也会生成
undo
信息造
成覆盖非
active
状态
undo
相关文档
评论