1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
create table t_r (x varchar2(2000)) tablespace DATA_DEMANDE
storage
(initial 1m
next 1m
pctincrease 0
)
SQL> exec show_space('T_R');
Free Blocks.............................0
Total Blocks............................64
Total Bytes.............................1048576
Unused Blocks...........................63
Unused Bytes............................1032192
Last Used Ext FileId....................14
Last Used Ext BlockId...................44621
Last Used Block.........................1
SQL> begin
2 for k in 1..9999
3 loop
4 insert into t_r values (rpad('*',100,'*'));
5 end loop;
6 commit;
7 end;
8 /
Procédure PL/SQL terminée avec succès.
SQL> exec show_space('T_R');
Free Blocks.............................3
Total Blocks............................76
Total Bytes.............................1245184
Unused Blocks...........................0
Unused Bytes............................0
Last Used Ext FileId....................14
Last Used Ext BlockId...................44693
Last Used Block.........................4
Procédure PL/SQL terminée avec succès.
SQL> truncate table t_r;
Table tronquée.
SQL> exec show_space('T_R');
Free Blocks.............................0
Total Blocks............................64
Total Bytes.............................1048576
Unused Blocks...........................63
Unused Bytes............................1032192
Last Used Ext FileId....................14
Last Used Ext BlockId...................44621
Last Used Block.........................1
Procédure PL/SQL terminée avec succès. |