Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Oracle Server > Re: Space reall...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 6 Topic 16480 of 17024
Post > Topic >>

Re: Space really used on TBS

by Mauro Pagano <mauro.pagano@[EMAIL PROTECTED] > Apr 29, 2008 at 12:11 AM

On Apr 28, 7:56 pm, "fitzjarr...@[EMAIL PROTECTED]
" <orat...@[EMAIL PROTECTED]
> wrote:
> On Apr 28, 10:42 am, Mauro Pagano <mauro.pag...@[EMAIL PROTECTED]
> wrote:
>
>
>
> > Hi,
> > executing the following query
>
> > SELECT b.tablespace_name, a.*,
> >        TRUNC (a.segment_size / tbs_size * 100, 2) segment_perc_used,
> >        b.tbs_freespace,
> >        TRUNC (b.tbs_freespace / c.tbs_size * 100, 2) freespace_perc,
> >        c.tbs_size
> >   FROM (SELECT SUM (BYTES) / 1024 / 1024 segment_size
> >           FROM dba_extents
> >          WHERE tablespace_name = 'USER_CDC_DATA') a,
> >        (SELECT   tablespace_name, SUM (BYTES) / 1024 / 1024
> > tbs_freespace
> >             FROM dba_free_space
> >            WHERE tablespace_name = 'USER_CDC_DATA'
> >         GROUP BY tablespace_name) b,
> >        (SELECT   tablespace_name, SUM (BYTES) / 1024 / 1024 tbs_size
> >             FROM dba_data_files
> >            WHERE tablespace_name = 'USER_CDC_DATA'
> >         GROUP BY tablespace_name) c
>
> > I get this result
>
> > USER_CDC_DATA,112,0.72,5076.8125,32.75,15500
>
> > where 112Mb are used (0.72% of tbs total available space)
> > 5076Mb are free (32.75% of tbs total available space)
> > 15500Mb is the tbs size
>
> > Why I have less then 1% used and only 32.75% free?
> > Where I'm wasting space?
> > Please note that shrink objects on tbs doesn't provide any benefit.
>
> > Regards
> > Mauro
>
> Possibly one or more of your datafiles for that tablespace is offline;
> try this modification to your query and see what is returned:
>
>  SELECT b.tablespace_name, a.*,
>         TRUNC (a.segment_size / tbs_size * 100, 2) segment_perc_used,
>         b.tbs_freespace,
>         TRUNC (b.tbs_freespace / c.tbs_size * 100, 2) freespace_perc,
>         c.tbs_size
>    FROM (SELECT SUM (BYTES) / 1024 / 1024 segment_size
>            FROM dba_extents
>           WHERE tablespace_name = 'USER_CDC_DATA') a,
>         (SELECT   tablespace_name, SUM (BYTES) / 1024 / 1024
>  tbs_freespace
>              FROM dba_free_space
>             WHERE tablespace_name = 'USER_CDC_DATA'
>          GROUP BY tablespace_name) b,
>         (SELECT   tablespace_name, SUM (BYTES) / 1024 / 1024 tbs_size
>              FROM dba_data_files
>             WHERE tablespace_name = 'USER_CDC_DATA'
>             AND status = 'AVAILABLE'
>          GROUP BY tablespace_name) c
>
> David Fitzjarrell

David,
thanks a lot for your reply.
Unfortunately both datafiles are online so your query returns the same
data of mine.
Have you any idea about?
Regards
Mauro
 




 6 Posts in Topic:
Space really used on TBS
Mauro Pagano <mauro.pa  2008-04-28 08:42:54 
Re: Space really used on TBS
"fitzjarrell@[EMAIL   2008-04-28 10:56:11 
Re: Space really used on TBS
Mauro Pagano <mauro.pa  2008-04-29 00:11:43 
Re: Space really used on TBS
"fitzjarrell@[EMAIL   2008-04-29 06:05:13 
Re: Space really used on TBS
joel garry <joel-garry  2008-04-29 09:32:24 
Re: Space really used on TBS
Mauro Pagano <mauro.pa  2008-04-29 11:48:51 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Aug 21 17:11:49 CDT 2008.