SQLPLUS > create table t as select * from all_objects where 1=0 ;
Table created.
SQLPLUS >set autotrace traceonly statistics
SQLPLUS >select * from t ;
no rows selected
Statistics
----------------------------------------------------------
0 recursive calls
0 db block gets
0 consistent gets
0 physical reads
0 redo size
...
SQLPLUS >set autot off
SQLPLUS >insert into t select * from all_objects ;
22856 rows created.
SQLPLUS > rollback ;
Rollback complete.
set autotrace traceonly statistics
SQLPLUS >select * from t ;
no rows selected
Statistics
----------------------------------------------------------
10 recursive calls
1 db block gets
381 consistent gets <--------------
0 physical reads
...
SQLPLUS >set autot off
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
deferred_segment_creation boolean TRUE
SQLPLUS > create table t ( x int ) segment creation deferred ;
Table created.
SQLPLUS > select extent_id, bytes, blocks
from user_extents
where segment_name ='T'
order by extent_id ;
no rows selected
SQLPLUS >insert into t (x) values (1) ;
1 row created.
SQLPLUS >rollback ;
Rollback complete.
SQLPLUS >select extent_id, bytes, blocks
from user_extents
where segment_name ='T'
order by extent_id ;
2 3 4
EXTENT_ID BYTES BLOCKS
---------- ---------- ----------
0 65536 8
- 강좌 URL : http://www.gurubee.net/lecture/4025
- 구루비 강좌는 개인의 학습용으로만 사용 할 수 있으며, 다른 웹 페이지에 게재할 경우에는 출처를 꼭 밝혀 주시면 고맙겠습니다.~^^
- 구루비 강좌는 서비스 제공을 위한 목적이나, 학원 홍보, 수익을 얻기 위한 용도로 사용 할 수 없습니다.