Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: recreate tablespace

Re: recreate tablespace

From: Uwe Schneider <uwe_at_richard-schneider.de>
Date: Wed, 27 Feb 2002 23:17:02 +0100
Message-ID: <3C7D5ADD.ABFA73E0@richard-schneider.de>


Titi wrote:
>
> Hi,
>
> What is the easiest way to recreate a tablespace with PCTINCREASE = 0 ?
> Thanks ...
>

For new segments:
ALTER TABLESPACE foo DEFAULT STORAGE (PCTINCREASE 0);

For existing segments:

spool doit.sql;
SELECT 'ALTER TABLE ' || table_name || ' STORAGE (PCTINCREASE 0);' FROM USER_TABLES WHERE tablespace_name = 'FOO'; spool off;
@doit;

The same applies to indexes.

Uwe

-- 
Uwe Schneider       | Telefon +49 7244 / 609504
Haydnstr. 1         | Mail    uwe_at_richard-schneider.de
DE-76356 Weingarten | http://www.richard-schneider.de/uwe
Linux - OS al dente!
Received on Wed Feb 27 2002 - 16:17:02 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US