conn / as sysdba
create undo tablespace undotbs3 datafile "d:lxundotbs03.dbf" size 2m;
alter system set undo_tablespace=undotbs3;
sess1:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drop table test_undo;
create table test_undo as select * from dba_objects where rownum<4001;
variable c refcursor;
declare
begin
open :c for select * from test_undo;
end;
/--最后执行
print :c~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sess2:begin
for i in (select rowid from test_undo) loop
update test_undo set object_id=1 where rowid=i.rowid;
end loop;
commit;
end;
/update test_undo set object_id=11111;select round(sum(bytes)/1024/1024,3) from dba_Free_space where tablespace_name="UNDOTBS3";批量查询 Oracle的bulk collect用法Oracle基础教程:聚集、分组、行转列相关资讯 oracle数据库教程
- Oracle raw数据类型介绍 (01/29/2013 10:05:53)
- 监听器注册与ORA-12514 错误分析 (11/13/2012 14:30:08)
- Oracle SQL的cursor理解 (11/13/2012 14:16:17)
| - Oracle 如何强制刷新Buffer Cache (01/29/2013 10:02:46)
- dblink致Oracle库的SCN变成两库的 (11/13/2012 14:24:41)
- Linux操作系统下完全删除Oracle数 (11/13/2012 08:25:52)
|
本文评论 查看全部评论 (0)