Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Free space by tablespace script, quality control check.
This script reports current tablespace size, total space already allocated that it can grow in to, and total size the datafiles it's on can grow to, then total percentage used. I'm going to use some of these stats in a tool I'm building please let me know if you see any obvious problems with the logic.
Thanks,
Ethan
http://www.freetechnicaltraining.com
http://www.gnumetrics.com
select
tablespace_name,
round(sum(current_mb)) current_mb, round(sum(total_mb)) total_mb, round(sum(max_mb)) max_mb, trunc(decode(sum(max_mb), 0, sum(current_mb)/sum(total_mb), sum
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Tue Jun 27 2000 - 00:00:00 CDT