Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: decreasing initial extent
Niall, this will also work if the table is not empty:
SQL> create table a(a1 number)
storage(initial 1m);
Table created.
SQL>begin
2 for i in 1..1000 loop
3 insert into a values(i);
4 end loop;
5 end;
/
PL/SQL procedure successfully completed.
SQL> select table_name, initial_extent from user_tables where table_name='A';
TABLE_NAME INITIAL_EXTENT
------------------------------ -------------- A 1048576
SQL> alter table a move
storage(initial 500k);
Table altered.
SQL>
select table_name, initial_extent from user_tables where table_name='A';
TABLE_NAME INITIAL_EXTENT
------------------------------ -------------- A 516096
regards,
Peter
"Niall Litchfield" <n-litchfield_at_audit-commission.gov.uk> schreef in bericht
news:3e23fca1$0$241$ed9e5944_at_reading.news.pipex.net...
> "Peter Laursen" <ptl_at_edbgruppen.dk> wrote in message
> news:3e23fa9e$0$264$edfadb0f_at_dread15.news.tele.dk...
> >
> > "Peter van Rijn" <p.vanrijnREMOVE_at_THISzhew.nl> wrote in message
> > news:v27u50s55or2f8_at_corp.supernews.com...
> > > alter table <table_name>
> > > move
> > > storage(initial <desired size>;
> > >
> > > regards,
> > > Peter
>
> >
>Received on Tue Jan 14 2003 - 06:53:08 CST
> ******************************************
> >