APPEND Hint
Use the APPEND hint to improve the performance of load operations.
oracle miscconfigurationintermediate
by OracleDba
21 views
Use the APPEND hint to improve the performance of load operations.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
SQL> create table t1 as select * from all_objects where 1=2;
Table created.
SQL> set autotrace on statistics
SQL> insert into t1 select * from all_objects;
72512 rows created.
Statistics
----------------------------------------------------------
634 recursive calls
9946 db block gets
50116 consistent gets
2 physical reads
8464520 redo size
830 bytes sent via SQL*Net to client
796 bytes received via SQL*Net from client
3 SQL*Net roundtrips to/from client
1508 sorts (memory)
0 sorts (disk)
72512 rows processed
SQL> truncate table t1;
Table truncated.
SQL> insert /*+ append */ into t1 select * from all_objects;
72512 rows created.
Statistics
----------------------------------------------------------
369 recursive calls
1689 db block gets
48194 consistent gets
2 physical reads
46048 redo size
822 bytes sent via SQL*Net to client
810 bytes received via SQL*Net from client
3 SQL*Net roundtrips to/from client
1500 sorts (memory)
0 sorts (disk)
72512 rows processed
SQL> commit;
Commit complete.
SQL>
SQL> create table t1 as select * from all_objects where 1=2;
Table created.
SQL> set autotrace on statistics
SQL> insert into t1 select * from all_objects;
88773 rows created.
Statistics
----------------------------------------------------------
613 recursive calls
11792 db block gets
116808 consistent gets
2 physical reads
10222352 redo size
370 bytes sent via SQL*Net to client
552 bytes received via SQL*Net from client
3 SQL*Net roundtrips to/from client
3142 sorts (memory)
0 sorts (disk)
88773 rows processed
SQL> truncate table t1;
Table truncated.
SQL> insert /*+ append */ into t1 select * from all_objects;
88773 rows created.
Statistics
----------------------------------------------------------
307 recursive calls
1573 db block gets
114486 consistent gets
0 physical reads
10222864 redo size
366 bytes sent via SQL*Net to client
566 bytes received via SQL*Net from client
3 SQL*Net roundtrips to/from client
3138 sorts (memory)
0 sorts (disk)
88773 rows processed
SQL> commit;
Commit complete.
SQL>
SQL> alter table t1 nologging;
Table altered.
SQL> truncate table t1;
Table truncated.
SQL> set autotrace on statistics
SQL> insert into t1 select * from all_objects;
88773 rows created.
Statistics
----------------------------------------------------------
506 recursive calls
11790 db block gets
116652 consistent gets
0 physical reads
10222328 redo size
373 bytes sent via SQL*Net to client
552 bytes received via SQL*Net from client
3 SQL*Net roundtrips to/from client
3139 sorts (memory)
0 sorts (disk)
88773 rows processed
SQL> truncate table t1;
Table truncated.
SQL> insert /*+ append */ into t1 select * from all_objects;
88773 rows created.
Statistics
----------------------------------------------------------
307 recursive calls
1573 db block gets
114486 consistent gets
0 physical reads
25968 redo size
366 bytes sent via SQL*Net to client
566 bytes received via SQL*Net from client
3 SQL*Net roundtrips to/from client
3138 sorts (memory)
0 sorts (disk)
88773 rows processed
SQL> commit;
Commit complete.
SQL> drop table t1 purge;
Table dropped.
SQL>Please to add comments
No comments yet. Be the first to comment!