加快insert into select速度with hints and nologging

polestar123發表於2009-07-13
SQL> select count(*) from aaa_partitioned_table;

COUNT(*)
----------
1000000

Executed in 0.375 seconds

SQL> truncate table aaa_partitioned;

Table truncated

Executed in 2.172 seconds

SQL> insert /*+ APPEND */ into aaa_partitioned nologging select * from aaa_partitioned_table;

1000000 rows inserted

Executed in 29 seconds

SQL> commit;

Commit complete

Executed in 0 seconds[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/70612/viewspace-1024090/,如需轉載,請註明出處,否則將追究法律責任。

相關文章