ORA-01555

ORA-01555: snapshot too old: rollback segment number %s with name \\"%s\\" too small

The process which generated this error was in need for rollback/undo records to generate its consistent view.
At some point in time however, the data needed by your session (of which the undo records were written by another process) were marked as being free (a commit was done by that other session), and some other process already wrote other rollback/undo information to it.

If you're using manual UNDO Mode or use an Oracle version <9i, you can try to set a larger optimal size on the rollback segments.
You can issue following select to determine the current optimal size and the highwater mark size (maximum size ever reached since database startup).
:

select rb.segment_name, rs.optsize, rs.hwmsize
from v$rollstat rs, dba_rollback_segs rb
where rs.usn = rb.segment_id


To change the optimal size you can issue following select:


alter rollback segment rbs0 storage (optimal 100m);

Pay attention that the size you specify for optimal will be constantly allocated inside the tablepace.
If you are using automatic UNDO mode, you can try to increase the value of undo_retention.


alter system set undo_retention=10800;

The value of undo_retention is the time in seconds the database tries to keep the undo blocks (not mark as being free) inside the undo tablespace.


来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/23033727/viewspace-629617/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/23033727/viewspace-629617/

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值