oracle rollback 急

[复制链接]
查看11 | 回复4 | 2005-2-28 12:57:00 | 显示全部楼层 |阅读模式
我现在出现一个怪现象,我的表中那个记录有460万条,我看大小是600M多,我建了一个3000M回滚段但是还是报ora-01562: 扩展回滚段号失败。怎么整。大家有什么好主意啊,郁闷!!!!!!
回复

使用道具 举报

千问 | 2005-2-28 12:57:00 | 显示全部楼层
C:\>oerr ora 01562
0156201562, 00000, "failed to extend rollback segment number %s"
// *Cause: Failure occurred when trying to extend rollback segment
// *Action: This is normally followed by another error message that caused
// the failure. You may take the rollback segment offline to perform
// maintainence. Use the alter rollback segment offline command
// to take the rollback segment offline.
回滚段没有必要那么大吧?use rolllback segments了吗? 应该还有其他的错误信息吧?
回复

使用道具 举报

千问 | 2005-2-28 12:57:00 | 显示全部楼层
Check your transaction firstly, then check the Rollback Segment usage by V$ROLLSTAT, V$TRANSACTION, V$SESSION:
SELECTU.NAME, T.ADDR, T.USED_UBLK FROM V$ROLLNAME U, V$TRANSACTIONT WHERE U.USN=T.XIDUSN
回复

使用道具 举报

千问 | 2005-2-28 12:57:00 | 显示全部楼层
也就是说,你能肯定你的事务用的回滚段 是那个 3000M的吗?
呵呵,最土的方法,将其他 回滚段先 offline,启动你的事务,然后把其他rollback segments online
回复

使用道具 举报

千问 | 2005-2-28 12:57:00 | 显示全部楼层
当然,我是在sqlplus启动后用set transaction use rollback segment rbxx的。我现在解决了,我是用先导出数据,然后建表添加字段,然后强行导入。时间也还能忍受。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行