Home

About Me Contact Me Oracle12cSIG(IOUG)
 
Home  :: Quick-Script

Database Tablespace FreeSpace

0 Comments

Query for Database Tablespace Free Space

set pagesize 100;
set linesize 200;
col file_name format a50;
select a.tablespace_name,a.bytes MB_used,b.bytes MB_free,round(((a.bytes-b.bytes)/a.bytes)*100,0) percent_used
from (select tablespace_name,ceil(sum(bytes/1024/1024)) bytes from dba_data_files group by TABLESPACE_NAME) a, (select
tablespace_name,ceil(sum(bytes/1024/1024)) bytes from dba_free_space group by tablespace_name) b
where a.tablespace_name=b.tablespace_name order by round(((a.bytes-b.bytes)/a.bytes)*100,0) desc;

Posted on : 2/21/2014 by Anuj
 
Comments
No comment found.
 


Add Your Comments
 
Name :
Email :
Comments :

 

 
 
  Archives
 
  Recent Posts

Checking database patch level
Posted on :   11/2/2017

Finding database home information in database
Posted on :   10/10/2017

Beginner to Exadata?
Posted on :   8/31/2017

  Recent Comments
 

Home  |  About Me  |  Contact  |  Oracle12cSIG(IOUG)

All Rights Reserved 2013 Oracle-12c