John Emmons has given a nice script to show who is using the temporary tablespace and how much, a very useful script.
Here's the script that he has on his site.
set pagesize 1000
select a.tablespace_name, trunc(b.allocated)Allocated, trunc(a.free) Free, trunc(b.allocated-a.free) USED,
(100-trunc(((b.allocated-a.free)*100)/b.allocated)) Percentfree from
(select tablespace_name, sum(bytes)/1024/1024 free from sys.dba_free_space group by tablespace_name) a,
(select sum(bytes)/1024/1024 allocated, tablespace_name from dba_data_files group by tablespace_name ) b
where a.tablespace_name = b.tablespace_name
union
select 'Total', trunc( sum(b.allocated)), trunc(sum(a.free)), trunc(sum((b.allocated-a.free))),
00000 from
(select tablespace_name, sum(bytes)/1024/1024 free from sys.dba_free_space group by tablespace_name) a,
(select sum(bytes)/1024/1024 allocated, tablespace_name from dba_data_files group by tablespace_name ) b
where a.tablespace_name = b.tablespace_name
order by 2;
-- Vish.
Subscribe to:
Post Comments (Atom)
1 comment:
Hello all
Sometimes I get lucky, finding a http://www.BuySellDirect.net FREE ecommerce website was a life changer for me. After I used it for one month I earn $100.
It's about time to have FREE ebay using http://www.BuySellDirect.net.
Post a Comment