Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Fast utility to transfer data from one database to another excluding IMP/EXP
HansF schrieb:
> On Tue, 08 Aug 2006 20:15:47 +0200, Acme Acmeson wrote:
>
>> When inserting rows the append hint may have an impact, but also when >> selecting ?
Actually, it seems to be a very funny thread now. I didn't know before, that /** append */ (i.e. a simply comment) can so improve performance... But , should be of course tested - and on my linux box - it seems, Oracle scales with the count of tests ;-)
cms_at_ORA102> create table test as select * from all_objects where 1=2;
Table created.
cms_at_ORA102> cms_at_ORA102> set timing on cms_at_ORA102> insert into test select * from all_objects;
51055 rows created.
Elapsed: 00:00:08.59
cms_at_ORA102>
cms_at_ORA102> truncate table test;
Table truncated.
Elapsed: 00:00:01.45
cms_at_ORA102>
cms_at_ORA102> alter system flush buffer_cache;
System altered.
Elapsed: 00:00:00.03
cms_at_ORA102>
cms_at_ORA102> insert /** append */ into test select * from all_objects;
51055 rows created.
Elapsed: 00:00:04.11
cms_at_ORA102> truncate table test;
Table truncated.
Elapsed: 00:00:01.15
cms_at_ORA102> alter system flush buffer_cache;
System altered.
Elapsed: 00:00:00.01
cms_at_ORA102> insert into test select * from all_objects;
51055 rows created.
Elapsed: 00:00:02.67
Best regards
Maxim Received on Tue Aug 08 2006 - 13:55:12 CDT