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
|
SQL> create table test_objects as select * from dba_objects where 1=2;
Table crÚÚe.
SQL> set autotrace on statistics
SQL> insert into test_objects select * from dba_objects ;
12570 ligne(s) crÚÚe(s).
Statistiques
----------------------------------------------------------
1042 recursive calls
1161 db block gets
4513 consistent gets
6 physical reads
1341556 redo size
680 bytes sent via SQL*Net to client
582 bytes received via SQL*Net from client
4 SQL*Net roundtrips to/from client
2 sorts (memory)
0 sorts (disk)
12570 rows processed
SQL> select a.name, b.value
2 from v$statname a, v$mystat b
3 where a.statistic# = b.statistic#
4 and lower(a.name) like '%' || lower('&1')||'%'
5 --and b.value > 0
6 /
Entrez une valeur pour 1 : redo size
ancien 4 : and lower(a.name) like '%' || lower('&1')||'%'
nouveau 4 : and lower(a.name) like '%' || lower('redo size')||'%'
NAME VALUE
---------------------------------------------------------------- ----------
redo size 2664964 |
Partager