`
linsea
  • 浏览: 87520 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

ORA-30036 错误重演实验

阅读更多

实验步骤:

1. 建立一个很小的UNDO表空间,把系统当前的UNDO表空间设为此表空间.

2. 建立一个表,在其中插入大量行.

3.更新这个表中的大量行,更新过程中将出现指定的错误.

错误原因分析:

更新时会生成大量的UNDO信息,这些信息将存储在系统UNDO段中,但因为更新很大,而UNDO表空间很小,不足以保存下这么多的UNDO信息,为了保证用户更新之后如果发出滚命令可以回退,更新操作的UNDO信息一定要保存下来,但现在不行,所以会出现错误.

 

 

create undo tablespace undo_small datafile 'D:\Oracle\oradata\SCC\smallundo.dbf' size 2m utoextend off;

 

alter system set undo_tablespace = undo_small;

 

create user smundo identified by smundo;

 

grant create session,resource to smundo;

 

conn smundo/smundo;

 

create table undotest(char(1000));


SQL> begin
  2  for i in 1..3000 loop
  3  insert into undotest values ('a');
  4  end loop;
  5  end;
  6  /

PL/SQL 过程已成功完成。

 

 

SQL> update undotest set ch = 'b';
update undotest set ch = 'b'
       *
ERROR 位于第 1 行:
ORA-30036: 无法按 8 扩展段 (在撤消表空间 'UNDO_SMALL' 中)

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics