创建索引失败 高手请进!help

xboy 2004-10-12 10:58:46
使用如下脚本在一个数据容量比较大的表上创建索引,失败,后面是报错。能帮我解答一下么??
sqlplus abc/abc123456 <<EOF >/dev/null
set echo off;
set feedback off;
set heading off;
set pagesize 0;
set termout off;
set trimout on;
set trimspool on;
spool builed.log;
create index smg_cdr_idx2 on smg_cdr(CreateTime)
LOCAL (
partition p1 tablespace smg_cdr_idx_1 storage(initial 20M next 20M pctincrease 0 ),
partition p2 tablespace smg_cdr_idx_2 storage(initial 20M next 20M pctincrease 0 ),
partition p3 tablespace smg_cdr_idx_3 storage(initial 20M next 20M pctincrease 0 )
);
spool off;
quit
EOF


在脚本运行一个小时左右,程序报错:
ERROR at line 1:
ORA-01555: snapshot too old: rollback segment number 2 with name "_SYSSMU2$"
too small
回滚段错误,建立索引失败,程序退出!
...全文
164 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
xboy 2004-10-16
  • 打赏
  • 举报
回复
做这个的时候我是关掉了所有操作数据库的东西
sywen 2004-10-13
  • 打赏
  • 举报
回复
加强学习
drabit 2004-10-13
  • 打赏
  • 举报
回复
选择在事务量小的时候创建索引(例如在深夜)
dlab 2004-10-12
  • 打赏
  • 举报
回复
use larger rollback segment
xboy 2004-10-12
  • 打赏
  • 举报
回复
增加回滚段需要协调很多人
我这里没有权限
xboy 2004-10-12
  • 打赏
  • 举报
回复
数据库用的是9i
我试试
LGQDUCKY 2004-10-12
  • 打赏
  • 举报
回复
先把回滚表空间增大,然后修改回滚段的存储参数

alter rollback segment rb1 storage(next 5m optimal 5m);
LGQDUCKY 2004-10-12
  • 打赏
  • 举报
回复
数据库是9I还是其他版本的?
wylwyl1130 2004-10-12
  • 打赏
  • 举报
回复
If in Automatic Undo Management mode, increase the setting of UNDO_RETENTION. Otherwise, use larger rollback segments.

3,491

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 高级技术相关讨论专区
社区管理员
  • 高级技术社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧