Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Shrink Many Files
Hi from Paris
a litlle select on DBA_EXTENTS, grouping by FILE_ID and with max (BLOCK_ID+BLOCKS) will give max used space on each db files...
<cdavis10717_at_comcast.net> a écrit dans le message de news:
1105558713.668279.29440_at_z14g2000cwz.googlegroups.com...
>I have a tablespace comprised of 450 files.
>
> I recently dropped a 400GB table from this tablespace. The table has
> 27000 extents.
>
> I'd now like to re-size each of the 450 files to its smallest possible
> size.
>
> I'd like to have a script that can determine each file's smallest
> possible size and generate the RESIZE syntax, which I will spool and
> run.
>
> Does anyone have a query that produces this required syntax?
> Thanks.
>
> C
>
Received on Wed Jan 12 2005 - 14:11:42 CST
![]() |
![]() |