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

Home -> Community -> Usenet -> c.d.o.tools -> sql for utilization rpt?

sql for utilization rpt?

From: Doug O'Leary <dkoleary_at_cb23513-b.rmvll1.il.home.com>
Date: Thu, 19 Jul 2001 17:57:32 GMT
Message-ID: <fcF57.490$Icm.147718402@news.randori.com>

Hi;

I'm trying to figure out how to get utilization information from an Oracle database based on tablespace, not on datafile. The report I'm evisioning would look something like:

Tablespace Allocated Used Free %_Util

I realize that the report doesn't take into account tablespace fragmentation; however, it should provide good information on utilization.

I just can't figure out the sql and it's beginning to bug me - which is particularly embarrasing because I'm hoping to take the sql test sometime soon.

I can get allocated and free; Used is obviously the difference bewteen the and % used is Used/alloc * 100 - how do I combine that into one sql query?

I've tried various group bys, correlated subqueries, nothing works so far. It either gives syntax errors or bogus data.

Any suggestions or is this something for PL/SQL? Thanks for your time

Doug

-- 
------------------------
Douglas K. O'Leary
Senior System Administrator
dkoleary_at_mediaone.net
Received on Thu Jul 19 2001 - 12:57:32 CDT

Original text of this message

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