Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Dropping Tables - Slow Performance
In article <36bab57e.14982483_at_192.86.155.100>,
tkyte_at_us.oracle.com wrote:
> A copy of this was sent to "Jonathan Lewis" <jonathan_at_jlcomp.demon.co.uk>
> (if that email address didn't require changing)
> On Sat, 30 Jan 1999 16:52:19 -0000, you wrote:
>
> >Interesting,
> >but what happens if you have say 10 tables which start with a few
> >extents each, then randomly grow so that extents are not contiguous ?
> >
>
> Ok, ran a test. Here is the locally managed script i ran
>
> SQL> drop tablespace locally_managed including contents
> 2 /
> Tablespace dropped.
>
> SQL> create tablespace locally_managed
> 2 datafile 'c:\oracle\oradata\orcl\locally_managed.dbf' size 20m reuse
> 3 extent management local uniform size 1k
> 4 /
> Tablespace created.
>
> SQL> set timing on
>
> SQL> create table locally_managed_table1 ( x char(2000) )
> 2 storage ( initial 1k next 1k pctincrease 0 maxextents unlimited
minextents
> 1 )
> 3 tablespace locally_managed
> 4 /
> Table created.
> real: 341
>
> SQL> create table locally_managed_table2 ( x char(2000) )
> 2 storage ( initial 1k next 1k pctincrease 0 maxextents unlimited
minextents
> 1 )
> 3 tablespace locally_managed
> 4 /
> Table created.
> real: 80
>
> SQL> begin
> 2 for i in 1 .. 999 loop
> 3 execute immediate
> 4 'alter table locally_managed_table1 allocate extent';
> 5 execute immediate
> 6 'alter table locally_managed_table2 allocate extent';
> 7 end loop;
> 8 end;
> 9 /
> PL/SQL procedure successfully completed.
> real: 58124
>
> SQL> select segment_name, extents
> 2 from user_segments
> 3 where segment_name like 'LOCALLY_MANAGED_TABLE_'
> 4 /
>
> SEGMENT_NAME
EXTENTS
> -------------------------
-----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own Received on Sun Jan 31 1999 - 02:46:32 CST