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: reclaiming space from SYSTEM tablespace.

Re: reclaiming space from SYSTEM tablespace.

From: Ray Teale <ray_at_BLAHholly.com.au>
Date: Tue, 8 Apr 2003 09:39:57 +1000
Message-ID: <vYnka.28$QE2.1863@nnrp1.ozemail.com.au>


The tablespace is mostly empty. How do I shrink the datafile?

Ray
"osy45" <member18536_at_dbforums.com> wrote in message news:2736728.1049694641_at_dbforums.com...
>
> why is it so large ? had there any users been created with no given own
> tablespace; SYSTEM is the default:
>
> then take all the users except sys, system which own objects in system
> tablespace and move them to other tablespaces
>
> alter user <usr1> default tablespace <tablespace1> ;
> atler user <...> default tablespace <...>;
>
> select 'alter table '|| owner||'.' ||table_name || ' move tablespace '||
> <tablespace1> ||';' where owner = <usr1> ;
>
> after finishing that action you possibly can shrink the datafile ...
>
> --
> Posted via http://dbforums.com
Received on Mon Apr 07 2003 - 18:39:57 CDT

Original text of this message

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