|
原帖由 oradbHome 于 2010-11-11 13:00 发表 ![]()
truncate table
这样默认会回收 Extent 的, 应该会慢的。
如果是 truncate table resuse storage , 这样快。
正好有个大表,顺便测试了一下:
16:54:38 SQL> select bytes/1024/1024/1024 from dba_segments where segment_name='T' and owner='SYS';
BYTES/1024/1024/1024
--------------------
14.25
20:59:56 SQL> truncate table t;
表被截断。
已用时间: 00: 00: 01.23
21:19:48 SQL>
14g的表truncate了一下耗时00: 00: 01.23 |
|